- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone!
I'm new on this iLogic thingy, i just build things. This is a whole new world for me.
So i'm working on a sheet metal part and this is what i want:
- Always automatically update my "user parameters" each time something change on a sheet metal part.
- My user parameters:
- Area_SM ( meaning Area of Stock Material);
- Length (Length of the Flat Pattern of Stock Material);
- Width (width of the Flat pattern of Stock material).
- My user parameters:
This is what it's written:
Dim oDoc As PartDocument oDoc = ThisDoc.Document Dim oSMDef As SheetMetalComponentDefinition oSMDef = oDoc.ComponentDefinition
If oSMDef.HasFlatPattern = Then Area_SM = extents_area = SheetMetal.FlatExtentsArea Length = extents_length = SheetMetal.FlatExtentsLength Width = extents_width = SheetMetal.FlatExtentsWidth Else
Area_SM = 0 Length = 0 Width = 0 End If
What i dont what:
- If i dont have ony Flat pattern created, then dont create a flat pattern until i do/say so;
i tried feature.("flatpattern") = true, FlatPattern is nothing.....etc.
As you can guess, i understand 000.....00 about coding. just a 30min. ago i learned what Dim was, and why it was always defined at the start, still dont know what "o(something)" stands for.
i want to understand how this works but please dont right the anwser right way, make me understand 1st.
I'm still searching for tutorials and posts as examples, actually this coding was copy-paste then I modeled it into my needs.
Best regards,
JHG
Solved! Go to Solution.