Copy a single sketch symbol from one file to another

Copy a single sketch symbol from one file to another

Rory_M
Advocate Advocate
470 Views
1 Reply
Message 1 of 2

Copy a single sketch symbol from one file to another

Rory_M
Advocate
Advocate

Hi all, hopefully this is an easy one.

 

I've created a new sketch symbol in our template and have an iLogic routine that inserts it and fills in a load of prompted entries based on values from a spreadsheet. It's working fine with new files that are based on our template.

 

I'm struggling to figure out how to deal with older files where the sketch symbol doesn't exist. What I would like to do is when the routine runs, it first of all checks to see if the sketch symbol exists and if not, it imports it into the drawing from the template before continuing.

 

I've had a look at the forums and most of the related posts I've found are dealing with entire symbol libraries and sub-folders. That's overkill for what I need (and if I'm honest a lot of it went over my head!)

 

Can anyone give me some pointers on how to :

 

Check for the presence of sketch symbol "A" in the current drawing resources.

If "A" doesn't exist, import it from template "B.idw"

 

Thanks for any help!

 

0 Likes
Accepted solutions (1)
471 Views
1 Reply
Reply (1)
Message 2 of 2

Rory_M
Advocate
Advocate
Accepted solution

Never mind, I found a post which helped and I've got it working:

 

For info it was this:

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/ilogic-and-sketch-symbol-library/td-...

 

 

0 Likes