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

How to close an open view, however it is active view or not?(Revit 2017, 2018, 2019)

I'm trying to build an addin function which can batch open or close views. But I cannot find the API methods in Revit API manual. Anyone knows how to open or close Revit view programmatically?
Jolinpiggy
  • 50
  • 7
0
votes
2 answers

Use different event arguments in WorksharedOperationProgressChanged Event - Revit API

How do I use different event arguments like DocumentSaveToLocalProgressChangedEventArgs during the different phases in the WorksharedOperationProgressChanged event. I know how to subscribe to the WorksharedOperationProgressChanged event but haven't…
0
votes
1 answer

How to add a gif animation in a wpf page of class library project?

I am new to creating revit addins and using class library projects. Currently, I am creating an addin using a class library project and the first screen is a login screen(using wpf for this) and I want to add a gif animation to that wpf page. I have…
0
votes
2 answers

How to get axis property with Revit API?

I am trying to used the Revit Interactive Python Shell to rotate an object in Revit. I am hung up on how to designate the axis of rotation. I don't know how to create a line with the API and then designate an axis in…
Christian Gentry
  • 811
  • 3
  • 10
  • 15
0
votes
2 answers

Dynamically set the object type to dwg imported object in revit

I have a wall in 3D Studio Max. I know that the object is wall but max don't know it, max only know that it is an object. While in Revit tool, it is defined that it is roof or wall or door etc. Now in my case I want to export my max object(wall)…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
0
votes
1 answer

How does Revit Analysis Display "Show Contour" work?

I am not sure if "ShowContourLines" property of AnalysisDisplayColoredSurfaceSettings class in Revit works as expected. I am expecting contours similar to isolines to be displayed but instead the outline of the surface is highlighted. Has any one…
ali
  • 529
  • 4
  • 26
0
votes
1 answer

Control the laid out area of rebar set

I am using Revit API to create a set of rebar for a beam. By default, when I change the layout rule (using Revit API as well as end user UI), no matter where I place my rebars, they will automatically adjust to spread out the entire face of the host…
Thế Long
  • 516
  • 7
  • 19
0
votes
2 answers

Keep track of element editings or element edited event in Revit 2018/ 2019

I am working on a project that rebars to host elements in Revit 2018 and Revit 2019. After my code regenerates the rebar reinforcement for the host element, I can not know if the user has manually edited my host or my rebars (generated by my code,…
Thế Long
  • 516
  • 7
  • 19
0
votes
1 answer

How to add parameters to a revit family element from revit document in revit-api c#

I'm working on a project where I need to load pipe fittings (bends) revit families on a revit document and update its shared parameters as type parameters. I was able to achieve this task since I needed to access the bend family as family…
JPais
  • 115
  • 2
  • 14
0
votes
1 answer

Revit API: Direction of rebar spacing (Python)

I'm trying to multiply rebar in a slab using following methods: (using Python script) doc = DocumentManager.Instance.CurrentDBDocument RS = Autodesk.Revit.DB.Structure RebarType = MyRebarType slab = MySlab norm = XYZ(0,0,1) bar = MyCurve n =…
Mitya
  • 1
  • 3
0
votes
1 answer

Creating Materials Via API With Appearance Asset

I have a CSV File with RGB Values that im using to create materials in Revit through Dynamo Python scripting, However the materials that are created does not have AppearanceAsset assigned to it(even though it has a appearance asset tab}.Since when i…
Caroni
  • 35
  • 8
0
votes
0 answers

Custom Material Problem in Forge with Revit 2017

I followed the instructions in the blog post on custom materials in forge and got it to work with Revit 2019. However, with Revit 2017 (I had to update it first to get the "Publish Settings" in the Collaboration tab), the completely same approach…
0
votes
2 answers

Revit Addin (Not appearing in Revit)

So I have created two Revit Addin's. One is to calculate the area of a selected model (AreaChecker), another is to detect all rooms and give their area upon click (RoomChecker). I have essentially used the same code in terms of connecting the…
D Jones
  • 55
  • 11
0
votes
1 answer

Revit Api: Can not edit joined walls LocationCurve

I have a Revit model that contains a series of wall joined together and I want to edit their location. After trying the solution here http://thebuildingcoder.typepad.com/blog/2010/08/edit-wall-length.html it happens that I can only apply the…
Thế Long
  • 516
  • 7
  • 19
0
votes
1 answer

Revit Addin OnStartUp

I am trying to implement a Revit ADDIN which completes a process upon launch. Currently I am trying to load a revit file as soon as Revit is launched, I just want to understand how to create an addin which is completed upon launch.. The program…
D Jones
  • 55
  • 11