Questions tagged [revit-api]

Revit's API allows users to create customizations of the Autodesk Revit environment with tools that can greatly enhance end users' capabilities. The program is built around Microsoft's .NET Framework.

Revit's API allows users to create customize the environment with tools that can greatly enhance end users capabilities. The program is built around Microsoft's .NET Framework.

Resources:

Forums:

977 questions
0
votes
0 answers

IronPython 2.7.7 win32api

I am working in IronPython 2.7.7 and have Python 3.6 installed. I installed pywin32 in order to be able to access the win32api. I'm looking to use win32api to send keys to a dialog that pops up in Revit (not sure if this will even work) Whenever I…
DanBoghean
  • 85
  • 3
0
votes
1 answer

Revit API - Reading all Project Warnings

Is there any way to read all warning of the projects. I tried to follow some solution on the forums but I wasn't able to get the list of warning of the current project because it returns the list of default warnings that has nothing to do with the…
Ali Asad
  • 1,235
  • 1
  • 18
  • 33
0
votes
2 answers

Unique Revit Model Identifier 2016-2018

We are looking for a way to distinguish between Revit models from multiple different computers. For BIM360 and Revit Server models, we are able to use document.GetWorksharingCentralModelPath().GetModelGUID() However, for local models and central…
0
votes
1 answer

python revit Part.Utils how to get append the results out

I managed to parts elements using this script but then I would also like to collect the parted element "parts" in my OUT, somehow I cannot get it right: I have skipped the standard imports because I think my confusion is between the parameters and…
0
votes
1 answer

Revit API - How to read correct BuiltInParameter values from a list of FamilyParameter

I'm trying to read BuiltInParameter, Parameter Name, Parameter Type etc from a list of FamilyParameter instance. The code I'm using to read the FamilyParameter is written here on the GitHub. The output of the code is here. As you can see, there are…
Ali Asad
  • 1,235
  • 1
  • 18
  • 33
0
votes
2 answers

Selecting elements from undocked project browser

I'm working on an addin that copies the selected sheets and edits them in some ways. I get the selection by using ICollection selectedIds = uiDoc.Selection.GetElementIds(); This works perfectly fine when the project browser is docked, but…
Jan Buijs
  • 98
  • 1
  • 6
0
votes
1 answer

Autodesk Revit Argument Exception, The curves do not form a closed contiguous loop

I have this code for a Revit plugin made in C#: namespace CreateFloors { [Transaction(TransactionMode.Manual)] public class Command : IExternalCommand { public Result Execute( ExternalCommandData…
Manuel JL
  • 3
  • 3
0
votes
1 answer

Export Warning async task in for loop

I have the method here http://teocomi.com/export-revit-warnings-list-from-api/ and am calling it from an application macro method to export warnings for a folder of rvt files: public async void ExportWarningHTML() { …
arch tech
  • 3
  • 3
0
votes
1 answer

Why do we have to check the schema of an entity after retrieve the entity from a certain schema in a document?

I am a beginner in Revit Api and trying to keep up with the upcoming project which relates to manipulating extensible storage. I have received an example code from a senior dev that try to get the extensible storage from an element as follow: //…
Thế Long
  • 516
  • 7
  • 19
0
votes
1 answer

Create Series of Families On a Selected Path In Revit Using Dynamo

I’ve started exploring dynamo for a while now and quite enjoying its power. I’ve started work on a project, I’m wondering if someone would like to share their expert views on how do I create series of families from one starting point to other. See…
Ali Asad
  • 1,235
  • 1
  • 18
  • 33
0
votes
2 answers

How to Call Revit Purge Button from the Revit API

I'm developing a plugin to detached a document from central and when its done it will be purged as well. I'm struggling writing the code for purge, I'm thinking to call the Revit Purge button from the code. If it is possible, would appreciate the…
Ali Asad
  • 1,235
  • 1
  • 18
  • 33
0
votes
1 answer

Surface connector and conduits

How can I conect a conduit on a family instance that has a surface connector using API ? I am doing good connecting with "normal" connectors but when the family has only surface connectors, it's not possible.
0
votes
1 answer

How to draw dimensions between sleeve (specialty equipment) and Grid lines

we want to draw dimensions between sleeve (specialty equipment) and Grid lines . but when we apply dimensions revit throw the error message "Remove References - The references of highlighted dimension are no longer parallel" XYZ sleeve_xyz = null; …
Ajay D
  • 1
  • 1
0
votes
1 answer

How to show Excel Information In Revit through Revit API and windows form in Visual studio

I am trying to show an Excel spreadsheet as a table on windows form in Revit, First I wrote the code in VisualStudio, I created a windows form(That I enter the path and sheet number) and by running that, it opens the windows form and shows excel…
0
votes
1 answer

How to get wall points without its openings in Revit api

I was wondering if there a way to get the points of the wall without its openings like windows and doors. When I get the faces, edge loops, edge and finally the line origin, they always retrieve the points of the wall after excluding the openings…
Madonna Remon
  • 1,149
  • 1
  • 7
  • 12