Are there advanced tutorials on ilogic and/or iPart?

Are there advanced tutorials on ilogic and/or iPart?

Anonymous
Not applicable
1,100 Views
2 Replies
Message 1 of 3

Are there advanced tutorials on ilogic and/or iPart?

Anonymous
Not applicable

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

 

0 Likes
1,101 Views
2 Replies
Replies (2)
Message 2 of 3

mcgyvr
Consultant
Consultant

See if this helps.. 

http://adndevblog.typepad.com/manufacturing/2013/02/manipulate-rows-and-columns-of-ipart-1.html

 

 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 3

Anonymous
Not applicable
I have been traying to select the acad.dwt template from the template dialog box in 2016 autocad installed in my computer.My reading material book sent to me is a 2012 .I would like to have some help so I can open this particular  template in order to continue my study.Thanks for your attention. 
0 Likes