Get List of Available Styles From Style Manager

Get List of Available Styles From Style Manager

Anonymous
適用対象外
761件の閲覧回数
2件の返信
メッセージ1/3

Get List of Available Styles From Style Manager

Anonymous
適用対象外

I am working on a drawing rule that lets the user change the style of all the balloons in a drawing sheet based on the available balloon styles as selected from a drop down menu. I need to get a list of the available balloon styles available as shown in the Styles Editor Window (pictured below), but I can only seem to get the name of the active style.

 

Is there a way to obtain the names of the available styles in a multi-value parameter or some other form?

 

Available Balloon Styles I would like to obtain the names of within an iLogic RuleAvailable Balloon Styles I would like to obtain the names of within an iLogic Rule

 

0 件のいいね
解決済み
762件の閲覧回数
2件の返信
返信 (2)
メッセージ2/3

JamieVJohnson2
Collaborator
Collaborator
解決済み

Is there a way to obtain the names of the available styles in a multi-value parameter or some other form?

            GetInventorApplication()
            Dim idwDoc As Inventor.DrawingDocument = invApp.ActiveDocument
            Dim dsm As DrawingStylesManager = idwDoc.StylesManager
            Dim lstBalloonNames As New List(Of String)
            For Each bStyle As BalloonStyle In dsm.BalloonStyles
                lstBalloonNames.Add(bStyle.Name)
            Next

Here we assume an outside residing code of VB.Net, for iLogic, the first line won't be necessary, and invApp = ThisApplication

 

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
メッセージ3/3

Anonymous
適用対象外

Thank you! This worked perfectly

0 件のいいね