iLogic to Read ipt If Sheet Metal?

iLogic to Read ipt If Sheet Metal?

felix.cortes5K3Y2
Advocate Advocate
1,384 Views
2 Replies
Message 1 of 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 Likes
Accepted solutions (1)
1,385 Views
2 Replies
Replies (2)
Message 2 of 3

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

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

Message 3 of 3

felix.cortes5K3Y2
Advocate
Advocate

Thanks Sergio!

0 Likes