Hello,
I need to create a document with all Feature Definitions entries from dgnlib along with associated ElementTemplates listed. Somethig like what we can get for InRoads XIN file (FeatureStyles.xls, NamedSymbologiesUse.xls).
I can export Element Templates from dgnlib to XML file but what about Feature Definitions (and other items from Civil Standards tab in Project Explorer).
Thanks for tips.
Adam
As a work around, is there a method that would allow reading feature definitions using VBA? In other words, are feature definitions exposed to VBA and if so, what references must we add to a VBA project to expose these?
Charles (Chuck) Rheault CADD Manager
MDOT State Highway Administration
Yep, you can get the feature definition of elements in your model by using property handlers, but there's no way that I know of of reporting feature definitions present but not used by an element.
Here an example of the vba code (to be included as part of an element scan):
Dim oElement As Element, ph As PropertyHandler
Set ph = CreatePropertyHandler(oElement) If ph.SelectByAccessString("FeatureDefinition") = True Then featdef = ph.GetDisplayString End If
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.1 | ProjectWise 2023
So this could be used to find elements with a feature definition, but getting information about the feature definitions saved in an open DGNLIB is something you have no idea how to accomplish.
Would most likely be possible by someone with more programming skills but that's all I could come up with ;)