CFx SDK Documentation
2023 SP0
|
Functions | |
int TOOLKIT_EXPORT | dimfit (int dimatfit, int dimtmove) |
int TOOLKIT_EXPORT | dimunit (int dimlunit, int dimfrac) |
int TOOLKIT_EXPORT | dimatfit (int dimfit) |
int TOOLKIT_EXPORT | dimtmove (int dimfit) |
int TOOLKIT_EXPORT | dimlunit (int dimunit) |
int TOOLKIT_EXPORT | dimfrac (int dimunit) |
OdString TOOLKIT_EXPORT | arrowName (OdDbObjectId blockId) |
bool TOOLKIT_EXPORT | isBuiltInArrow (const OdString &arrowheadName) |
bool TOOLKIT_EXPORT | isZeroLengthArrow (const OdString &arrowheadName) |
OdDbObjectId TOOLKIT_EXPORT | findArrowId (const OdString &arrowheadName, const OdDbDatabase *pDb) |
OdDbObjectId TOOLKIT_EXPORT | getArrowId (const OdString &arrowheadName, OdDbDatabase *pDb) |
This namespace contains utility functions for Dimension Style processing.
<group TD_Namespaces>
OdString TOOLKIT_EXPORT OdDmUtil::arrowName | ( | OdDbObjectId | blockId | ) |
Returns the local name of the specified dimension arrowhead.
blockId | [in] Object ID of the dimension arrowhead. |
int TOOLKIT_EXPORT OdDmUtil::dimatfit | ( | int | dimfit | ) |
Returns the R15 DIMATFIT value corresponding to the specified R14 DIMFIT value.
dimfit | [in] DIMFIT value. |
dimatfit 0 0 1 1 2 2 3 3 4 3 5 3 other 3
int TOOLKIT_EXPORT OdDmUtil::dimfit | ( | int | dimatfit, |
int | dimtmove | ||
) |
Returns the R14 DIMFIT value corresponding to the specified DIMATFIT and DIMTMOVE values.
dimatfit | [in] DIMATFIT value. |
dimtmove | [in] DIMTMOVE value. |
DIMAFIT DIMFIT 0 0 0 0 1 1 0 2 2 0 3 3 1 0 4 1 1 4 1 2 4 1 3 4 2 0 5 2 1 5 2 2 5 2 3 5
All other input combinations return 3.
int TOOLKIT_EXPORT OdDmUtil::dimfrac | ( | int | dimunit | ) |
Returns the R15 DIMFRAC value corresponding to the specified R14 DUMUNIT value.
dimunit | [in] DIMUNIT value. |
dimfrac 1 0 2 0 3 0 4 0 5 0 6 2 7 2 8 0 other 0
int TOOLKIT_EXPORT OdDmUtil::dimlunit | ( | int | dimunit | ) |
Returns the R15 DIMLUNIT value corresponding to the specified R14 DUMUNIT value.
dimunit | [in] DIMUNIT value. |
dimlunit 1 1 2 2 3 3 4 4 5 5 6 4 7 5 8 6 other 2
int TOOLKIT_EXPORT OdDmUtil::dimtmove | ( | int | dimfit | ) |
Returns the R15 DIMTMOVE value corresponding to the specified R14 DIMFIT value.
dimfit | [in] DIMFIT value. |
dimtmove 0 0 1 0 2 0 3 0 4 1 5 2 other 0
int TOOLKIT_EXPORT OdDmUtil::dimunit | ( | int | dimlunit, |
int | dimfrac | ||
) |
Returns the R14 DIMUNIT value corresponding to the specified DIMLUNIT and DIMFRAC values.
dimlunit | [in] DIMLUNIT value. |
dimfrac | [in] DIMFRAC value. |
DIMLUNIT DIMUNIT 0 1 1 0 2 2 0 3 3 0 4 4 0 5 5 0 6 8 1 1 1 1 2 2 1 3 3 1 4 4 1 5 5 1 6 8 2 1 1 2 2 2 2 3 3 2 4 6 2 5 7 2 6 8
All other input combinations return 2.
OdDbObjectId TOOLKIT_EXPORT OdDmUtil::findArrowId | ( | const OdString & | arrowheadName, |
const OdDbDatabase * | pDb | ||
) |
Returns the Object ID of the arrowhead block with the specified arrowhead name.
arrowheadName | [in] Arrowhead name. |
pDb | [in] Database containing the arrowhead. |
OdDbObjectId TOOLKIT_EXPORT OdDmUtil::getArrowId | ( | const OdString & | arrowheadName, |
OdDbDatabase * | pDb | ||
) |
Returns the Object ID of the arrowhead block with the specified arrowhead name, creating this block if necessary.
arrowheadName | [in] Arrowhead name. |
pDb | [in] Database containing the arrowhead. |
bool TOOLKIT_EXPORT OdDmUtil::isBuiltInArrow | ( | const OdString & | arrowheadName | ) |
Returns true if and only if the specified arrowhead name is that of a built-in arrowhead.
arrowheadName | [in] Arrowhead name. |
NAME UI STRING ArchTick "Architectural tick" BoxBlank "Box" BoxFilled "Box filled" Closed "Closed" ClosedBlank "Closed blank" DatumBlank "Datum triangle" DatumFilled "Datum triangle filled" Dot "Dot" DotBlank "Dot blank" DotSmall "Dot small" Integral "Integral" None "None" Oblique "Oblique" Open "Open" Open30 "Open 30" Open90 "Right angle" Origin "Origin indicator" Origin2 "Origin indicator 2" Small "Dot small blank"
bool TOOLKIT_EXPORT OdDmUtil::isZeroLengthArrow | ( | const OdString & | arrowheadName | ) |
Returns true if and only if the specified arrowhead name is that of a built-in arrowhead that is treated as having zero length.
arrowheadName | [in] Arrowhead name. |
NAME ArchTick DotSmall Integral None Oblique Small