Get Sheetmetal active style from drawing

Get Sheetmetal active style from drawing

k14348
Advocate Advocate
291 Views
1 Reply
Message 1 of 2

Get Sheetmetal active style from drawing

k14348
Advocate
Advocate

Hi, 

    i would like to collect part(Thisdrawing.modeldocument) sheetmetal active style detail from drawing through ilogic.

 

~K

0 Likes
292 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Here is something you can use:

Dim oMDoc As Document = ThisDrawing.ModelDocument
If TypeOf oMDoc.ComponentDefinition Is SheetMetalComponentDefinition Then
	Dim oSMDef As SheetMetalComponentDefinition = oMDoc.ComponentDefinition
	Dim oSMStyle As SheetMetalStyle = oSMDef.ActiveSheetMetalStyle
	MsgBox("oSMStyle.Name = " & oSMStyle.Name, , "")
End If

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

EESignature

(Not an Autodesk Employee)

0 Likes