MSasu 发表于 2022-7-6 10:13:40

视图#039;s剪裁平面st

我试图列出使用CAMERA命令创建的视图的剪裁平面状态(打开或关闭)-我的目的是以编程方式编辑这些功能。我无法找到这个存储在哪里-我列出并比较了view和他的子字典的相关列表。
也许我错过了什么,有人能帮我吗?非常感谢。
 
当做

alanjt 发表于 2022-7-6 10:27:17

(tblsearch "VIEW" <Name>)

(tblobjname "VIEW" <Name>)

MSasu 发表于 2022-7-6 10:40:50

谢谢你的回答,alanjt。
但我已经列出了视图中所有剪辑普林斯状态的关联列表,并且发现这些列表是相同的。对list的字典也做了同样的处理。所以,这似乎是以另一种方式存储的。
 
当做

MSasu 发表于 2022-7-6 10:52:21

那么,我的问题没有解决方案?
 
当做
米尔恰

The Buzzard 发表于 2022-7-6 10:54:18

 
 
msasu,
 
我不确定这是否是您需要的,但我在AutoCAD Developer帮助的DXF参考/表格部分找到了它。
 
查看
 
 

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
43 Front clipping plane (offset from target point)
44 Back clipping plane (offset from target point)
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

MSasu 发表于 2022-7-6 11:09:08

@秃鹰,谢谢你的回答。
是的,DXF代码43和44存储剪切平面的位置;我在寻找这些平面的状态——它是一个可以在视图窗口中设置的状态,在每个视图的属性下:“剪裁平面”(设置为“关”、“前开”、“后开”和“前后开”)。
我无法定位此功能的存储位置。
 
当做
米尔恰

The Buzzard 发表于 2022-7-6 11:18:57

 
好啊
 
在3DCLIP下,没有系统变量。这是一个右击快捷菜单。
 
但我确实找到了这个。我不确定这是否是你的意思。这会影响视口。
 
VIEWMODE系统变量
 
(只读)
类型:整数
保存在:图形
使用位代码存储当前视口的视图模式。该值是以下各项的总和:
 
0已关闭。
1透视图激活。
2正面卡入。
4背面裁剪。
8 UCS跟随模式开启。
16前夹不在眼睛处。如果启用,则前剪裁距离(FRONTZ)确定前剪裁平面。如果禁用,则忽略FRONTZ,并将前剪裁平面设置为通过相机点(不显示相机后面的向量)。如果前剪裁位(2)关闭,则忽略该标志。
 
FRONTZ系统变量
 
类型:Real
保存在:图形
以图形单位存储当前视口的前剪裁平面与目标平面的偏移。仅当VIEWMODE中的前剪辑位处于启用状态,且“非视线前剪辑”位也处于启用状态时才有意义。通过从相机到目标的距离减去FRONTZ,可以找到前剪裁平面到相机点的距离。
 
BACKZ系统变量
 
类型:Real
保存在:图形
以图形单位存储相对于当前视口目标平面的后向剪裁平面偏移。仅当VIEWMODE中的后向剪裁位处于启用状态时才有意义。通过从相机到目标的距离减去BACKZ,可以找到后向剪裁平面到相机点的距离。
页: [1]
查看完整版本: 视图#039;s剪裁平面st