MIL_ID SrcMilObjectId,  //in 
MIL_ID DstMilObjectId,  //in 
MIL_INT64 CopyType,  //in 
MIL_INT64 ControlFlag  //in 
This function copies attributes or settings to or from a 3D geometry object or transformation matrix object. You can copy the entire object or some attributes or settings of the object (for example, box orientation), depending on the source and destination objects and the specified copy type.
Specifies the identifier of the source object. Note that if the source object is not a predefined or userdefined 3D geometry object or transformation matrix object, the destination object must be.
See the Parameter associations section for possible values that can be specified.
Specifies the identifier of the destination object. Note that if the destination object is not a predefined or userdefined 3D geometry object or transformation matrix object, the source object must be.
See the Parameter associations section for possible values that can be specified.
Specifies the type of copy operation.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the SrcMilObjectId, DstMilObjectId, and CopyType parameters.
For specifying the copy type


CopyType  Description  
SrcMilObjectId  
DstMilObjectId  
M_BOX_ORIENTATION 
Specifies to set the orientation of a 3D box geometry object, or copy the orientation of a 3D box geometry object. 

M_IDENTITY_MATRIX 
Specifies to set the 3D box geometry object's box orientation to the identity matrix. 

3D geometry object ID 
Specifies the identifier of the 3D box geometry object whose orientation to set. 

3D box geometry object ID from which to copy 
Specifies the identifier of a 3D box geometry object from which to copy the box orientation. 

3D box geometry object ID in which to copy 
Specifies the identifier of the 3D box geometry object whose orientation to set. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the transformation matrix object in which to copy the box orientation. 

Transformation
matrix object ID to use to define 
Specifies the identifier of the transformation matrix object used to set the 3D box geometry object's box orientation. 

3D geometry object ID 
Specifies the identifier of the 3D box geometry object whose orientation to set. 

M_GEOMETRY 
Specifies to copy a 3D geometry object into another 3D geometry object. 

M_XY_PLANE 
Specifies to copy the XY (Z=0) plane into a 3D geometry object. 

3D geometry object ID 
Specifies the identifier of the 3D geometry object whose geometry to set to the XY (Z=0) plane. 

3D geometry object ID from which to copy 
Specifies the identifier of a 3D geometry object from which to copy the geometry. 

3D geometry object ID 
Specifies the identifier of the 3D geometry object whose geometry to set. 

M_ROTATION_AND_SCALE 
Specifies to set only the rotation and scale values of a transformation matrix object using a MIL array buffer, or to copy only the rotation and scale values of a transformation matrix object. 

M_IDENTITY_MATRIX 
Specifies to copy the rotation and scale values of the identity matrix (equivalent to no rotation and uniform scale of 1). 

MIL array buffer ID in which to copy 
Specifies the identifier of the 4x4 MIL array buffer in which to copy the rotation and scale values of the identity matrix. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the destination transformation matrix object in which to copy the rotation and scale values of the identity matrix. 

MIL array buffer ID to use to define 
Specifies the identifier of a 4x4 MIL array buffer used to set the rotation and scale values of the transformation matrix object. 

Transformation matrix object ID 
Specifies the identifier of the transformation matrix object. 

Transformation
matrix object ID from which to copy 
Specifies the identifier of a transformation matrix object from which to copy the rotation and scale values. 

MIL array buffer ID in which to copy 
Specifies the identifier of the 4x4 MIL array buffer in which to copy the rotation and scale values of the transformation matrix object. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the destination transformation matrix object in which to copy the rotation and scale values of the source transformation matrix object. 

M_TRANSFORMATION_MATRIX 
Specifies to set the values of a transformation matrix object using a MIL array buffer, or to copy a transformation matrix object. 

M_IDENTITY_MATRIX 
Specifies to copy the identity matrix. 

MIL array buffer ID in which to copy 
Specifies the identifier of the 4x4 MIL array buffer in which to copy the identity matrix. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the destination transformation matrix object in which to copy the identity matrix. 

MIL array buffer ID to use to define 
Specifies the identifier of a 4x4 MIL array buffer used to set the transformation matrix object. 

Transformation matrix object ID 
Specifies the identifier of the transformation matrix object. 

Transformation
matrix object ID from which to copy 
Specifies the identifier of a transformation matrix object to copy. 

MIL array buffer ID in which to copy 
Specifies the identifier of the 4x4 MIL array buffer in which to copy the values of the transformation matrix object. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the destination transformation matrix object in which to copy the values of the source transformation matrix object. 

M_TRANSLATION 
Specifies to set only the translation values of a transformation matrix object using a MIL array buffer, or to copy only the translation values of a transformation matrix object. 

M_IDENTITY_MATRIX 
Specifies to copy the translation values of the identity matrix (equivalent to no translation). 

MIL array buffer ID in which to copy 
Specifies the identifier of the 4x4 MIL array buffer in which to copy the translation values of the identity matrix. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the destination transformation matrix object in which to copy the translation values of the identity matrix. 

MIL array buffer ID to use to define 
Specifies the identifier of a 4x4 MIL array buffer used to set the translation values of the transformation matrix object. 

Transformation matrix object ID 
Specifies the identifier of the transformation matrix object. 

Transformation
matrix object ID from which to copy 
Specifies the identifier of a transformation matrix object from which to copy the translation values. 

MIL array buffer ID in which to copy 
Specifies the identifier of the 4x4 MIL array buffer in which to copy the translation values of the transformation matrix object. 

Transformation matrix object ID in
which to copy 
Specifies the identifier of the destination transformation matrix object in which to copy the translation values of the source transformation matrix object. 
Header  Include mil.h. 
Library  Use mil.lib; mil3d.lib. 
DLL  Requires mil.dll; mil3d.dll. 