Message 1 of 3
Are there advanced tutorials on ilogic and/or iPart?

Not applicable
05-09-2016
10:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to get more experience with iParts and iLogic. Are there advanced tutorials on ilogic and/or iPart? Specifically:
Updating a custom weight parameter column using the calculated mass for all ipart members. The current code I have written updates the sq_in and Weight column but requires each member to be activated. Since one of the iPart's has over 200 itterations, this becomes a laborious process.
SyntaxEditor Code Snippet
'Create Flat Pattern 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("Creating the flat pattern", "iLogic") Else 'tell the user there is a flat pattern MessageBox.Show("Updating current flat pattern", "iLogic") End If 'Populate the SQ_IN in custom iProperties iProperties.Value("Custom", "SQ_IN")=Round(SheetMetal.FlatExtentsArea,1) iProperties.Value("Custom", "Weight") = iProperties.Mass