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

How to cover a floor with a bitmap in Autodesk Revit

I want to cover a floor in Autodesk Revit with an external bitmap (e.g. png file). The texture should be visible in both 2D and 3D view. enter image description here
Krummi
  • 1
  • 1
0
votes
1 answer

Revit Python have problem with isinstance()

I use if isinstance(ins,list): to check . but it returned false Although ins is the List[Object] def getname(ins): name=[] if isinstance(ins,list): for i in ins: name.append(i.Name) else: …
HuyPham
  • 1
  • 1
0
votes
1 answer

How to create a shared parameter that can be shared when project standards are transferred

I am working on a project where I need to create multiple revit files consisting of wall types and create shared parameters into them. I completed this process. But on manually clicking on Manage > Transfer Project Standards Copy from "project…
JPais
  • 115
  • 2
  • 14
0
votes
1 answer

Suggest correct overload of NewFamilyInstance

Suggest me the overload of NewFamilyInstance I can use in my case. I have written a method which add some element to the Finish[1] & Finish[2] layer of wall using these two overloads: public FamilyInstance NewFamilyInstance(XYZ location, …
Saurabh Agrawal
  • 150
  • 1
  • 13
0
votes
1 answer

Collect user selection elements

in version Revit2016 I have a problem, I want to collect the user has selected element, instead of letting the user re-select, I don't know if there is any way to solve it, just like I want to collect the information of the two columns selected on…
Imkc
  • 15
  • 3
0
votes
1 answer

How to export filtered data from Autodesk Revit to MS-Access using C#?

I need to export some parameters of a family type from a Revit document to ms-access using C# programming. I googled and read several pages, and I watched several videos. Then I wrote the following code. But it doesn't work. (I also checked all…
Yasina
  • 33
  • 4
0
votes
1 answer

What alternative should I use to PickPoint in Section Views?

The issue I am dealing with is that I cannot seem to find an alternative to PickPoint for SectionViews. In the Revit 2019 API, I've been trying to create a small script which draws a DetailLine between two points. However, I wish these points to be…
Marko Vejnovic
  • 45
  • 1
  • 12
0
votes
1 answer

RevitAPI C#: How to undock DockablePane onStart

I am attempting to do up a custom dockablePane and I was able to produce one successfully. However, my current implementation seems to show and dock the dockablePane onStart, which is not what I want. I want to show the pane only upon tapping on the…
Koh
  • 2,687
  • 1
  • 22
  • 62
0
votes
1 answer

Cannot access the data from a List(Of List)

I am working on a Revit Add-in and in that add-in I am trying to use a List(Of List(Of Curve)), however I'm having issue accessing the data from the sublists. Dim ClosedCurveList As New List(Of List(Of Curve)) Dim ClosedCurve As new List (Of…
0
votes
1 answer

How to open and activate BIM 360 document with Revit 2018?

I want to OpenAndActivateDocument that is kept on BIM360, but I am getting an error as "Document does not exist". The same method is working with Revit 2019 flawlessly. if (RevitObject.rvtUiDoc.Document.IsWorkshared) { ModelPath MyCentralFile…
0
votes
1 answer

Which is the correct way to define a boolean value of one parameter using "Set()" method in Revit API?

I'm trying to generate some elements in Revit using one Macro. When I try to define any parameter to any generated element, I use the Set() method from Parameterclass. When I try to define any double, int or string parameter it works fine. However,…
user11607830
0
votes
2 answers

How to get create a vector from a curve?

Maybe I'm misunderstanding the concept of 'curve' in Revit API, but I'm basically trying to create a vector from a curve. What I was guessing was creating a vector from both end points of the curve(using GetEndPoint class), but it seems like it's…
Yongjoon Kim
  • 107
  • 1
  • 8
0
votes
1 answer

How to provide a signed url to Forge API for creating revit file

I have a API, that allows to upload file using the API and a key in the Headers. Can this url be considered as a signed url for the design automation api? The following is my API request to send the work item. "result":{ "verb":"put", …
JPais
  • 115
  • 2
  • 14
0
votes
1 answer

Set Wall Instance Id into Parameter Wall Id

I would like to put the wall ID's into the properties of the walls. The Code Builds but doesn't put the wall id into the parameter wall id for all the walls. I've tried without transactions and with. I'm under the impression it has to be carried out…
Tom Edwards
  • 124
  • 1
  • 13
0
votes
1 answer

How to create a wall using Design Automation API for Revit

I am trying to create a wall using Design Automation API for Revit. How can I achieve this. I am working on a project which creates walls based on excel file. First I convert the excel file to json and pass them as parameter to a Revit template…
JPais
  • 115
  • 2
  • 14