Author Topic: View's clipping planes state - where is stored?  (Read 2206 times)

0 Members and 1 Guest are viewing this topic.

msasu

  • Mosquito
  • Posts: 13
View's clipping planes state - where is stored?
« 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,

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: View's clipping planes state - where is stored?
« Reply #1 on: October 27, 2010, 01:33:16 AM »
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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

hermanm

  • Guest
Re: View's clipping planes state - where is stored?
« Reply #2 on: October 27, 2010, 09:27:37 PM »
Interesting.

Appears to be no Active X counterpart to:

frontz
backz

wtf?

View properties always seemed very useful, but very obscure, topic, to me.

?

msasu

  • Mosquito
  • Posts: 13
Re: View's clipping planes state - where is stored?
« Reply #3 on: October 28, 2010, 06:34:24 AM »
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

David Bethel

  • Swamp Rat
  • Posts: 656
Re: View's clipping planes state - where is stored?
« Reply #4 on: October 28, 2010, 07:23:45 AM »
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
R12 Dos - A2K

msasu

  • Mosquito
  • Posts: 13
Re: View's clipping planes state - where is stored?
« Reply #5 on: October 28, 2010, 07:27:57 AM »
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

David Bethel

  • Swamp Rat
  • Posts: 656
Re: View's clipping planes state - where is stored?
« Reply #6 on: October 28, 2010, 07:49:03 AM »
the DVIEW command is the only way to change VIEWMODE settings.  -David
R12 Dos - A2K