10-08-2021
06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-08-2021
06:32 AM
After some investigation, I don't think there is a Class or object defined in the API yet for that specific type of Style object. I can find them, but they are just generic Style objects, so you can't access any of the stuff within them that would be specific to that type of style.
Here's the simple iLogic example to get to those objects:
oDDoc = ThisDrawing.Document
oDSMgr = oDDoc.StylesManager
oActiveDSS = oDSMgr.ActiveStandardStyle
For Each oStyle As Style In oDSMgr.Styles
If Not oStyle.StyleType = StyleTypeEnum.kViewAnnotationStyleType Then Continue For
MsgBox("TypeName(oStyle) = " & TypeName(oStyle), , "")
MsgBox("oStyle.Type.ToString = " & oStyle.Type.ToString,,"")
'If oStyle.Name = "Annotation de la vue (ISO)" Then
'do something
'End If
Next
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS)
.
If you want and have time, I would appreciate your Vote(s) for My IDEAS
or you can Explore My CONTRIBUTIONS
Wesley Crihfield
(Not an Autodesk Employee)