Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: FINET_Laurent

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) :thumbs_up:.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :light_bulb: or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)