Assembly Copy Components using ilogic, unique numbering

Assembly Copy Components using ilogic, unique numbering

nico
Enthusiast Enthusiast
408 Views
2 Replies
Message 1 of 3

Assembly Copy Components using ilogic, unique numbering

nico
Enthusiast
Enthusiast

Ellowah

 

I was wondering if any1 knows a way to automate the Copy Components function in an Assembly with ilogic

Basicly I want to Add a prefix to all subassembly's And PARTS so I have a complete unique fileset

Edit the Source Location to a new, potentially not excisting, folder

 

Kind Regards,

Nico Van Donick

0 Likes
409 Views
2 Replies
Replies (2)
Message 2 of 3

HermJan.Otterman
Advisor
Advisor

did you try the "iLogic Design Copy"?

open Inventor, do not open any file!

go to Tools, iLogic, iLogic Design Copy

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 3 of 3

marcin_otręba
Advisor
Advisor

Check this code... you must for example create some form with 3 text boxes prefix, new_path and assembly new name...

 

Sub rename()
ThisApplication.SilentOperation = True
Dim ass As AssemblyDocument
Set ass = ThisApplication.ActiveDocument
Dim doc As Document
ass.SaveAs new_path & new_ass_name & Right(doc.FullFileName, 4), False

For Each doc In ass.AllReferencedDocuments

dim new_name as string = prefix & doc_oldname

doc.SaveAs new_path & new_name & Right(doc.FullFileName, 4), False
Next
ass.Save
ThisApplication.SilentOperation = False
End Sub

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes