TheSwamp

CAD Forums => CAD General => Topic started by: DanB on December 10, 2019, 09:54:20 AM

Title: User defined UCS - multiple drawings
Post by: DanB on December 10, 2019, 09:54:20 AM
Is it possible to copy a user defined UCS from one drawing to another? The drawings are already created, so setting the UCS and saving as a new drawing is not an option. I'm also aware there's a method to copy viewports and save that UCS. However, I simply want to copy one drawing's model space user defined UCS to another (actually multiple) drawing(s).

*if needed, this topic can be moved to LISP forums?
Title: Re: User defined UCS - multiple drawings
Post by: 57gmc on December 10, 2019, 10:26:44 AM
It doesn't really need to be copied, just created with the same criteria. If you don't know lisp, you can create a script by typing into Notepad, the text that you would enter into the command line. Just save the file with an *.scr extension. Then go to the new dwg and type SCRIPT and specify your scr file. If you have a large amount of files to change, you can use ScriptPro (https://github.com/ADN-DevTech/ScriptPro-installer#start-of-content) to batch process them.
Title: Re: User defined UCS - multiple drawings
Post by: MatGrebe on December 10, 2019, 11:37:49 AM
Have a look at this:
https://forums.autodesk.com/t5/autocad-forum/import-named-ucs/td-p/9736
Mathias
Title: Re: User defined UCS - multiple drawings
Post by: DanB on December 10, 2019, 01:16:42 PM
Thank you Mathias, looking into the code provided in that link.
Title: Re: User defined UCS - multiple drawings
Post by: ronjonp on December 10, 2019, 01:31:28 PM
There is also this: http://www.lee-mac.com/steal.html
Title: Re: User defined UCS - multiple drawings
Post by: DanB on December 10, 2019, 03:38:05 PM
And thank you, ronjonp, for that as well.