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
2 answers

Schedule Cell Override Background Color not showing in sheet

headingStyle.BackgroundColor = new ColorPreset()[ColorPresets.Cream]; headingStyle.SetCellStyleOverrideOptions(new TableCellStyleOverrideOptions() { BackgroundColor = true }); I am applying an override to add a background colour. I am setting the…
Barrie
  • 42
  • 1
  • 9
0
votes
1 answer

How to handle Failures within Revit API?

I'm trying to avoid getting warning messages when copying lots of walls with Revit 2018 API, for instance when some are overlapping. For that, I'm implementing the FailureHandler class as documented on the Building Coder, slightly adapted for…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

How to add instance / type paramter to Family Instance in revit api c#

I am working on a project where I need to add custom parameters under Identity data to element like walls and pipe fittings I was able to add the Parameters and values to walls but for pipe fitting, I was able to add the parameters but I get an…
JPais
  • 115
  • 2
  • 14
0
votes
1 answer

Override IExternal command with another one

I am currently looking for some hacks to communicate between external commands: what i want to do is: Use an external command to modify the others to be able to "configure" theses. Why do i want to do that ? Revit has not a sort of "Command id"…
0
votes
1 answer

How to add color to surface pattern of materials in revit api c#

I am working on a project where I am required to add properties to the materials of an element in revit api I was able to do the task except I could not add the surface pattern color and cut pattern color. My code is as follows Color matColor = new…
JPais
  • 115
  • 2
  • 14
0
votes
1 answer

How to color the 3D models through a web application using Autodesk Forge APIs?

We are building a web application to browse/view 3D models.We are using the Forge APIs to view the models in web browser. We wanted to make the colors changed based on the user inputs. Please help us suggesting the API that needs to be used for…
0
votes
1 answer

Placing a detail component in Revit using python

I'm trying to create detail component buttons that run the following code. However, I need it to work for 2015-2018 possibly 2019 in the future. Currently I have the custom ribbon and buttons made, but I can't get this script to work due to…
0
votes
2 answers

Get all room names from one plan view and change a parameter of each room | Revit API

right now I am working on a project, which should get the roomnames from a plan view and compare each room name with a database. If the roomname if found in the database, the parameter in the room called "IS_IN_DATABASE" should be updated with…
clem995
  • 319
  • 2
  • 16
0
votes
1 answer

duplicate endpoints for every element

I am working on exporting the vertices of all walls. I manage to output the results, but every wall has the same set of vertices. I used the approach of getting the edges of the element but that consisted of 92 endpoints per wall which cannot be…
Daniel Ignjat
  • 73
  • 1
  • 1
  • 7
0
votes
1 answer

Editing elements geometry (trimming joined elements)

I am exporting some data to Revit via API. The problem is that the result when having more than two elements meet at the same point is incorrect. I have tried to edit the faces or the edges of the elements but it seems that they are read only and…
Madonna Remon
  • 1,149
  • 1
  • 7
  • 12
0
votes
2 answers

PostRequestForElementTypePlacement structural wall

I'm having a problem with the method uidoc.PostRequestForElementTypePlacement(). It seems that the method is always requesting to use the architectural placement instead of the structural one. Is there any way to call the structural wall/floor…
Jan Buijs
  • 98
  • 1
  • 6
0
votes
1 answer

Editing "FamilyType" mapped to a parameter

I am trying to programmatically change the FamilyType that is mapped to a parameter inside a Family (specifically one that creates Weld Annotations). In this case, the FamilyType(s) in question are only inside the family, so a search for a matching…
0
votes
2 answers

Can I get the GPS coordinate in Revit?

Can I get any GPS position in Revit? Suppose I had set the survey point to {25.039549, 121.560771} and set project base point on the survey point. If I want to know where is the {25.100000, 121.60000} in Revit project coordinate, how can I mapping…
shaichun
  • 59
  • 7
0
votes
1 answer

Add dimension between two elements that are not inside the family editor?

I've seen examples using the NewDimension method to dimension between two points and two lines, I assume in the family editor, but I want to add a dimension to two family instances in the model, such as a pipe tap's centerline and a pipe end. Then…
Gallaxhar
  • 976
  • 1
  • 15
  • 28
0
votes
2 answers

Controlling the event ElementTypeDuplicated

I am controlling the event "application.ControlledApplication.ElementTypeDuplicated" and this event raise after the name of the new type is imputed, but after that I would like to override the result of the dialog box ( ID: "IDD_SYMBOL_ATTRIB") that…