Apprentice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
judging by the lack of response to any of my posts, i feel that this will also fall on deaf ears but i'll post it anyway. As a side note, i do go to the effort of detailing any queries i have informatively.....
Apprentice Behavior.
Using the CopyDesign code from SDK (which i might add, is flakey - take note Autodesk) i am getting different mixed results.
I have 1 class to copy an assembly from 1 location to another and rename it.
I have 2 assemblies to copy separately.
First assembly is renamed A_Assembly.iam
Second assembly is renamed A_Assembly-01.iam (this is in a loop)
A_Assembly.iam
When i open this, The assembly name is correct. All of the sub components are also named A_part1, A_Part2 etc. as are the components in the folder. So, the name of the actual component is the name in the browser.
A_Assembly-01.iam
When i open this, all of the components are NOT named correctly but the components in the folder are. for example:
in the folder, A_Assembly-01.iam exists. when i open it, its called 'Assembly' in the browser. If i delete the browser node name, it will revert to A_Assembly-01. Same with the sub components.
Question is why when both assemblies are copied in the same way with the same code? This gives me problems because when i insert A_Assembly-01, A_Assembly-02 into the main assembly, i need them to be named as so but because they are showing a different name in the browser, they appear as Assembly:1, Assembly:2 which is incorrect. They are not 2 occurrences of the same assembly, they are different assemblies.
I have checked the component name & path in iProperties and they are as they should be
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.