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

Code Options for Location & LocationPoint don't work on TextElement

The Revit API does not seem to have enabled certain aspects of either Location or LocationPoint with respect to TextElements. When using the code below, the result is the error "Object reference not set to an instance of an object". As noted with…
0
votes
1 answer

How do I create a custom FilterRule with an override for ElementPasses

I want to create my own Boolean operation on an element to pass in as a FilterRule. The ElementPasses member description states: Derived classes override this method to implement the test that determines whether the given element passes this rule…
Barrie
  • 42
  • 1
  • 9
0
votes
1 answer

How to make revit works with an authentication enabled revit server?

My colleague likes to use Revit server in their project for project file sharing. However, we noticed that the Revit server does not use any authentication, such that anyone who knows our Revit server address can access our project file. So I did a…
nathan.xu
  • 201
  • 4
  • 7
0
votes
1 answer

how do you paint faces inside of columns and in-place families?

I´m creating an add-in for painting faces, mostly works fine, i´m using doc.Paint(eId, face, SelectedMaterial.Id); but i dont know how to paint inside in-place families and in occasions faces within "Column" category elements does not get painted.…
0
votes
1 answer

Finding coordinates relative to survey base point and project base point

I've been searching alot about this subject (and read alot) but can't find a solution. I'm trying to find the coordinates for a point relative to the project base point. I've found how to get them relative to the survey point as…
Sennevds
  • 83
  • 10
0
votes
1 answer

How do I get the distance and angle from an existing XYZ when doing a new Selection.Pickpoint?

In AutoLisp, the (getpoint....) utility offers an additional point variable argument which allows a new point variable to be relative from an existing point. The form is (getpoint RefPt "Next Point Where?"). How do I invoke the same methodology in…
0
votes
2 answers

How do you get Bluebeam not to open up revu when printing PDF's

I have successfully created a program to create PDF files without reformatting the file name (Revit strips out dots and puts in dashes, and prefixes the file name with the entire model name). However, once the PDF is "created" it is still ported to…
0
votes
1 answer

Get a room's neighbours within Revit 2017 API

I am trying to browse all rooms (or actually all spaces) of a building, in order to get the list of adjacent spaces to each of these spaces. I have read some quite old posts about it here and here, but these use the "Element" property of…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

Specific Heat units specification via Revit 2017 API

Referring to a previous question I posted here, I also have a problem with the units required by Revit. In the RevitAPI.chm help, I read for the ThermalAsset.SpecificHeat Property that "Values are in feet per Kelvin, squared-second (ft/(K s²))...".…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

Specify the specific heat of a material with Revit 2017 Python API

With Revit 2017 Python API, I am trying to create new materials, and then assembling some of these to create new type of walls. It goes pretty well for all properties, except for the specific heat! Basically, what I do is: create a…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

Date/Time Revit Shared Parameter

I am a brazilian student and I work on a research Project where I need to develop plug-ins for Autodesk Revit. In the midst of my research, some doubts have arisen. How can I do to insert into a Revit family a shared parameter/project parameter in…
0
votes
1 answer

How to add a button to a contextual ribbon in Revit

I am wanting to add buttons to certain contextual ribbons...  Specifically: Modify | Multi-Select, Modify | Pipes, Modify | Sprinklers, Modify | Pipe Accessories, Modify | Pipe Fittings, Modify | Mechanical Equipment and Modify | Generic…
Uchiha Itachi
  • 1,251
  • 1
  • 16
  • 42
0
votes
1 answer

Dimensioning Family Instances.

I would like to Dimension the family instances. What is the reference I should be provided while creating dimension. I have tried with several approaches but the dimensions are not getting deleted when I delete the family instances. This means that,…
Robert
  • 79
  • 14
0
votes
1 answer

Make this temporary dimension Permanent "Revit"

I am trying to dimension the parts. While dimensioning, I am getting a message stating, "Make this temporary dimension Permanent". How shall I get the permanent dimension without clicking anything in UI. Thanks for the help in advance.
Robert
  • 79
  • 14
0
votes
1 answer

Create a count loop c#

I am using c# to create Macros through REVIT. what I am trying to do is to number objects in a certain order, they are sorted by level of placement. I want the code to loop through the first level, count the objects and number them, then go to the…
Dalia
  • 7
  • 4