Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
SPLINESEGS
Syntax
C++
OdInt16 SPLINESEGS;
Type
OdInt16
Initial value
8
Read-Only
No
Saved In
Database
Versions
R12+

 

The SPLINESEGS variable stores the number of segments for spline-fit polylines generated by the PEDIT/Spline command. The value is a non-zero integer number from -32768 to 32767. A negative value generates circular segments. A positive value generates linear segments. A zero value is not applicable. Fit-type polylines use arcs as approximating segments. 

 

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

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"SPLINESEGS"); OdInt16 number = pRb->getInt16(); odPrintConsoleString(L"nNumber of segments = %d", number); // or // odPrintConsoleString(L"nNumber of segments = %d", pDb->getSPLINESEGS());

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 60); pDb->setSysVar(L"SPLINESEGS", pRb); // or // pDb->setSPLINESEGS(120);

 

File: SysVarDefs.h 

Module: API Reference 

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