GlobalCoordinates

Global coordinates define positions relative to the global coordinate system.

Example

application = cf.Application.getInstance()
project = application:NewProject()
cuboid = project.Contents.Geometry:AddCuboid(cf.Point(0, 0, 0), 1, 1, 1)

    -- Modify the workplane origin (global coordinates) of the cuboid

cuboid.LocalWorkplane.WorkplaneDefinitionOption = cf.Enums.LocalWorkplaneDefinitionEnum.UseCustomDefinedWorkplane
cuboid.LocalWorkplane.LocalDefinedWorkplane.Origin.X = 2.5
cuboid.LocalWorkplane.LocalDefinedWorkplane.Origin.Y = -0.5
cuboid.LocalWorkplane.LocalDefinedWorkplane.Origin.Z = 1

Inheritance

The GlobalCoordinates object is derived from the CompositeValue object.

The following objects are derived (specialisations) from the GlobalCoordinates object:

Usage locations

The GlobalCoordinates object can be accessed from the following locations:

Property List

X
The X coordinate. (Read/Write Dimension)
Y
The Y coordinate. (Read/Write Dimension)
Z
The Z coordinate. (Read/Write Dimension)

Property Details

X
The X coordinate.
Type
Dimension
Access
Read/Write
Y
The Y coordinate.
Type
Dimension
Access
Read/Write
Z
The Z coordinate.
Type
Dimension
Access
Read/Write