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
1 answer

Revit API: Use String as Button Assembly Name with Current Path

I'm not entirely sure at all why this is happening... So I have a ExternalCommand and an application for making a ribbon tab and button. These two programs are in the same solution and under the same namespace, which allows me to have fewer files…
Jacob Bunzel
  • 165
  • 1
  • 4
  • 15
0
votes
2 answers

Revit API: Material Asset Parameters get and set

I am trying to access via RevitAPI the data that is contained for particular asset. For instance I want to manipulate the Identity Data and get and eventually set some data for Manufacturer, Model, Cost and URL. How can I achieve the same for the…
Ivan Stefanov
  • 65
  • 1
  • 1
  • 7
0
votes
1 answer

How to Export multiple NWC from revit and when append in Navisworks it show sperate Viewpoints?

Export Multiple NWC (Active 3D view)from Revit and append in Navisworks, but it show same viewpoint for both NWC . I think it should show different Viewpoints because we export NWC of different 3D views
Ajay
  • 1
  • 2
0
votes
1 answer

How to include linked files in the postable command: tagallnottagged?

I would like to tag all objects not tagged, including all linked files. Within the Annotation section, this is fairly easy as you can 'Tag All' and select 'Include elements from linked files'. However, I would like to create a macro which…
user3509140
  • 25
  • 1
  • 6
0
votes
1 answer

Upload rvt then try to get model data

https://gist.github.com/kenken64/b40ef906076018dc11aef1929b7e04a5 I am getting the following error after submit a job while checking status 200 application/json;…
0
votes
1 answer

How can I draw a rubber band line while picking the second point after first point picked?

In Revit API, I want to draw a ModelLine which can preview before second point picked. How can I do that?
Phong Nguyễn
  • 790
  • 2
  • 5
  • 20
0
votes
2 answers

Copy dimensions from a View to another Revit API

I'm trying to create a new plug-in on Revit 2016/2017 with the API. The idea is to copy a set of element from small revit file to a central one to compile them. Here is the code I'm using : FilterableValueProvider provider = new…
Thibaud
  • 377
  • 1
  • 2
  • 15
0
votes
1 answer

Create Dimensions from edge of wall, to sides of openings, to other edge of wall

I've been struggling with this issue off and on for the better part of a year. As the title says, i wish to dimension from one side of a wall, to both sides of openings (door openings), then terminate at the other end of the wall (vertically and…
Dylan
  • 26
  • 5
0
votes
1 answer

Revit Addin Runs When Form is Closed

My program in Revit has two list boxes and depending on what is selected, it will make changes to elements. However, I have found that if a user selects some options but then closes the form, it will still run with the selected options. My code is…
Jacob Bunzel
  • 165
  • 1
  • 4
  • 15
0
votes
3 answers

Windows Form in a Revit Addin

I have written quite a few different add-ins now but I keep struggling to get a windows form working on Revit. The program builds fine and I have the dll set up for Revit to access. Here are the different sections of my code. The program is more…
Jacob Bunzel
  • 165
  • 1
  • 4
  • 15
0
votes
2 answers

Revit Addins that Run in the Background/Always

Is there a way to create a Revit macro/add-in that will be running constantly. My employer is curious if I can write a program that makes a piece of equipment (for example a lighting fixture) a different color if it is not circuited/not connected to…
Jacob Bunzel
  • 165
  • 1
  • 4
  • 15
0
votes
1 answer

Revit API: How can I count total point on the edge of the floor?

As my title, I want to know total endpoint located on the edge of the floor. Does anyone has a solution? My ideal maybe like this: int i = 0; FilteredElementCollector docCollector1 = new…
Phong Nguyễn
  • 790
  • 2
  • 5
  • 20
0
votes
2 answers

Controlling Visibility Of Imported Categories

I am writing a program to turn off certain "sub-categories" from imported AutoCAD files (such as "DEFPOINTS", which arguably should automatically be hidden or not plot in Revit). The following code seems like it should work, but instead kicks back…
0
votes
2 answers

EndPointReference method

I am strugglying with a problem that is to access the reference of the end point of a pipe curve to then create a dimension in the model, by the method doc.Create.Dimension().I already tried to use the Curve.EndPointReference(int index) method but…
0
votes
1 answer

Code working in one Addin but doing nothing in another

FilteredElementCollector Lincoln = new FilteredElementCollector(doc); Lincoln.OfCategory(BuiltInCategory.OST_RvtLinks); Autodesk.Revit.DB.View CurrentView = uiDoc.ActiveView; ICollection Toggle_On = Lincoln.ToElementIds();…