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

Dimensions attached to Parts or Generic Models Revit

I would like to dimension all my generic models i.e panels and parts. I have chosed a way to accomplish this. But the only issue I can see is that, when repanelize the wall, its not going to override the dimension. private static void…
Robert
  • 79
  • 14
0
votes
1 answer

LandXML to Topography.ByPoints doesn´t work as expected

I´m new here, so I hope this thread doesn´t exist already. I exported a LandXML file from Civil3D. In this file are 3 surfaces listed. Now my aim is to import it in revit and convert it to a topography. It was no problem to extract all the points…
NancyRue
  • 1
  • 1
0
votes
2 answers

Mirroring details inside a section view using the Revit API

I have some detail lines inside a section view that I would like to mirror across the midpoint of the CropBox for the section. I'm using the ElementTransformUtils.MirrorElements to try and accomplish this. However, I have not yet been able to find…
skeletank
  • 2,880
  • 5
  • 43
  • 75
0
votes
1 answer

Setting the CompoundStructure.EndCap is not working

I am working on a Revit plugin using RevitAPI. I create a new WallType by duplicating existing one. Then I edit the structure - adding new layers. Also, I am setting the OpeningWrapping to Both and I want to set the EndCap to Interior.…
Ivan Nikolov
  • 235
  • 2
  • 18
0
votes
1 answer

REVIT API. Can I set geometry from DirectShape for inserted FamilyInstance?

I have project document that has DirectShape element. I create new Family with 1 FamilySymbol. FamilySymbol is created without geometry. Then I loaded new Family and inserted NewFamilyInstance. And I want to set Geometry, but geometry got from…
olegog
  • 121
  • 1
  • 3
0
votes
1 answer

how use viewer-javascript-extract.spreadsheet

I have used model derivative API for geometry and data extraction. Now I want to extract model information in excel sheet. I read the post https://github.com/Autodesk-Forge/viewer-javascript-extract.spreadsheet but I have many questions. Like how to…
0
votes
2 answers

Dropbox file extension missing after upload of Revit file using UploadAsync()

I am uploading a file with a .rvt extension. using filestream and then UploadAsync(). I can upload and download the file from a folder I generate on the Dropbox remote server using a c# desktop app called from a winform. I can also rename the file…
0
votes
2 answers

How can I flip a live section with the Revit API

I would like to be able to flip a live section using the Revit 2017 API. It would be the equivalent of the UI feature seen in my images below. I've tried using the built-in ElementTransformUtils.MirrorElement but that will only create a second…
skeletank
  • 2,880
  • 5
  • 43
  • 75
0
votes
3 answers

How to simulate a click on a pushbutton?

I have a PushButton in a revit API ribbon and would like to simulate a press on it in order to do some tests (I need a ExternalCommandData object from the currently active document). However I cannot seem to find anything like a PushButton.Click()…
Thijser
  • 2,625
  • 1
  • 36
  • 71
0
votes
1 answer

Removing element IDs whose element has gone missing in Revit API using C#

We have a model. The central model has become corrupt due to too many missing elements. After following the procedure outlined in this documentation, we are unable to find an instance of the model where these elements exist. There are thousands of…
Skinner
  • 1,461
  • 4
  • 17
  • 27
0
votes
1 answer

How to programmatically extend a Pipe in Revit

I have a very particular circumstance in which I need to be able to extend the length of a pipe by a particular magnitude.   I've tried various methods - none of which work.  They include: Pipe.Location.Move(XYZ fVector); //This moves a Pipe…
Uchiha Itachi
  • 1,251
  • 1
  • 16
  • 42
0
votes
1 answer

Find Temporarily Hidden Elements In Revit View

I've got a method that checks on some visibility issues in Revit. The problem is that it throws an error on an extremely common issue: "a user manually hiding the element in it's view". This line of code public bool IsElementManuallyHidden(View…
prestonsmith
  • 758
  • 1
  • 9
  • 29
0
votes
1 answer

Transfer Project Standards Revit

I would like to transfer project standards through revit API. I am able to copy all the elements except shared parameters. Please let me know how can I copy the shared parameters while doing transfer project standards.
Robert
  • 79
  • 14
0
votes
0 answers

How to preview geometry in Dynamo for Revit inside a custom node

this is for anyone familiar with Revit, Dynamo, or C#. I'm trying to create a custom zero-touch node using C# that will highlight a chosen curve as colored geometry in the preview window, while remaining inside of a loop. So far I can only preview…
0
votes
1 answer

How is Revit database structured?

I was looking for a conceptual structure of Revit models. I found the following graph which seems to be from 2009. I wonder if it is still valid.
Thoran
  • 8,884
  • 7
  • 41
  • 50