iLogic to Read ipt If Sheet Metal?

iLogic to Read ipt If Sheet Metal?

felix.cortes5K3Y2
Advocate Advocate
1,393件の閲覧回数
2件の返信
メッセージ1/3

iLogic to Read ipt If Sheet Metal?

felix.cortes5K3Y2
Advocate
Advocate

Hi forum,

 

I was looking for a code to check if the current opened document model is a sheet metal using iLogic and not the VBA editor

 

Best regards,

Felix

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

Sergio.D.Suárez
Mentor
Mentor
解決済み

Hi,  with this code fragment you will determine if the part file is sheet metal.

Dim doc As PartDocument = ThisDoc.Document

If doc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then 
	MessageBox.Show("This file is sheet metal")
Else
	MessageBox.Show("This file is not sheet metal")
End If

 

I hope this helps solve your problem. regards


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

メッセージ3/3

felix.cortes5K3Y2
Advocate
Advocate

Thanks Sergio!

0 件のいいね