TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: msasu on October 27, 2010, 01:20:29 AM
-
I'm trying to list the state of clipping planes (On or Off) for a view created using CAMERA command - my intention is to edit these features programmatically. I wasn't able to find where is this stored - I listed and compared the associated lists for both view and his sub-dictionaries.
I already listed view's associated list for all clipping plines states - and found that the lists are identical. Have done the same for list's dictionaries. So, seems that this is stored in another way.
Probably I miss something here, can someone help me on that? Thank you.
Regards,
-
Haven't look at this in years but my recollection was that I would create a temporary view, (ent)modify it to suit, then restore it.
Some of a view's applicable dxf group codes to look at:
view dxf group codes
-------------------------
10 viewctr
11 viewdir
12 target
43 frontz
44 backz
50 viewtwist
71 viewmode*
*viewmode flags
---------------------------------
00 Turned off.
01 Perspective view active.
02 Front clipping on.
04 Back clipping on.
08 UCS Follow mode on.
16 Front clip not at eye.
-
Interesting.
Appears to be no Active X counterpart to:
frontz
backz
wtf?
View properties always seemed very useful, but very obscure, topic, to me.
?
-
Thank you for your comments.
@MP, seems that the associated lists for views are storing under the DXF code 71 only two values: 20 – “Perspective OFF” and 21 = “Perspective ON”.
Seems that if I affect state of clipping planes (that it, the ones that you can set in View window under each view’s properties: "Clipping planes" (set to "Off", "Front on", "Back on" and "Front and back on") the value under DXF code 71 isn’t affected.
Maybe I miss something. Thank you.
Regards,
Mircea
-
You do realize that you will have to save the view in order to change group 71's value. You can see the current state in the VIEWMODE sysvar flag. -David
-
The view is saved, for sure - I got the associated list by finding his name with TBLOBJNAME function.
The VIEWMODE system variable is read-only, so cannot use it to affect the state of clipping planes programmatically.
Thank you.
Regards,
Mircea
-
the DVIEW command is the only way to change VIEWMODE settings. -David