DatumCsys object

The DatumCsys object has no direct constructor; it is created when a Feature object is created. For example, the DatumCsysByOffset method creates a Feature object that creates a DatumCsys object.

The DatumCsys object is derived from the Datum object.

This page discusses:

Access

import part
mdb.models[name].parts[name].datums[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].datums[i]
mdb.models[name].rootAssembly.connectorOrientations[i].localCsys1
mdb.models[name].rootAssembly.connectorOrientations[i].localCsys2
mdb.models[name].rootAssembly.datums[i]
mdb.models[name].rootAssembly.instances[name].datums[i]
import odbAccess
session.odbs[name].rootAssembly.connectorOrientations[i].localCsys1
session.odbs[name].rootAssembly.connectorOrientations[i].localCsys2

globalToLocal(...)

This method transforms specified coordinates in the global coordinate system into this local coordinate system.

Required arguments

coordinates

A tuple of three Floats representing the coordinates in the global coordinate system.

Optional arguments

None.

Return value

A tuple of three Floats representing the coordinates in this local coordinate system.

Exceptions

None.

localToGlobal(...)

This method transforms specified coordinates in this local coordinate system into the global coordinate system.

Required arguments

coordinates

A tuple of three Floats representing the coordinates in this local coordinate system.

Optional arguments

None.

Return value

A tuple of three Floats representing the coordinates in the global coordinate system.

Exceptions

None.

Members

The DatumCsys object has the following members:

coordSysType

A SymbolicConstant specifying the type of the coordinate system. Possible values are CARTESIAN, CYLINDRICAL, and SPHERICAL.

origin

A DatumPoint object specifying the origin of the coordinate system.

axis1

A DatumAxis object specifying the 1-direction of the coordinate system.

axis2

A DatumAxis object specifying the 2-direction of the coordinate system.

axis3

A DatumAxis object specifying the 3-direction of the coordinate system.