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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

How do I determine if a point (X, Y, Z) is inside a FamilyInstance?

I want to determine if a point (X, Y, Z) is inside a FamilyInstance by Revit-Api? Is it possible to achieve this? I have previously used get_BoundingBox to determine the position based on the maximum ...
黃衍齊's user avatar
1 vote
1 answer
19 views

Revit API Copy Elements Duplicates View

I have a simple method that is supposed to copy a view from one model to another with any view specific elements. Here is the method: void HandleViewTransfer(View view, Document sourceDoc, Document ...
sfaust's user avatar
  • 2,141
0 votes
2 answers
18 views

how can the coordinates for a revit fabricationpart be obtained with the revit api

I need to obtain the coordinates for Revit MEP FabricationParts. All of the elements I get do have a location property but not all of them have either a LocationPoint or a LocationCurve. More specific,...
bootsch's user avatar
1 vote
2 answers
38 views

How to Select All Cut Elements in Autodesk Revit Across Various View Types?

I am working on a script in Autodesk Revit, and I need assistance in selecting all elements within the current view that are cut, irrespective of the view type (e.g., floorplan, section, elevation, 3D,...
DaveGrohl's user avatar
0 votes
0 answers
18 views

How the Revit MEP Connector properties can be exported to IFC entity?

I found that there is a notion of 'connector' in Revit MEP for piping and ducting. However, I want to know how the connector properties are exported to IFC format. Are they exported to ifc elements ...
Sean Kim's user avatar
1 vote
1 answer
33 views

Autocomplete not working in VSCode using System.Reflection

I'm using VSCode for writing my Python script for using them in Dynamo for Revit. Everything is working fine except this completion : import System from System.Reflection import BindingFlags VSCode ...
SONA's user avatar
  • 11
0 votes
1 answer
40 views

How can I get the height information of an object?

import clr clr.AddReference('RevitAPI') import Autodesk.Revit.DB as DB doc = __revit__.ActiveUIDocument.Document collector = DB.FilteredElementCollector(doc) elements = collector.OfCategory(...
Ali Eslamifar's user avatar
1 vote
0 answers
37 views

How to add a dimension to an opening within an elevation view?(Revit API)

I’m attempting to write a refit plugin that will automatically dimension from the end of a wall to the edge of an opening. However, I’m unable to find a way to get a reference to the opening. I can ...
Code of Fours's user avatar
0 votes
0 answers
19 views

Revit Dynamo - Python, Get a ModuleNotFoundError when import requests

I am a quite new Revit Dynamo user, but I have some years of experience in Python. I use cPython in Dynamo, and have pip installed requests, pandas and numpy. When importing pandas and numpy no ...
The-Viggo-Meister's user avatar
-1 votes
0 answers
16 views

Dynamo Help creating User interface

Flow2 Flow1 I want to create a User interface to differentiate between "PD" and "PS" instead of it saying sheet plus creating a User interface to select which views I want on Sheet ...
Ant's user avatar
  • 1
1 vote
1 answer
46 views

Get selected elements in linked revit document using revit api

I am trying to get selection to work from a linked document without a result: Document linkedDoc = testLinkedElement.GetLinkDocument(); UIDocument linkedUIDoc = new UIDocument(linkedDoc); // Get the ...
TigAachen's user avatar
2 votes
1 answer
23 views

Access to the Application Options from the File drop down

I would like to access and record user's Options settings to a remote database. We often have users tweaking local settings; hardware acceleration, worksharing refresh rates, file template locations, ...
Skinner's user avatar
  • 1,481
0 votes
1 answer
51 views

How can I upload .rvt (revit) files to Wordpress?

I have a client that wants to allow his users to download a .rvt (revit) file from his website. I need to find a way to be able to upload this filetype to Wordpress. I added the following to my ...
Inventive Web Design's user avatar
0 votes
1 answer
37 views

Extract the properties from .rfa file in a web browser or cloud

I need to extract the object properties from Revit families to save them in a cloud-based platform, preferably without using the Autodesk Revit desktop software. I've tried Autodesk Forge platform but ...
Sajad's user avatar
  • 1
0 votes
0 answers
27 views

external Ids exist in SQLlite file but not in model derivative API

I'm pulling the SQL lite file for models from ACC but am having a few issues. SELECT ids.id AS dbId, ids.external_id AS externalId, attrs.name ...
M Leipper's user avatar
  • 277
1 vote
0 answers
22 views

Ordinate Dimension Text Position

I'm looking for a workaround to be able to edit the property TextPosition or move the label of an Ordinate Dimension. I'm aware the RevitAPIDocs clearly say that it's not possible : This property (...
SerpentSolide's user avatar
0 votes
1 answer
22 views

Conditional Breakpoint failed

I'm creating a dll in c# which will be an addin for a host application, Revit. I've set a conditional breakpoint in my code while attempting to debug some issues. This is my debugging process: Build ...
Charlie P's user avatar
1 vote
1 answer
37 views

Change Revit TextNote to sentence case. I have loads of text that needs to be changed from all caps to sentence case

Revit and Dynamo can change the case to all upper and all lower easily. I need to change loads of notes that are in all caps back to regular sentence case with first letter of each sentence ...
Gosmith's user avatar
  • 469
0 votes
2 answers
77 views

How find angle between two different pitch roof

I'm trying to find the common line angle between adjacent roof lines having different pitch as shown in below diagram Please let me know how the angle can be determined . I tried arctan(8/12)= 33.69 ...
Veeresh Huvinahalli's user avatar
0 votes
1 answer
29 views

How does an Indexer work with a FilteredElementCollector?

I am reading data in from CSV text file where each line in the file is a distinct record. In that record is the name of a text style which I need to convert to the elementID of a TextNoteType. I have ...
Michelle's user avatar
0 votes
1 answer
41 views

Collaborate workshared model to cloud (ACC) without opening Revit

Is there any method to save/collaborate a model to ACC without opening Revit software (using any API?). SaveAsCloudModel method is working with Revit software interface while calling through addin. ...
Avis A's user avatar
  • 1
0 votes
1 answer
54 views

Revit API Try to Get all the elements from Revit File

I am trying to get all the revit element from the revit file.I trying to get the all the element have the parameter "Edited by".How to get that because getting all element from. ...
Lav Kumar Panwar's user avatar
0 votes
1 answer
117 views

Running external executable from Design Automation job?

The goal is to run a c++ executable from a Revit DA job in order to do some mesh processing using a 3rd party library. I'm investigating that track first so it removes the need to write custom .Net ...
Felipe's user avatar
  • 4,315
-1 votes
1 answer
45 views

Is the REVIT API purely for Addin/plugins to REVIT applications?

What I am trying to do is have a form of options that a user would select from to build out a REVIT Project from a template. Ideally a web page but it could be an application that would live on a ...
Ronan's user avatar
  • 27
0 votes
0 answers
23 views

Unity - Import FBX Custom Data from Revit

I am stuck in a situation where I am trying to import some custom data with fbx file, exported from Revit. I have tried to use the method AssetPostprocessor.OnPostprocessGameObjectWithUserProperties(...
P D's user avatar
  • 23
0 votes
1 answer
27 views

Is it possible to add custom properties to a translated SVF2 file via API or at Runtime in Forge?

When using a translated SVF from a Revit file upload to ACC, is it possible to add properties to the model elements that are not originally included in the Revit file and make those available to the ...
piede's user avatar
  • 51
1 vote
0 answers
36 views

How do you change the linestyle of a detail line in Revit?

After banging my head for awhile trying to figure out how to change - using the Revit API - the linestyle of an existing detail line to another given the name of the linestyle, I finally figured it ...
Michelle's user avatar
0 votes
0 answers
30 views

In Revit API I am failing to transform a Sweep Profile Sketch to an XY in the same location relative to the Sweep Path

Here is the below code that takes a Sweep(no symbol profiles are used) from a Revit project and then recycles the Sweep Profile instance and the Sweep Profile Path. I have another method not posted ...
Phil Buggarmen's user avatar
0 votes
1 answer
30 views

How to Check if an External ID is Present in a (BIM) Model Stored on Autodesk Forge Servers (SVF2/SVF)?

I am building a BIM verification tool and need to confirm whether a specific external ID (GUID) is present in BIM models stored on Autodesk Forge. I have successfully done this for locally-stored ...
Willi's user avatar
  • 1
-1 votes
1 answer
17 views

I can't make line by point in Python script as in picture

I can't make line by point in Python script as in picture line1 = Autodesk Line ByStartPointEndPoint(t1, t2) Please I need help. How to code this in python script or in another language? All code is ...
aalgainy's user avatar
0 votes
1 answer
39 views

How to create an output for the Design Automation API Workitem payload other than Revit file?

I have created a plugin that stores family data in a list from the given Revit model. Initially I was extracting the data from the log of the Workitem on it's success response, but the data has become ...
Abhishek Singh's user avatar
1 vote
0 answers
87 views

Unclear exception when reloading families in Design Automation for Revit

I have a Revit add-in for design automation that gets all loadable families in a Revit model and executes the following steps for each family: Open the family document with Document familyDocument = ...
Blake Hageman's user avatar
0 votes
3 answers
94 views

Resolve Assemblies in Design Automation for Revit

I'm using Design Automation to modify family parameter values based on data in a CSV file. The CSV library I am using depends on Microsoft.Bcl.AsyncInterfaces v1.0.0.0+ and the JSON library I'm using ...
Blake Hageman's user avatar
0 votes
0 answers
28 views

Import FBX File from Revit to Unity with model properties

It is a project that will be developed in unity where a model will be taken from Revit that is in fbx format. While creating a the model in revit, before exporting the model, some additional ...
P D's user avatar
  • 23
0 votes
0 answers
74 views

Revit-API help needed regarding FU to flow table forming for MEP calculations. New to c# and stuck

I found a piece of code by Jeremy Tammik where he manipulates what tables Revit uses in order to do its FU to flow conversions called "UserMepCalculation" on Github. Within this piece of ...
Ivan's user avatar
  • 1
1 vote
1 answer
25 views

ExternalDefinitionCreationOptions Changes from Revit 2021 to 2023

Quick & simple question. What it the updated method to create new external definitions for Revit 2023? upgrading to 23 & says ParameterType is inaccessible due to it's protection level. Wasn't ...
nhilson's user avatar
  • 55
2 votes
1 answer
90 views

How to load the Revit addin from some specific folder?

I'm a new one in the development of the Revit addins. And I have one problem. Currently, Revit 2023 doesn't load my custom C# addin. So, I have only one DLL file, that called MyTestAddin.dll. It's ...
5ORBEX's user avatar
  • 103
0 votes
1 answer
53 views

Get Revit Version of a model in BIM 360/ACC via Document management/Model derivative

I'm attempting to develop an application to aid in managing my company's model. One aspect of this project involves analyzing all C4R (Collaboration for Revit) models within the BIM360 and ACC (...
aroestiamir's user avatar
0 votes
0 answers
12 views

Revit material physical asset parameters

I'm trying to extract parameters from Revit materials' physical asset (where applicable and set). Could someone explain it to me why I can see some parameters given in the Material Browser and yet I ...
Imre Szalai's user avatar
1 vote
1 answer
19 views

Revit Python Shell - Get cost property from Elements in a Revit sheet

I'm new to the Revit API, and I would like to experiment with a sheet to get the cost property of a simple sheet that has 4 walls: Do you know if doing this using the Revit API is possible? My idea ...
Cesar Jr Rodriguez's user avatar
1 vote
0 answers
19 views

Can I install/use Python Log Indenter with Revit Python Shell?

I would like to install Python Log Indenter (Document Page ) for use with RevitPytonShell (IronPython version). The docs for Python Log Indenter indicate that PIP be used for installation but I am not ...
Michelle's user avatar
2 votes
2 answers
100 views

Hide elements in Sheets or Revit Document

I am Having a doubt in Revit API. I want to hide some elements in Sheets of the Revit document. But I need an Active view to hide that. view.HideElements(ids) If I take a view which is active and try ...
Rocker's user avatar
  • 71
0 votes
0 answers
29 views

How to deal with Scaled transform in ProjectLocation?

Recently I've stumbled upon a weird Revit 2021 project where ProjectLocation contains a scaled transform (got this out through Revit Lookup plugin). Revit's own "Report Shared Coordinates" ...
user3383272's user avatar
0 votes
0 answers
29 views

Roof with different pitch and eave height

I'm trying to create the roof footprint with only line where each line is associated with slope and eave height. I tried some of the CAD software but it didn't fulfill all requirements with example at ...
Veeresh Huvinahalli's user avatar
0 votes
2 answers
45 views

elem1.Location as LocationPoint).Point is returning null in the below code. Can anyone help me on this?

The code appears to aim at selecting multiple text elements and then arranging them with a specific horizontal distance between them. IList<Reference> selectedRefs = uiDoc.Selection.PickObjects(...
Abhishek Jadhav's user avatar
1 vote
1 answer
63 views

Need to extract family data from the Revit model using Design Automation API?

There is a query regarding Design Automation API: I have created a Revit plugin to extract Family data and it is also working fine with Revit Desktop application, But when I am executing it with the ...
Abhishek Singh's user avatar
1 vote
1 answer
79 views

How to save Family to a new file

Using Revit API and without using Revit UI, I want to save a loaded family into a new file. Let's take a look at the following code: using (Transaction transaction = new Transaction(document)) ...
codeFreak24's user avatar
0 votes
0 answers
44 views

Autodesk Construction Cloud - how to upload linked Revit models to generate a composite URN for Forge Viewer

With BIM360Docs, there was a way to upload a master Revit model with linked models together to produce a single composite model that generates a single urn for Forge Viewer. How do we do that in ...
Bandu W's user avatar
  • 109
1 vote
2 answers
97 views

The model could not be saved: Access Denied. (COleException 0x80030005)

I'm still a relatively new Revit user, but I was able to complete the My first plugin tutorial. https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/7I2bC1zUr4VjJ3U31uM66K.html . I'm ...
Rondel Temple's user avatar
0 votes
1 answer
150 views

How to override/replace a FamilySymbol in Revit document

We are working on a project where we use Autodesk's Forge (or Platform Service), more specifically, the Design Automation where we run scripts on our files in the cloud. This means that the Revit.UI ...
codeFreak24's user avatar

1
2 3 4 5
21