ilogic copy configuration

ilogic copy configuration

blandb
Mentor Mentor
1,594 Views
14 Replies
Message 1 of 15

ilogic copy configuration

blandb
Mentor
Mentor

I know this has probably been asked a million times, but is there a code to run that if I have a configured assembly up, I can choose to create a duplicate of that configured assembly with a new assembly name and new part names and potentially new drawing? I am trying to have a standard "Master" configurator up, and as a user configures the "covers they need, they can just create separate assemblies and files from one spot vs. going to vault, copy design, enter new info, update the models, or doing ilogic copy design and doing the same thing. 

 

Everything I find is either a single level assy, or suggest to use copy design, or ilogic copy design.

 

Thanks in advance.

Autodesk Certified Professional
0 Likes
Accepted solutions (1)
1,595 Views
14 Replies
Replies (14)
Message 2 of 15

Ralf_Krieg
Advisor
Advisor

Hello

 

Maybe this post can help you? 


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 15

blandb
Mentor
Mentor

Thanks, for your reply. In the line that states "MODIFY" is that the location of exe file? Is that not a standard location across all releases? Or what exactly am I modifying this to?

 

I am not a super massive programmer, just enough to get myself in trouble lol!

Autodesk Certified Professional
0 Likes
Message 4 of 15

Ralf_Krieg
Advisor
Advisor

Hello

 

Yes. You can extract and save the exe-file whereever you want on your PC. There is no installation required, but you habe to tell the path in the iLogic rule.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 5 of 15

blandb
Mentor
Mentor

It doesnt do anything. It will start the copy program, make a folder, but that is it. No new files.

Autodesk Certified Professional
0 Likes
Message 6 of 15

blandb
Mentor
Mentor

I extracted the msi file to C:Temp, but then moved the .exe to c:temp as the code showed. Should I of extracted the msi to the default location and then just moved the exe to c:temp?

Autodesk Certified Professional
0 Likes
Message 7 of 15

Ralf_Krieg
Advisor
Advisor

Hello

 

What version of Inventor do you use? The program is for 2021 and later. For older versions I must modify it a little bit. That can also be the reaseon for not copying anything. It creates all the stuff needed (like target folder) and then breaks silently on this version conflict.

There's no msi file in there. Just extract the zipfile and move the exe file whereever you want it to.

 

EDIT: Added a version which should work for older versions too.

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 8 of 15

blandb
Mentor
Mentor

I am using 2021, I can try it with 22, but I figured I would try it here first.

 

the msi file was from the C:\Users\Public\Documents\Autodesk\Inventor 2021\SDK\Usertools.msi

 

That is where I got the CopyDesign.exe file from originally.

Autodesk Certified Professional
0 Likes
Message 9 of 15

blandb
Mentor
Mentor

So I used this zip file you attached and it looks different when the copy dialog box appears. I thought it would allow me to rename the assembly and parts to what I want, but it appears that it just keeps the name with a prefix. Overall it works, but is there a way I can with the iLogic code to prompt for new names? If I have a place holder assembly that we start from, and lets call it MAKEXXXXXX.iam and consists of 2 parts (1) MAKEXXXXXX-01 and (1) MAKEXXXXXX-02. Replace the X's with a number of whatever I want. Does that make sense?

 

Or are you controlling all this via the copy design.exe file. When you mentioned you "modified" it, are you modifying the exe file?

 

Thanks for you help.

Autodesk Certified Professional
0 Likes
Message 10 of 15

Ralf_Krieg
Advisor
Advisor

Hello

 

The original CopyDesign comes with the usertools of Inventor. There is also the source code included, so we can modify it and compile a different version.

One of the central targets of the modified version was to create one or more full copies of a given assembly with not much more to do than start copying. A more complex process, with renaming, partial replace of filenames or numbering is possible to implement. But with all of this, you can use Design assistant or the tools you named in your first post.

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 11 of 15

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

I've added a simple Search'n Replace function and the option to include drawings. Some of the known limitations:

- Search and Replace do not support wildcards nor regex

- Drawings must have the same name as the part or assembly

- Drawings must be saved in the same folder as part or assembly

- Referenced OLE Files (like linked Excelfiles) are copied in a subfolder, maybe there's a possible name conflict if multiple files with same name are linked to different parts/assemblies

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
Message 12 of 15

blandb
Mentor
Mentor

Finally go to this, seems to work pretty good on a sample assembly that I have. I didnt do anything with the drawings because I didnt have one for this, but the replace worked, and the models were copied.

 

With this, if there is anything that becomes broken down the line, since it is not just code, how to go about fixing this? Do I need to just reach out to you? Or can you guide me on how to alter this like you had done?

 

Thanks

Autodesk Certified Professional
0 Likes
Message 13 of 15

paulm
Explorer
Explorer

edit: wrong user. Sorry

0 Likes
Message 14 of 15

chrisw01a
Collaborator
Collaborator

I have a full blown windows app that can do this but I'm trying to get it updated to handle Model States. I'd be happy to share it with you.

0 Likes
Message 15 of 15

HogueOne
Advocate
Advocate

This is interesting. Would it be possible to program an app like this in iLogic? If not, is there any chance I could see the source code logic specifically for the copying? not the UI or anything. I have a script in iLogic with my own UI and it copies a drawing and all its references, the only problem I'm experiencing is that the 'alignment' of frame generator parts is lost in the process, and I'm trying to fix it. I can't seem to figure it out.

0 Likes