First you will need to create a iLogic rule that says:
iLogicVb.UpdateWhenDone = TrueFind
Dim oDoc As PartDocument
oDoc = ThisDoc.Document
'ensure this part has a flat pattern
Dim oSMDef As SheetMetalComponentDefinition
oSMDef = oDoc.ComponentDefinition
If oSMDef.FlatPattern Is Nothing Then
'tell the user there is no flat pattern
'MessageBox.Show("This file has no flat pattern", "iLogic")
Flat = "No"
Else
'tell the user there is a flat pattern
'MessageBox.Show("This file does have a flat pattern", "iLogic")
Flat = "Yes"
End If
If Flat = "Yes" Then
extents_length = Round(SheetMetal.FlatExtentsLength,4)
extents_width = Round(SheetMetal.FlatExtentsWidth, 4)
description = iProperties.Value("Summary", "Subject")
matl = iProperties.Value("Summary", "Keywords")
If extents_length < extents_width Then
iProperties.Value("Custom", "SheetMetalExtentsDesc")= "" & matl & "," & Space(1) & "(" & description & "," & Space(1) & extents_length & """ x " & extents_width & """" & ")"
Else
iProperties.Value("Custom", "SheetMetalExtentsDesc")= "" & matl & "," & Space(1) & "(" & description & "," & Space(1) & extents_width & """ x " & extents_length & """" & ")"
End If
End If Then in whatever field you want the iproperties to fill in put "=<SheetMetalExtentsDesc>". This will have it show up like mine. If you edit the code a bit you can make it display less or more things or have them appear in a different order. I'm sorry I don't currently have the time to do that today. If you send me an email at aaronschlaack (at) gmail.com or a message on here with a list of what you want displayed and in what order I can get you a code exactly how you want it by some point on friday.
Good luck and I hope this works for you.
Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram