3DPosition Property

CDXML Name:xyz
CDX Constant Name:kCDXProp_3DPosition
CDX Constant Value:0x0201
Data Size:CDXPoint3D
Property of objects:kCDXObj_Node
First written/read in:ChemDraw 8.0


The 3D location (in the order of X-, Y-, and Z-locations in right-handed coordinate system) of an object in CDX coordinate units. The precise meaning of this attribute varies depending on the type of object.

Note that 3DPosition might be unrelated to 2DPosition. For instance, the 3DPosition attribute for node objects is mainly intended for preserving the 3-D location of the nodes generated by a 3-D modeling program although it could be used in other ways.

If one object contains both a 3DPosition and a 2DPosition, it is the responsibility of the writing program to make sure that they are consistent. Normally, the X and Y coordinates of the 3DPosition should match the corresponding coordinates of the 2DPosition. The behavior when reading a file with inconsistent 2D and 3D positions is undefined, since any CDX reader is allowed to ignore any optional field.


CDX Documentation index