Quantcast
Channel: All Revit API Forum posts
Browsing all 66664 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Re: Column Offsets

View Article


Re: Recursive get elements in Group

Upload is just the class name.  You could use it without the class name.  class GroupUtil { public static List<Element> GetMembersRecursive(Document d, Group g, List<Element> r = null) { if...

View Article


ExternalDefinitionCreationOptions missing Values vary group instance

How would we allow the shared parameters created by the API to be able to have the Parameter property: "Values can vary by group instance". Now they are by default set to "Values are aligned per group...

View Article

Elements remain highlighted in blue after macro runs

I've got a macro that uses elements selected by the user.  Revit highlights elements in blue as the user selects them.  The problem is, after the macro is run, the selected elements remain blue like...

View Article

Revit API

Imports SystemImports System.Collections.GenericImports System.LinqImports Autodesk.Revit.ApplicationServicesImports Autodesk.Revit.AttributesImports Autodesk.Revit.DBImports...

View Article


Re: Attempting to make a plugin

Sorry to beat the dead horse but I need to know for sure. When telling the button which class to run, you can't pass a variable to said class to run? Because I'll essentially have a hundred buttons...

View Article

Re: Column Offsets

It turns out that you can get it with AsDouble() function! topOffset.AsDouble();

View Article

Image may be NSFW.
Clik here to view.

IFC Export from DirectShape Elements

Hi,  I've converted walls, doors, and windows elements to DirectShape as described in Jeremy's blog. Thank you, Jeremy. It worked great so far...

View Article


What is the best way to create a custom schedule / table sheet

We generate multiple schedules (tablesheets), each with cross sections of data (Windows+Doors+Curtain Walls and Floors+Areas+Rooms). We found different ways to create a schedule or legend:Creating a...

View Article


Image may be NSFW.
Clik here to view.

Retrieve used/unused Family Parameters

Salutations! I am working on a small project with the action taking place in the Family Document environment. In short, I am trying to see if a FamilyParameter is in use. As far as I can tell, this...

View Article

Create or modify a rendering asset?

Hi, AppearanceAssetElement.Create takes a rendering asset as an input. Is there any way to create or modify this rendering asset? This code works to create a new material and new...

View Article

Image may be NSFW.
Clik here to view.

Re: Moving a grid?

Hi Erik, No unfortunatley they Still haven't. I think they are pretty busy at the moment with the Revit 2017 version, since will come out soon. Please bare with me, I will keep reaching out to them,...

View Article

Best Method of Connecting Duct Fittings and applying System Information

Good Afternoon Everyone, I've got a bit of a problem that I'm trying to optimize a solution for. I've got an add-in that will take information from a DWG file and import Families into a Revit Project...

View Article


Re: Revit API

The code you posted does not have a namespace.  Imports System Imports System.Collections.Generic Imports System.Linq Imports Autodesk.Revit.ApplicationServices Imports Autodesk.Revit.Attributes...

View Article

Re: DWG export, Cleanup dwg files after the export. Purgeall().materials

Dear awpe,If you calling the same procedures outside of Revit, e.g. in an independent application, will the same problem occur?if yes, then can we say it is an AutoCAD api problem?

View Article


Re: Elements remain highlighted in blue after macro runs

In the API you can do a Clear(). You can try this:Selection selection = uidoc.Selection.Clear;Or make an empty selection and apply that.

View Article

How to get actual area,volume & perimeter of floor

Hello,     I want to find area,volume and perimeter  of floor, How to find that?I can see the area,volume and perimeter of floor but I want to get into the program.  

View Article


Re: write in the "Manufacturer" and "Type Comments"

Dear alex06,  Check these properties using Revit Look up add-ins if this show This is ReadOnly=false then you can write values for that property otherwise not.

View Article

Image may be NSFW.
Clik here to view.

Re: How to get actual area,volume & perimeter of floor

Hi, for find all parameters of an element, you can browse the list of parameter like this : foreach(Parameter para in element.Parameters) { TaskDialog.Show("revit",para.Definition.Name + " - " +...

View Article

FamilySymbol with Family property == null?

Hi, I've come across something wierd in quite a few of our files.Some of our familysymbols does not have a family.I've attached a screenshot from snoop to illustrate. Auditing the file does not help....

View Article
Browsing all 66664 articles
Browse latest View live