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

Remove/Delete/Undo Parts

I have splitted the wall into parts. Now I want to remove the parts and keep the original wall. How do I remove/delete/undo the parts that have already been created? I have the partids which I would like to remove. .ActiveDoc.Delete(partid) doesn't…
Robert
  • 79
  • 14
0
votes
1 answer

Program Right-Click Methods in Revit

I'm working on the Revit API, and I'd like to be able to program some function off the Right-Click rather than inserting another button and dialog window. Does anyone know a way to accomplish this? Any help, links, etc. is greatly appreciated.
Uchiha Itachi
  • 1,251
  • 1
  • 16
  • 42
0
votes
1 answer

Revit API: How to retrieve possible values for parameter with storage type ElementId

I have a family with nested families which are controlled by a family type type parameter. (Storage type ElementId) How do I query a project file to retrieve possible values of parameters of the type elementId? I've snooped the family instance to…
MarshAPI
  • 35
  • 1
  • 6
0
votes
1 answer

Boolean Family Variables in Revit and how to use them

I'm trying to do something that has ended up giving me far more trouble than I thought it would; mainly because of my unfamiliarity with Revit. Initially I was trying to use an algorithm to search through the users drawing, find valves, check if…
Uchiha Itachi
  • 1,251
  • 1
  • 16
  • 42
0
votes
2 answers

2 Sequential Transactions, setting Detail Number (Revit API / Python)

Currently, I made a tool to rename view numbers (“Detail Number”) on a sheet based on their location on the sheet. Where this is breaking is the transactions. Im trying to do two transactions sequentially in Revit Python Shell. I also did this…
c.m
  • 93
  • 1
  • 1
  • 11
0
votes
1 answer

How to Retrieve the Coordinates for the wall Openings

I would like to retrieve the coordinates (points) of a door which resides in a wall. I am getting the openings as below. Also, I am having the width. How can I find out the end point of the opening. Also, is there any easy other way to achieve…
Robert
  • 79
  • 14
0
votes
1 answer

Wall Dimensioning

I would like to set the gap from the element to some value so that the dimension would be clearly visible. Please find below the screen shot. Currently it's looking like this. But I would like to achieve like below.
Robert
  • 79
  • 14
0
votes
1 answer

Revit Addin Visual Studio Calling SOAP web service

Creating a Autodesk Revit addin. I want it to be able to talk to SOAP Web Services The addin is created as a Class Library. The SOAP client code is generated by using the Visual Studio Service Reference and pointing at the wsdl url. When I launch…
Greg Bluntzer
  • 323
  • 1
  • 4
  • 21
0
votes
1 answer

How can I set the alignment of PushButton in RibbonPanel in Revit API

public void BuildRibbon(UIControlledApplication application) { foreach (var bc in _container.GetExports().OrderBy(l => l.Metadata.PanelIndex)) { var md = bc.Metadata; var…
0
votes
1 answer

Is there any way to clone a document in revit

I'm working on a revit project where we want to clone a document for multithreading purposes. However there does not appear to be any way to clone a document by default. There does not appear to be a Document.clone() function. Ultimately I'm…
Thijser
  • 2,625
  • 1
  • 36
  • 71
0
votes
2 answers

Collecting Revit Warnings

Where are Warnings in the Revit Database? I'd like to use python to create my own error report (similar to the HTML export), but not sure where to find this information. I cant find anything in the Revit API (Revit 2015) referring to warnings. How…
Skinner
  • 1,461
  • 4
  • 17
  • 27
0
votes
1 answer

Is this Edge of a 3D solid Concave or Convex?

Given a 3D solid model and an edge, I am testing whether that edge is concave or convex. What is the best way to do this? I'd like to minimize the assumptions regarding the input geometry. My first pass at the problem takes the average of the…
0w3n
  • 325
  • 1
  • 9
0
votes
2 answers

How do I get all elements of a certain category, type and familiy in revit

I have a function where I would like to get all elements belonging to a certain category, type and family. I have their names as strings and would like to obtain the actual elements that meet the criteria. I have tried a bit with the following: …
Thijser
  • 2,625
  • 1
  • 36
  • 71
0
votes
2 answers

Revit to Pdf Conversion

I am trying to automate the process of pdf printing in Revit 2017 using Revit API with Idling event handler. I am opening the revit document using OpenDocumentFile method and not using ActiveUIDocument anywhere. This process is generating Invalid…
amit
  • 363
  • 2
  • 10
  • 24
0
votes
1 answer

How to load an object to stack in Reflection.Emit C#

I'm trying to adapt this workaround to my project. Instead of a string I want to give an object (of type RevitFamily) to the base constructor. Unfortunately, I can't find out how to load an object or object reference onto the stack using…