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

Revit Copy addin dll at shutdown

I am working on creating a revit addin and I want to have it automatically pull a copy ofthe .dll and.addin files at shutdown using a batch file. By themselves the code and the batch file routines work correctly but when I have them running with…
blkscrpn5
  • 11
  • 5
0
votes
1 answer

How to make transaction mode manual in Revit Extensions (REX) platform?

I am using REX to develop an extension. But I see the default transaction mode is set to automatic. Is it possible to make transaction manual without causing any problem with the functionality of REX classes? Is it possible to make transaction…
Saeid
  • 691
  • 7
  • 26
0
votes
1 answer

Revit API: Rebar Container is placed completely outside of its host

When I try to create a rebar container I get this error inside Revit after running: Warning - can be ignored "Rebar Container is placed completely outside of its host." I don't know how should I avoid this error. Here is the code: containertype =…
Saeid
  • 691
  • 7
  • 26
0
votes
2 answers

How to access element cut areas/filled regions through Revit API

I'm trying to figure out how to access the filled regions created when an object is cut in plan or section. My aim is to write a tool that duplicates these regions in order to quickly create dual hatches in a view. I'm unsure at the moment whether…
wil
  • 31
  • 5
0
votes
1 answer

Revit API | How to paint a wall?

I'm trying to paint a wall with macros in Revit 2014. First I get the material and then the faces of the wall, but when I select the wall nothing happens. This is the code in Python: def PaintFace(self): uidoc = self.ActiveUIDocument doc = …
0
votes
3 answers

How to get Type Parameters of structural beam

Can any one tell me how to get Type Parameters of structural beam? Parameters like section height, width, area? I suppose I should start something like this: Selection sel = uidoc.Selection; Reference pickedRef = null; pickedRef =…
0
votes
2 answers

Getting Active View Object Parameters?

I am new to the API and I'm trying to get values from the active view. I am using the following code as a mock up to what I'm trying to do: public void GetViewProperties() { String viewname; String typename; String levelname; String…
Barrie
  • 42
  • 1
  • 9
0
votes
2 answers

Revit Add-in Localization

Is there a way with the API to convert/translate Revit standard terms such as 'Insulation', '3D view', 'View Templates', 'Detail Level' and other baked-in terms to a given language (such as German, Russian , Chinese, etc.)? I'd like to ensure that…
Gregory Mertens
  • 534
  • 1
  • 8
  • 15
0
votes
2 answers

Revit Api Load Command - Auto Reload

I'm working with the revit api, and one of its problems is that it locks the .dll once the command's run. You have to exit revit before the command can be rebuilt, very time consuming. After some research, I came across this post on GitHub, that…
Ryan
  • 29
  • 8
0
votes
1 answer

Revit Worksharing - Get active local users

It remains unclear to me, how a Revit addin would know if there are other active local files (other active users) at runtime. The plugin under consideration needs to provide all scheduled elements with their UniqueID in a shared parameter…
0
votes
1 answer

How to delete ScheduleInstance from sheet?

As we know we have method ViewSheet.DeleteViewPort() method to remove ViewPort from sheet, but i can not find method to remove ScheduleInstance from Sheet, I also try doc.Delete(elementId) method, but it’s not work . So how i can delete it from…
0
votes
1 answer

Revit Option Bar

I apologize if this has been asked before, but my search didn't turn up anything on this topic. Is there a way to show options in the Options Bar in Revit 2016 while prompting the user to select an object (in my case, a Ceiling in a space)? For…
Greg S
  • 13
  • 5
0
votes
5 answers

Same code to create parameters in Revit 2015 + 2016

So the ExternalDefinitionCreationOptions had a spelling error in the Revit 2015 API that was corrected in the 2016 API. I try to make my app as compatible as possible with the current version + previous, but this time I'm not even able to compile it…
Izzy Rodriguez
  • 2,097
  • 3
  • 21
  • 32
0
votes
2 answers

How to see if a door faces outside

I'm working on a pathfinding program in revit. In order to get this to work I need to know what doors face the outside, in order to find this I have several ideas but am unsure how to get any of them done. 1 something with topolegy and looking at…
Thijser
  • 2,625
  • 1
  • 36
  • 71
0
votes
2 answers

How to write a Multi threaded plugin for Revit?

For a Revit plugin I have written the following code: public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { try { Global.GetInstance(commandData); …
a.toraby
  • 3,232
  • 5
  • 41
  • 73