Max Number of Named Views

Max Number of Named Views

jmartt
Collaborator Collaborator
1,062 Views
4 Replies
Message 1 of 5

Max Number of Named Views

jmartt
Collaborator
Collaborator

Sort of continuing from my previous post, https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-named-views/m-p/7031467#M352491...

 

I have a drawing with hundreds of named views.

 

I am finding more-and-more that I'm missing views that I thought I should have. Now, I could have mistakingly not made the views, (these are named views in modelspace, not viewports), which would totally explain why they're not there, but I'm increasingly convinced that they're disappearing. Which leads to my questions:

 

Is there a limit to how many modelspace named views you can have in CAD?

and/or

Is there any way to list the number of modelspace named views that currently exist?

0 Likes
Accepted solutions (1)
1,063 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

To list all the saved Views in the current drawing, you can see them in a dialog box user interface by using the VIEW command and then select Model Views or see them listed on the Text screen by using the command line version preceded with a hyphen: -VIEW then enter ? and * to list all views.

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store

0 Likes
Message 3 of 5

jmartt
Collaborator
Collaborator

Thanks, @Anonymous. But I wanted to know the number of the views. Counting them, by eye, in a list isn't really a viable option.

0 Likes
Message 4 of 5

Anonymous
Not applicable
Accepted solution

Try the attached ViewCount.lsp function.

Unzip file and save into a folder that AutoCAD can find.

Then at AutoCAD command prompt type:

(load"ViewCount.lsp")

When loaded successfully, at AutoCAD command prompt enter command to get a count on how many views are saved in both Modelspace & Paperspace:

ViewCount

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store

Message 5 of 5

jmartt
Collaborator
Collaborator

Hey, thanks. That works. I did notice, however, just because I ran that LISP routine right after creating a new view (named "test"), that it returned

 

Drawing has no saved Paperspace name views.
Drawing has [1] saved Modelspace name views: (test)

 

But when I saved and reopened and ran the routine again it returned

 

Drawing has no saved Paperspace name views.
Drawing has [1383] saved Modelspace name views:...

 

But that's okay. Really, good enough. For my purposes, just the number is sufficient and I know I don't have any paperspace views. I'm really just trying to test if I'm hitting some maximum number and it's deleting the earlier views to make room for the new ones. I had 1382 views before "test", so I think I have that answered now. I WAS just forgetting to make the views.

 

I posted in the LISP forum as well and another version (simpler, which does not return the view names), was provided.: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/number-of-named-modelspace-views/td-...

 

Again, thank you very much!

 

 

0 Likes