This is Spiderinnet's Typepad Profile.
Join Typepad and start following Spiderinnet's activity
Spiderinnet
a spider crawling mainly in the .NET of Revit and Navisworks
Interests: crawling mainly in the .NET of Revit and Navisworks
Recent Activity
Revit API Fun: FamDoc.FamilyManager.get_Parameter(name) Is Not Case Sensitive
Based on our experiences in the past decades, it’s fun to play with Revit API. Here is one. The method FamDoc.FamilyManager.get_Parameter(name) does not care parameter name case sensitively, but Revit family UI does! So, we have to create our own version of the method such as FamDoc.GetFP(caseSensitiveName). Have fun! Continue reading
Posted Jan 24, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit API Fun: FamilyManager.SetFormula() Needs Transaction But FamilyManager.AddParameter() Does Not!
Based on our experiences in the past decades, it’s fun to play with Revit API. Here is one. The method FamDoc.FamilyManager.SetFormula(…) needs a transaction, otherwise: 'A sub-transaction can only be active inside an open Transaction.' But FamDoc.FamilyManager.AddParameter(…) does not! It should have started one inside itself. Continue reading
Posted Jan 22, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit API Fun: FamDoc.FamilyManager.SetFormula() Throws Exception!
Based on our experiences in the past decades, it’s fun to play with Revit API. Here is one. Family parameter can be added to family without types through API; but its formula cannot be set! The method call FamDoc.FamilyManager.SetFormula(...) would throw out an exception. 'There is no valid family type.'... Continue reading
Posted Jan 21, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit Family Organizer 2020 Has Been Released!
Revit Family Organizer 2020 (build #4.8.5.3) has been released. It works with Revit 2020, 2019, 2018 and 2017. A lot of tools (more than one hundred) have been added. They include but not limited to three more Family Creators, more than dozen Mass Creators, more than dozen Points Organizer tools,... Continue reading
Posted Jan 19, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit API Fun: FamDoc.Save()/Close()/Close(true) All Need Family Full Path!
Based on our experiences in the past decades, it’s fun to play with Revit API. Here is one. FamDoc.Save(), FamDoc.Close(), and FamDoc.Close(true) calls all need the FamDoc has a full path! It is easy to understand for the first and third call as they will be trying to look for... Continue reading
Posted Jan 19, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit API Fun: Family's built-in parameter 'Family Name' returns nothing!
Based on our experiences in the past decades, it’s fun to play with Revit API. Here is one. Family's built-in parameter 'Family Name' returns nothing! It seems the parameter always behaves so now. Then please remove it! Continue reading
Posted Jan 18, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
A New Build of Revit Parameter Organizer 2020 Has Been Released!
A new build of Revit Parameter Organizer 2020 has just been released. It still works with Revit 2020, 2019, 2018 and 2017. It behaves much more friendly, reliably and efficiently. Family Parameters Editor now supports really changing Parameter Groups. Value and Formula input have also been improved. Result report is... Continue reading
Posted Jan 12, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit API Fun: FamDoc.OwnerFamily.Name Returns NULL!
Based on our experiences in the past decades, it’s fun to play with Revit API. Here is one. FamDoc.OwnerFamily.Name returns null! FamDoc.OwnerFamily returns a valid object but the family has a null name! Enjoy! Continue reading
Posted Jan 12, 2021 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit Parameter Organizer 2020 Has Been Released!
Revit Parameter Organizer 2020 has been released. It works with Revit 2020, 2019, 2018 and 2017. UIs are made more friendly. Performance are improved a lot. Almost all features are enhanced, e.g. Shared Parameter Loaders and Updaters, various Editors, Renamers, Replacers and Purgers, Transporters and Importers, element Inspectors, and so... Continue reading
Posted Jun 17, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: InternalDefinition.SetAllowVaryBetweenGroups Two More Times
Posted May 28, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: InternalDefinition.SetAllowVaryBetweenGroups One More Time
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
Posted May 18, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: InternalDefinition.SetAllowVaryBetweenGroups again
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
Posted May 13, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: SharedParameterApplicableRule Constructor
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
Posted May 12, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: LabelUtils.GetLabelFor()
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
Posted May 6, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: Erase Project Parameter
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
Posted May 3, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: Get Parameter(s) from Element
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
Posted May 1, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: Element.GetOrderedParameters() Method vs. Element.Parameters Property
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
Posted Apr 30, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: FilterRule, ElementParameterFilter and FilteredElementCollector.WherePasses() - Cont.
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
Posted Apr 29, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: FilterRule, ElementParameterFilter and FilteredElementCollector.WherePasses()
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
Posted Apr 28, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
1
Revit .NET API: Document.TypeOfStorage Property or Document.get_TypeOfStorage() Method
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
Posted Apr 27, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: ElementId vs Element???
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
Posted Apr 26, 2020 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: FamilyParameter.UserModifiable
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
Posted Nov 14, 2019 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: Purge Global Parameters
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
Posted Nov 6, 2019 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit .NET API: SetAllowVaryBetweenGroups Method of InternalDefinition Class
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
Posted Oct 18, 2019 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
Revit Organizer 2020 Version Released and Revit Organizer 2019/2018/2017 New Builds Posted!
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
Posted Oct 8, 2019 at RevitNetAddinWizard & NavisworksNetAddinWizard
Comment
0
More...
Subscribe to Spiderinnet’s Recent Activity