- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- パーマリンクを表示
- 印刷
- 報告
Hey
ive got an issue thats perplexing me and to be honest, i thought it would be easier than it is..
i have an assembly that isnt very well designed. Id like to replace it but there is a lot of other legacy automation involved i just cant right now. anyway, updating the code to add a job number to the prefix (as the jobs were being saved in projects with generic file names) has meant a re-write of a lot of code and its this that i cant seem to get right.
What i need to do
Loop through the top level assembly documents as reference files, add the prefix to the document filename and save it in a new location. Then, change the reference in the assembly to the new component. Reloop if the referenced document is also an assembly.
The problem im getting is linked base models. They dont seem to change and for every document i replace, i also need to update these referenced documents too. So, is there any code out there that can help me-
copy the top level assembly to a new folder
copy all of the assembly references to the same folder
if the reference is also an assembly, copy that and all of its child docs
replace all references including any documents that a linked or derived in parts / assembles
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.
解決済! 解決策の投稿を見る。