Copy components and assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an iLogic assembly of a handful of sheetmetal components which are driven by an Ilogic form. So far this all works brilliantly. However I would like to make a script which saves a copy of the assembly and all of it's constituent parts into a specific folder at the click of a button and ensures they retain their relationships. In the process I would like to remove all the ilogic scripts and forms as well as supressed components from the top level assembly so I have a more or less static record of a specific configuration of the assembly.
So far my manual workflow involves the following.
1 - Using my form I set my geometry to whichever specific arrangement I need.
2 - This sets the part numbers of all components correctly based on their geometry.
3 - I then click "copy" within the pattern menu in the assembly.
4 - I select all parts by selecting the top level of the assembly in the browser. This normally ignores anything supressed and reuses any design centre parts
5 - I select next, then select "create new assembly"
6 - I then rename all my parts with a suitable suffix in this case P-001
7 - I create a folder by choosing workspace and then typing \P-001
Clicking ok creates the appropriate files in the appropriate folder and all is good, however I want this process to be fully automatic based on the part number of the top level assembly or the value of an arbitrary custom iproperty (or maybe even a parameter) and function with the click of a single button for any future assembly arrangement.
So far I am able to create my folder automatically based on whether a suitably named folder already exists in the appropriate location. But I haven't found anything which will do the actual saving and rereferencing of the files in an appropriate way. They normally just refer to the master file which is no good. Anything I find online just seems to want to refer me to ilogic design copy.
Can anyone help?