Questions tagged [revit]

Revit is a BIM (Building Information Modeling) software tool used by architects, engineers, etc.

Revit is a BIM (Building Information Modeling) software tool for Windows OS used by architects, engineers, etc. It was created by Revit Technologies Inc. and then purchased by Autodesk Inc. in 2002. It has a .NET API that can be used to interact with the UI as well as the underlying objects inside of project and family files.

Resources

The Building Coder

529 questions
0
votes
2 answers

Revit ActiveAddInId Statement error

this is the statement that i thought should work: commandData.Application.ActiveAddInId; Error: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
0
votes
1 answer

Revit Worksharing Checkout Status

if (WorksharingUtils.GetCheckoutStatus(doc, ((Element)view).Id) != 1) Error Operator '!=' cannot be applied to operands of type 'Autodesk.Revit.DB.CheckoutStatus' and 'int'
0
votes
1 answer

Revit Subtransaction Statement error

I have having a problem with this statement: SubTransaction subTransaction = new SubTransaction(doc); if (subTransaction.Start() == 1)
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

How can I suppress the "Instance of linked .rvt file needs Coordination Review" dialog?

I need to suppress the Instance of linked .rvt file needs Coordination Review dialog while I'm running an add-in that opens multiple models because I don't want the user to need to click through a bunch of dialogs. I've added an event handler to…
skeletank
  • 2,880
  • 5
  • 43
  • 75
0
votes
2 answers

Revit Type Library formula comparison against family type

If I have a property in a Revit Family Type Library that is a Family Type is there a way I can reference the type that is selected in the property for use in formulas. Say for example I have a parameter "Bolt Washer (default)" parameter name and…
sweetfa
  • 5,457
  • 2
  • 48
  • 62
0
votes
1 answer

Revit 2013: Where can I get the T wall joins?

I'm trying to get all the joins from a given wall inside Revit, but all the resources I've found over the web are not working. The LocationCurve.get_ElementsAtJoin(n) only returns a few, and as the documentation points out: Get all elements…
Izzy Rodriguez
  • 2,097
  • 3
  • 21
  • 32
0
votes
2 answers

How to cast a Revit Element as a Revit.DB.Opening

I am relatively new at programming in Revit. I am currently getting a list of elements in my drawing that are of type door or window. What I want to do is cast these as an opening however I get an error when I try to cast them as a…
Richard S.
  • 713
  • 1
  • 9
  • 24
0
votes
2 answers

How to create wall with Location line coinciding with external area boundary?

I'm creating a wall over a area boundary line, but can't find a way how to place it with Location line "Finish Face: Exterior". I'm getting geometric data from area boundary: LocationCurve elLocation = (LocationCurve)area_boundary.Location; XYZ pt1…
cansadadeserfeliz
  • 3,033
  • 5
  • 34
  • 50
0
votes
1 answer

Autodesk Revit MEP 2010 .NET API C# room to door relation

Working with VS 2008 and Autodesk Revit MEP 2010 in C# I am trying to find out if a door is connecting to rooms: ElementSetIterator elementsetiteratorBIMDoors = bimdoors.getBIMDoors().ForwardIterator(); while…
user134146
0
votes
1 answer

How to set the value of a shared parameter with type binding in Autodesk Revit Architecture 2010?

I have a shared parameter UValue bound to the Wall type with TypeBinding in Autodesk Revit Architecture 2010. I can easily access the parameter with: Definition d =…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
0
votes
2 answers

Getting wall brutto area in Revit API

I'm trying to get the wall brutto area with Revit API. However the only thing I'm getting is the netto area. I'm using the method with deleting the wall and reverting the changes to determine all the elements that are placed on the wall. Then, I'm…
minorum
  • 3
  • 2
0
votes
1 answer

BDD/TDD with Revit API

My question is relevant to this question, but I've somehow moved a step further and implemented a test framework using nunit. When I run the test framework addin inside Revit, the testing framework somehow locks the test assemblies making it…
alital
  • 411
  • 5
  • 15
0
votes
1 answer

How can I access the overridden properties of a .NET API object in IronPython?

I am using IronPython to create a shell for a plugin API to Autodesk Revit Architecture 2010 to speed up learning their API. One of the classes the API provides is Autodesk.Revit.Elements.Room, derived from Autodesk.Revit.Element. I would really…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
0
votes
1 answer

Geometric Line representing external core face or internal core face of a wall in Revit API

I would like to extract the line segment that represents a wall in plan view for each of the various layers of a wall. What mechanism exist in the Revit API to allow me to do this.
sweetfa
  • 5,457
  • 2
  • 48
  • 62