Jump to content

View's clipping planes state - where is stored


Recommended Posts

Posted

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.

Probably I miss something here, can someone help me on that? Thank you.

 

Regards,

Posted

(tblsearch "VIEW" <Name>)

or

(tblobjname "VIEW" <Name>)

Posted

Thanks for your answer, alanjt.

But 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.

 

Regards,

  • 1 month later...
Posted

So, no solution to my issue?

 

Regards,

Mircea

Posted
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.

Probably I miss something here, can someone help me on that? Thank you.

 

Regards,

 

 

msasu,

 

I am not sure if this is what you need, But I found it in the DXF Reference/Tables Section in the AutoCAD Developer Help.

 

VIEW

 

 

100 Subclass marker (AcDbViewTableRecord) 
2 Name of view 
70 Standard flag values (bit-coded values):
   1 = If set, this is a paper space view
  16 = If set, table entry is externally dependent on an xref
  32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved
64 = If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is for the benefit of AutoCAD commands. It can be ignored by most programs that read DXF files and need not be set by programs that write DXF files) 
40 View height (in DCS) 
10 View center point (in DCS)
DXF: X value; APP: 2D point 
20 DXF: Y value of view center point (in DCS) 
41 View width (in DCS) 
11 View direction from target (in WCS)
DXF: X value; APP: 3D vector 
21, 31 DXF: Y and Z values of view direction from target (in WCS) 
12 Target point (in WCS)
DXF: X value; APP: 3D point 
22, 32 DXF: Y and Z values of target point (in WCS) 
42 Lens length 
[color=red]43 Front clipping plane (offset from target point) [/color]
[color=red]44 Back clipping plane (offset from target point) [/color]
50 Twist angle 
71 View mode (see VIEWMODE system variable) 
281 Render mode:
0 = 2D Optimized (classic 2D)
1 = Wireframe
2 = Hidden line
3 = Flat shaded
4 = Gouraud shaded
5 = Flat shaded with wireframe
6 = Gouraud shaded with wireframe

All rendering modes other than 2D Optimized engage the new 3D graphics pipeline. These values directly correspond to the SHADEMODE command and the AcDbAbstractViewTableRecord::RenderMode enum 
72 1 if there is a UCS associated to this view, 0 otherwise 

Document1.jpg

Posted

@The Buzzard, thank you for your answer.

Yes, the DXF codes 43 and 44 are storing position of clipping planes; I was looking for the state of those planes – that it, the one 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".

This feature I’m not able to locate where is stored.

 

Regards,

Mircea

Posted
@The Buzzard, thank you for your answer.

Yes, the DXF codes 43 and 44 are storing position of clipping planes; I was looking for the state of those planes – that it, the one 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".

This feature I’m not able to locate where is stored.

 

Regards,

Mircea

 

Ok,

 

Under 3DCLIP there are no system variables. It is a right click short-cut menu.

 

But I did find this. I am not sure if this is what you mean. This affects the viewport.

 

VIEWMODE System Variable

 

(Read-only)

Type: Integer

Saved in: Drawing

Stores the View mode for the current viewport using bitcode. The value is the sum of the following:

 

0 Turned off.

1 Perspective view active.

2 Front clipping on.

4 Back clipping on.

8 UCS Follow mode on.

16 Front clip not at eye. If on, the front clip distance ( FRONTZ) determines the front clipping plane. If off, FRONTZ is ignored, and the front clipping plane is set to pass through the camera point (vectors behind the camera are not displayed). This flag is ignored if the front-clipping bit (2) is off.

 

FRONTZ System Variable

 

Type: Real

Saved in: Drawing

Stores the front clipping plane offset from the target plane for the current viewport, in drawing units. Meaningful only if the front clipping bit in VIEWMODE is on and the front-clip-not-at-eye bit is also on. The distance of the front clipping plane from the camera point is found by subtracting FRONTZ from the camera-to-target distance.

 

BACKZ System Variable

 

Type: Real

Saved in: Drawing

Stores the back clipping plane offset from the target plane for the current viewport, in drawing units. Meaningful only if the back clipping bit in VIEWMODE is on. The distance of the back clipping plane from the camera point can be found by subtracting BACKZ from the camera-to-target distance.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...