Copy Named Views from One Drawing to Another.

Copy Named Views from One Drawing to Another.

Anonymous
Not applicable
2,484 Views
6 Replies
Message 1 of 7

Copy Named Views from One Drawing to Another.

Anonymous
Not applicable

I searched this out to no avail. I am looking for a lisp routine that will copy the Named Views from one drawing and import them into another. I found a few routines that would do this, but they no longer work in the new versions of cad or simply aren't available at their previous download sites. Any help is appreciated. 

0 Likes
Accepted solutions (1)
2,485 Views
6 Replies
Replies (6)
Message 2 of 7

Moshe-A
Mentor
Mentor
Accepted solution

@Anonymous  hi,

 

this one is base on the famous ImportUCS.lsp

 

enjoy

moshe

 

Message 3 of 7

Anonymous
Not applicable

This worked perfectly. Thank you!

 

I guess I now have a different problem though. I modified the coordinate system of the new drawing which means the views didn't follow the coordinate change. Is there a known way to programatically change this or will I need to go through and correct all of the views manually?

0 Likes
Message 4 of 7

Moshe-A
Mentor
Mentor

@Anonymous ,

 

You know, when you define a view name, it also saves it's current ucs. when a view name is restored, it also brings it's saved ucs back. that's logic and that's how it should work - are you agree?

 

think of this, how ImportViews command will know to which ucs you want it to restore a view name?

tell how? it should pause to ask the ucs name (if it has one?) but think more... potentially there could be dozens (or even more) named view. does it sounds logic to pause for each and every one of them?  Smiley LOL

 

Moshe 

0 Likes
Message 5 of 7

vgonzalezWKRHW
Community Visitor
Community Visitor

This Lisp routine works as long as the source drawing is open in the same AutoCAD instance as the source file. Just something to keep in mind for the people like me that run separate AutoCAD instances.

Thanks for this routine it saved me some time re creating my views on every drawing

Message 6 of 7

ronjonp
Mentor
Mentor

@vgonzalezWKRHW wrote:

...

Thanks for this routine it saved me some time re creating my views on every drawing


Perhaps create a template that has these views to start off with ?

0 Likes
Message 7 of 7

vgonzalezWKRHW
Community Visitor
Community Visitor

Going forward that's what I will set up. I added these views after the drawings were created.

Thanks

0 Likes