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

Deserialize Revit API

this is my first time to get my feet wet with serialization...in fact i am developing Autodesk Revit through C#. Objective: I need to record data to a new file on HDD, so that this file can be opened from another computer through Revit. Procedure:…
M.Khalil
  • 33
  • 2
  • 7
0
votes
1 answer

Autodesk Revit Architecture 2014 .NET API C# find room bounding elements in link

I've Revit 2014 over here. I know that the walls in linked documents can be marked as room bounding. An yes, that works great. However, from the API I cannot find the which walls from those linked documents are room bounding for my Room. I can find…
KenGey
  • 406
  • 4
  • 15
0
votes
2 answers

Draw line while picking line's points in Revit 2014

I'm trying to figure out if there is a way to programmatically allow the user to draw a line in Revit 2014 or to call the model-line command (using the line option, not rectangle, circle, etc). I need that the user call my command, this command…
Tobia Zambon
  • 7,479
  • 3
  • 37
  • 69
0
votes
1 answer

Z coordinate is ignored while inserting face-hosted nested family instance in Revit 2014

I'm trying to insert a face-hosted family that contains a void extrusion inside a generic specialty equipment family. The scenario is the following: In the "parent" family there is a rectangular extrusion placed with Z = 100 mm and height = 40mm;…
Tobia Zambon
  • 7,479
  • 3
  • 37
  • 69
0
votes
1 answer

Flip a sweep in Revit 2014

I've succesfully created a Sweep using a loaded profile. Now I need to flip it along the path. I've tried this statement: sweep.ProfileSymbol.IsFlipped = true But, after the execution, IsFlipped is always false. What I'm doing wrong?
Tobia Zambon
  • 7,479
  • 3
  • 37
  • 69
0
votes
1 answer

Dynamically add command after IExternalApplication.OnStartup to the Revit Ribbon?

Is it possible to dynamically add commands after IExternalApplication.OnStartup has executed to Revit's Ribbon Panel? I came across this post on…
Muers
  • 3,190
  • 3
  • 26
  • 32
0
votes
0 answers

CopyElements failing with ViewSheet

I'm trying to copy some ViewSheet elements from one document to another, but I always get a: "Copying one or more elements failed." It's working fine with ViewDrafting and ViewSchedule - checked the DuplicateViews sample on the SDK already, and…
Izzy Rodriguez
  • 2,097
  • 3
  • 21
  • 32
0
votes
1 answer

Are there secrets to obtaining the geometry information for a Revit reference plane or grid?

I am working on code to use elements from a number of different Revit categories to find two endpoints to use as a virtual "trim/extend" plane. I have this working for Detail Lines & structural framing...... switch (Ref_Plane_Category){ case…
KeachyPeen
  • 147
  • 2
  • 13
0
votes
1 answer

How do you set a view to a customized view family name in Revit?

I have not been able to see how to change a view family type to a different view family name... For example, I have "Detail Views (Detail)", which is the default location in the browser it places a new ViewSection.CreateDetail section. But I want…
KeachyPeen
  • 147
  • 2
  • 13
0
votes
2 answers

The type 'Autodesk.Revit.DB.Element' has no constructors defined

I want to create a class and have it inherit from the Autodesk.Revit.DB.Element class public class MyElement : Autodesk.Revit.DB.Element { //... } But when I compile the code I get the following error The type Autodesk.Revit.DB.Element has no…
user3451925
  • 33
  • 2
  • 6
0
votes
2 answers

How to get the center point of a Face or a PlanarFace element in Revit

I'm doing a Revit Macro to get the center point of a part (floor part) to check if it is inside a room or a space. I couldn't get much of the BoundingBox object which is giving me a point outside the part, so I tried to use the Geometry element…
Samer
  • 11
  • 1
  • 6
0
votes
2 answers

How to retrieve a wall 's original geometry using Revit API?

In a project, I need to export a wall's original geometry to an IFC file. The so-called original geometry is the geometry of a wall without being cut by doors or windows hosted on the wall, without connections with roofs, floors, beams, columns,…
user3337449
  • 1
  • 1
  • 2
0
votes
2 answers

Access revit element data - python revit api

I'm a little confused about how you get access to Revit's element data, such as an element's parameters, location, Id, etc.. If I have this code: collector = FilteredElementCollector(doc) collector.OfCategory(BuiltInCategory.OST_Walls) walls =…
dciolino
  • 13
  • 1
  • 4
0
votes
1 answer

Statement issue in revit api

I am having a problem with the following statement. I was hoping some could help me? if (parameter != null && parameter.StorageType == 2 && parameter.HasValue)
0
votes
1 answer

Stop a loop without threading C#

sorry if this is a silly question, I am new to C#, so please give me a break. I am working on Revit API. currently, Revit API doesn't support multi-threading operations. my question is how to stop a loop without calling a new thread? I am trying to…
M.Khalil
  • 33
  • 2
  • 7