iAssembly & iPart - operation query (API)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
iAssembly & iPart
Why does it take longer to add a row programatically than it does to add a row manually? Its a row in a table with some text, hardly the most difficult thing to do by code.
the iAssembly has 4 iParts and each iPart has 1 value that changes (Height)
Each iPart has 10 rows added
the iAssembly has 10 rows added
Time breakdown
- iPart1 - 10 rows x 6 seconds = 60 seconds
- iPart1 - CreateMember(row) = 3 seconds
- iPart2 - 10 rows x 6 seconds = 60 seconds
- iPart1 - CreateMember(row) = 3 seconds
- iPart3 - 10 rows x 6 seconds = 60 seconds
- iPart1 - CreateMember(row) = 3 seconds
- iPart4 - 10 rows x 6 seconds = 60 seconds
- iPart1 - CreateMember(row) = 3 seconds
total time for iPart rows = 4:12 minutes
- iAssembly - 10 rows x 6 seconds = 60 seconds
- iAssembly - Save after each row = 5 seconds (cannot stop this save process!)
- iPart CreateMember(row) = 10 seconds
total time for iAssembly rows = 1:15 minutes
an overall time of 5 minutes 27 seconds. This seems way to long for an automated process.
iMates with an iAssembly
I have 2 iMates in the iAssembly (Top & Bottom) and 2 imates in a sub assembly (Top & Bottom). I am aligning each iAssembly in the main assembly to the sub assembly with the imates. Using code, it takes around 8 seconds per iAssembly to mate into place. Iwtrh a normal assembly, its a split second. Why the delay and what can be done to improve the speed? Its literally quicker to do it manually.
10 components x 8 seconds = 80 seconds. Add that to the iPart & iAssembly time, makes 6 minutes 47 seconds to update 10 iParts, 1 iAssembly and constrain them. i can do it manually in half that time so whats going on?
in the iPart & iAssembly, I am copying the row above and editing the column values... There doesnt appear to be any 'AddRow' function. I didnt want to go down the Excel route as i fear that might take even longer...
Is this a normal time expectancy or is there a faster way to do this?
Thanks
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.