This is Spiderinnet's Typepad Profile.
Join Typepad and start following Spiderinnet's activity
Join Now!
Already a member? Sign In
Spiderinnet
a spider crawling mainly in the .NET of Revit and Navisworks
Interests: crawling mainly in the .NET of Revit and Navisworks
Recent Activity
Let's talk about the InternalDefinition.SetAllowVaryBetweenGroups() method one more time. The odd point is that it needs a document argument: public ICollection<ElementId> SetAllowVaryBetweenGroups( Document document, bool allowVaryBetweenGroups ) However, the VariesAcrossGroups property is not document indexed but returns the flag directly: public bool VariesAcrossGroups { get; } We also wonder how... Continue reading
InternalDefinition.SetAllowVaryBetweenGroups() method was talked about some time ago. Here let's talk about it again. InternalDefinition class has a read-only property to access its so called AllowVaryBetweenGroups inside flag, however also provides the SetAllowVaryBetweenGroups() method trying to change the flag from outside. public bool VariesAcrossGroups { get; } Besides naming inconsistencies... Continue reading
SharedParameterApplicableRule class has a single constructor: public SharedParameterApplicableRule( string parameterName ) As can be seen, it accepts a parameter name as argument. Oh, no! It will cause confusions since shared parameters are allowed to have duplicate names by Revit. If we'd like to find elements with name ABC as shared... Continue reading
It is good that LabelUtils.GetLabelFor() can get localized labels for enum values of quite a few API types such as ParameterType, UnitType, BuiltInParameter, and BuiltInParameterGroup. Very nice! In version 2020, BuiltInCategory enum values can also be got their labels by the method. And, BuiltInParameter enum values can be got labels... Continue reading
This topic has been talked about a few times already. The following is such a pretty old post. Parameter of Revit API – 32: Erase Project Parameter Since the post and its code snippets are very old, most likely addressing Revit 2010/2011 at that time, the solution as suggested there... Continue reading
Revit .NET API Element class provides quite some different methods/properties to get parameter(s) from its instance. Here they are: LookupParameter(String) GetParameters(String) get_Parameter(Guid) get_Parameter(BuiltInParameter) get_Parameter(Definition) The last three are indexed properties actually and can be used to retrieve the exact parameter of concern, shared, built-in or any with a certain definition... Continue reading
Revit .NET Element has quite some methods and properties having something to do with the most important parameter stuffs. Element.GetOrderedParameters() Method vs. Element.Parameters Property are two most important ones, as titled. Here is the description about the Element.GetOrderedParameters() Method in the help file. "The collection consists of only visible parameters... Continue reading
Revit .NET API provides quite some classes and methods to filter elements and parameters. FilterRule, ElementParameterFilter and FilteredElementCollector.WherePasses() are among those pretty important ones. In the previous post, some general idea was provided about how to find elements with a particular built-in parameter no matter what value it may have... Continue reading
Revit .NET API provides quite some classes and methods to filter elements and parameters. FilterRule, ElementParameterFilter and FilteredElementCollector.WherePasses() are among those pretty important ones. They can be used to filter out some elements from a document with some parameter criteria such as name and value, e.g. wall length is greater... Continue reading
Revit .NET API provides Document.TypeOfStorage Property in version 2020 and Document.get_TypeOfStorage() Method before. They can tell what the storage type of a built-in parameter has, e.g. Integer, Double, String, ElementId or even None. It is good. With the property/method there, we can know a built-in parameter a little better; otherwise... Continue reading
Question is very simple. Can any ElementId be opened as Element? Answer is pretty difficult. It depends. For those visible stuffs on screen such as Walls, Doors and Windows, yes, their ElementId properties can be opened as their Element instances. Even for many invisible stuffs such as Wall types, Door... Continue reading
It looks the Revit .NET API FamilyParameter.UserModifiable is not used commonly. Based on our experience, it almost always returns false, but through checking here and there we did not figure why. It seems the property always reads its default value (false) and exposes to outside. So, please do not call... Continue reading
It is pretty straightforward to purge Global Parameters programmatically using the Revit .NET API. The GlobalParameter class provides a few methods to help check whether it is used by dimensions, elements, or other Global Parameters. The three nice methods are: GetLabeledDimensions() GetAffectedElements() GetAffectedGlobalParameters() If they all return nothing or empty,... Continue reading
Revit .NET API follows the try/catch/finally pattern. Even for a can-not-be-too-simple method like InternalDefinition.SetAllowVaryBetweenGroups, try/catch block has to be always used; otherwise, the whole program logic may be broken due to the failure of the method call. Another small matter is that the most important parameter related class InternalDefinition is... Continue reading
Revit Organizer 2020 has been released. It supports and works with Revit 2020. More features are added, e.g. Shared Parameter Updaters for both project and family models/files, Style Replacers for elements, current view, entire model and even component families, and various Text Gadgets. Some existing features are improved, e.g. Family... Continue reading
Revit Organizer 2019 and Revit Organizer 2017 have been released. They are combo packages of Revit Parameter Organizer, Revit Family Organizer, and Revit Project Organizer that work for the corresponding Revit version, 2019 or 2018. A single installer will install the three addins all together for the target Revit version.... Continue reading
A new build #2.5.5.6 of Revit Organizer 2018 has been released. It has enhanced many features, made command output more detail and friendly, improved performance of many tools, and addressed all known issues. It is still a combo package of Revit Parameter Organizer 2018, Revit Family Organizer 2018, and Revit... Continue reading
A new build #3.9.5.5 of Revit Project Organizer 2019 has been released. It has enhanced many features, made command output more detail and friendly, improved performance of many tools, and addressed all known issues. Its online help has also been updated. The build still works with Revit 2019, 2018, 2017... Continue reading
Its UI is more friendly and its features are more powerful now. After the ribbon button is clicked, an eidtor window pops up as follows. Buttons (from left to right): Close: to close the editor. Save: to save changes back to the model. New: to create a new item into... Continue reading
Its UI is more friendly and its features are more powerful now. After the ribbon button is clicked, an editor window pops up as follows. Buttons (from left to right): Close: to close the editor. Save: to save changes back to the model. New: to create a new item into... Continue reading
Its UI is more friendly now. After the ribbon button is clicked, an editor window pops up as follows. Buttons (from left to right): Close: to close the editor. Save: to save changes back to the model. New: to create a new item into the data grid. Erase: to erase... Continue reading
A new build #3.8.7.6 of Revit Family Organizer 2019 has been released. It has enhanced many features, made command output more detail and friendly, improved performance of many tools, and addressed all known issues. Its online help has also been updated. The build still works with Revit 2019, 2018, 2017... Continue reading
Dear DanG, thanks for the suggestion. It is a good idea to make the feature also available to family models. We will do so in the future.
Image
Revit SPF Editor is a standalone Windows tool. It does not depend on any third party applications such as Revit, Notepad and Excel. It helps edit all kinds of Revit shared parameters in any shared parameter files (SPFs). It can operate on shared parameters in many ways such as creating... Continue reading
Happy New Year! A new build of Revit Parameter Organizer 2019 has been released. It has enhanced many features, made command output more detail and friendly, improved performance of many tools, and addressed all known issues. It still works for Revit 2019, 2018, 2017 and 2016. It is free to... Continue reading