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

Revit Activate 3D View using Revit API 2014

I have opened a revit document using Revit API 2014 from within Idling event handler. After that I am trying to activate 3D view but I am getting some exception (Setting active view is temporarily disabled). Is there any way to get around this…
amit
  • 363
  • 2
  • 10
  • 24
0
votes
1 answer

Open Workshared document in Revit Architecture 2014 using Revit API

I am new to Revit API. I am trying to open revit documents using Revit API 2014. It works fine for the non-workshared revit files but I am not able to open workshared revit files using API. Can anyone point out if I am using a correct way to open…
amit
  • 363
  • 2
  • 10
  • 24
0
votes
2 answers

Embedding CefSharp in a plugin for Revit

I'm having issues embedding CefSharp (WPF) in a addin for Revit: My addin cannot be loaded by Revit unless all files are in the Revit folder alongside with the main exe. This is not good because it messes with all Revit files. I've tried to set the…
Marco Fiocco
  • 352
  • 2
  • 15
0
votes
1 answer

400 (Bad Request) when I request a token

I have written the following code to connect and retrieve a token from the Autodesk. but this does not work properly: var client = new RestClient("https://accounts.autodesk.com"); client.Authenticator =…
a.toraby
  • 3,232
  • 5
  • 41
  • 73
0
votes
1 answer

Set work plane for element programmatically?

In Revit I have a sweep element inside a family and I would like to set its work plane programmatically. Inside Revit I can achieve that by double-clicking my family and then select the sweep and click Edit Work Plane. Here I can choose any named…
user2479356
0
votes
1 answer

REVIT API: Split a roof or floor in a 3D-way

I am asked to split a floor or a roof in parts. I am able to do so in a 2D-way, like described in Parts, Assemblies, PartUtils and DivideParts. This works well. You create a curveList based on a face and DivideParts splits the object in several…
0
votes
2 answers

Properties Palette - Type Selector Event

Is there a way to determine that a user is interacting with the Type Selector of the Properties Palette? I do see these journal entries: ' 0:< Unnecessary…
JGeerWM
  • 810
  • 10
  • 16
0
votes
1 answer

Revit MEP 2011 C# iterate through all equipment

I want to iterate through all the equipment in a drawing and get the name of the equipment. Here is what I have: UIApplication uiapp = commandData.Application; UIDocument uidoc = uiapp.ActiveUIDocument; Application app = uiapp.Application; Document…
CornCat
  • 304
  • 4
  • 11
0
votes
2 answers

Ribbon structure with SplitButtons/PullDownButton and PushButtons

I've developed a plugin for AutoCAD that involves cascading drop-down menus and am wanting to do the same in Revit, however the task is much more difficult in Revit than in AutoCAD due to the lack of CUI files and such. I am working with the ribbon…
user3026715
  • 404
  • 3
  • 5
  • 19
0
votes
1 answer

IFC Reader/Writer iOS

We would like to be able to create an IFC reader for an iOS app we are building that will enable us to render the underlying BIM generated design. We found a rather old and unsupported C++ sdk here but it's not what we are looking for. Anyone tried…
Roshit
  • 1,589
  • 1
  • 15
  • 37
0
votes
2 answers

I want to create Revit Plugin and in that the command class will be generic

[Transaction(TransactionMode.Manual)] public class InteropCommand : IExternalCommand { public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements ) { …
0
votes
1 answer

Plugin Window with .Show() disables DataGrid Ctrl+C function .ShowDialog() doesn't

I'm working on a plugin dll for Revit. If I render the main window with .Show() the DataGrid lose it's function to be copied by pressing Ctrl+C. However if I use .ShowDialog() Ctrl+C works fine. I do not want the window to be modal and want to use…
Serhan BAKIR
  • 59
  • 1
  • 1
  • 7
0
votes
1 answer

Revit API & Dynamo, Handling Variable Input Types

Per this thread on the Dynamo forums: http://dynamobim.org/forums/topic/how-to-handle-variable-list-lengthnesting-in-custom-nodes-python/, I'd like to find a way to handle variable inputs for a custom node. Here's an example script that changes the…
stdmn
  • 63
  • 2
  • 8
0
votes
0 answers

Dynamo python Script returns null at OUT but works

Code Here is the code. It creates callOuts correctly but returns null values at OUT. the code is rough but i think is not the cause
0
votes
1 answer

Move Points(pipe pointer position programatically)

I want to move pointer for creating Pipe from one place to another place Programmatically while drawing Pipe from revit. please refer below image. enter image description here while drawing pipe from revit i am able to change offset(Ex. from 15 to…
Namit
  • 11
  • 1