Datum#

Datum commands return Feature objects and inherit the methods of Feature objects. For more details, see Feature commands. Datums can be created using methods on a Part or Assembly object.

Each command also creates a Datum object in the corresponding datum repository. The Datum object is used as an argument to other commands, such as Part and Partition commands.

Object features#

Datum#

class Datum[source]#

The Datum object is the abstract base type for other Datum objects. The Datum object has no explicit constructor. The methods and members of the Datum object are common to all objects derived from the Datum.

Notes

This object can be accessed by:

import part
mdb.models[name].parts[name].datums[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].datums[i]
mdb.models[name].rootAssembly.datums[i]
mdb.models[name].rootAssembly.instances[name].datums[i]
mdb.models[name].rootAssembly.modelInstances[i].datums[i]

DatumAxis#

class DatumAxis[source]#

The DatumAxis object has no direct constructor; it is created when a Feature object is created. For example, the DatumAxisByCylFace method creates a Feature object that creates a DatumAxis object. The DatumAxis object is derived from the Datum object.

Notes

This object can be accessed by:

import part
mdb.models[name].parts[name].datums[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].datums[i]
mdb.models[name].rootAssembly.datums[i]
mdb.models[name].rootAssembly.instances[name].datums[i]
Attributes:
pointOn: float

A tuple of Floats specifying the X-, Y-, and Z-coordinates of a point located on the datum.

direction: tuple

A tuple of Floats specifying a sequence of three Floats specifying the direction of the axis.

DatumCsys#

class DatumCsys[source]#

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.

Notes

This object can be accessed by:

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
Attributes:
coordSysType: SymbolicConstant

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

origin: DatumPoint

A DatumPoint object specifying the origin of the coordinate system.

axis1: DatumAxis

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

axis2: DatumAxis

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

axis3: DatumAxis

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

Methods

globalToLocal(coordinates)

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

localToGlobal(coordinates)

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

globalToLocal(coordinates: tuple[float, float, float]) tuple[float, float, float][source]#

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

Parameters:
coordinates

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

Returns:
python:tuple[python:float, python:float, python:float]

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

localToGlobal(coordinates: tuple[float, float, float]) tuple[float, float, float][source]#

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

Parameters:
coordinates

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

Returns:
python:tuple[python:float, python:float, python:float]

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

DatumPlane#

class DatumPlane[source]#

The DatumPlane object has no direct constructor; it is created when a Feature object is created. For example, the DatumPlaneByPrincipalPlane method creates a Feature object that creates a DatumPlane object. The DatumPlane object is derived from the Datum object.

Notes

This object can be accessed by:

import part
mdb.models[name].parts[name].datums[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].datums[i]
mdb.models[name].rootAssembly.datums[i]
mdb.models[name].rootAssembly.instances[name].datums[i]
Attributes:
pointOn: float

A tuple of Floats specifying the X-, Y-, and Z-coordinates of a point located on the datum.

normal: tuple

A tuple of Floats specifying a sequence of three Floats specifying the normal.

DatumPoint#

class DatumPoint[source]#

The DatumPoint object has no direct constructor; it is created when a Feature object is created. For example, the DatumPointByCoordinate method creates a Feature object that creates a DatumPoint object. The DatumPoint object is derived from the Datum object.

Notes

This object can be accessed by:

import part
mdb.models[name].parts[name].datums[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].datums[i]
mdb.models[name].rootAssembly.datums[i]
mdb.models[name].rootAssembly.instances[name].datums[i]
Attributes:
pointOn: float

A tuple of Floats specifying the X-, Y-, and Z-coordinates of a point located on the datum.