05-19-2016
08:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-19-2016
08:56 PM
Alright then, so there're (atleast) two possible ways of doing this:
1) You can save the current drawing location in the part file when you save your drawing. Ussing OnSaveEvent in the drawing document. And then when you'll re-use these parts, you can simply read the iProperty with the drawing location and copy it from there.
Or if the "library" as you speak of, is in one place (eighter in one folder or a group of folders) you can use one of these:
If the part file maches, but the drawing name doesn't: Solution 1)
If the part file maches and so does the drawing name:
2) Look for the drawing in the library (e.g. by the part name), copy the drawing.
Let me know which would suit to you and I'll take a look at the coding part.
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods