Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
VSOBSCUREDLTYPE
Syntax
C++
OdInt16 VSOBSCUREDLTYPE;
Type
OdInt16
Initial value
Depends on the visual style
Read-Only
No
Saved In
Nondatabase, Quasi variable
Versions
2007+

 

The VSOBSCUREDLTYPE variable stores the linetype number defining the shape of obscured (hidden) lines in the visual style for the current viewport. The value can be: 

 

Value
Description
1
Solid line
2
Dashed line
3
Dotted line
4
Short dashed line
5
Medium dashed line
6
Long dashed line
7
Double short dashed line
8
Double medium dashed line
9
Double long dashed line
10
Medium long dashed line
11
Sparse dotted line

 

The current visual style defines the initial value: 

 

Value
Description
1
2D Wireframe
1
Conceptual
2
Hidden
1
Shaded
2
Shaded with Edges
1
Shades of Gray
1
Sketchy
1
Wireframe
1
X-ray
1
Realistic

 

Note: An existing visual style is not changed when the system variable gets a new value. Temporary visual style will be created as a clone of visual style assigned for current viewport. 

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"VSOBSCUREDLTYPE"); OdInt16 linetype = pRb->getInt16(); odPrintConsoleString(L"nObscured linetype = %d", linetype);

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 5); pDb->setSysVar(L"VSOBSCUREDLTYPE", pRb);

 

File: QuasiVarDefs.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.