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 ArticleExternalDefinitionCreationOptions 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 ArticleElements 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 ArticleRevit API
Imports SystemImports System.Collections.GenericImports System.LinqImports Autodesk.Revit.ApplicationServicesImports Autodesk.Revit.AttributesImports Autodesk.Revit.DBImports...
View ArticleRe: 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 ArticleRe: Column Offsets
It turns out that you can get it with AsDouble() function! topOffset.AsDouble();
View ArticleIFC 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 ArticleWhat 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 ArticleRetrieve 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 ArticleCreate 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 ArticleRe: 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 ArticleBest 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleHow 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 ArticleRe: 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 ArticleRe: 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 ArticleFamilySymbol 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