Hi,
Does anyone know an ILogic expression which I can put in an If...elseIf statement to make the ilogic recognise the nature of the part, for example if the part has a flat pattern, it will run a first code only else if it will run another code.
Thanks.
Anas.
Solved! Go to Solution.
Solved by JhoelForshav. Go to Solution.
Hi @Anonymous
Like this? 🙂
Dim oDoc As PartDocument = ThisDoc.Document If TypeOf (oDoc.ComponentDefinition) Is SheetMetalComponentDefinition _ AndAlso oDoc.ComponentDefinition.HasFlatPattern MsgBox("This part has a flat pattern") Else MsgBox("No flat pattern") End If
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website
It works , now let's hope it will cause no problem to my parts list 😉
Thanks very much.
Anas.
Can't find what you're looking for? Ask the community or share your knowledge.