NamedPoint

A named point in 3D space. This object lives in the CADFEKO project. NamedPoints are defined by expressions. Mathematical operations cannot be done on NamedPoints, use 'Point' instead.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Create a coordinate (x,y,z) for each plane

x = project.Variables:Add("x", 1)
y = project.Variables:Add("y", 1.1)
z = project.Variables:Add("z", 0.9)

    -- Create a named point variable from the coordinate variables

pt1 = project.NamedPoints:Add("pt1", x, y, z)

    -- Create a named point variable using numbers and strings

pt2 = project.NamedPoints:Add("pt2", x.Value*2, 1.1, "z")

    -- Modify various properties of pt2
    
pt2.Name = "point2"
pt2.Y = "pt1.Y"
pt2.Z = x.Value * z.Value

Property List

Name
The point name. (Read/Write string)
Type
The object type string. (Read only string)
X
The X coordinate expression. (Read/Write Expression)
Y
The Y coordinate expression. (Read/Write Expression)
Z
The Z coordinate expression. (Read/Write Expression)

Method List

Delete ()
Delete the named point.
Duplicate ()
Duplicates the named point. (Returns a NamedPoint object.)
SetPosition (x Expression, y Expression, z Expression)
Sets the position of the named point.

Property Details

Name
The point name.
Type
string
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only
X
The X coordinate expression.
Type
Expression
Access
Read/Write
Y
The Y coordinate expression.
Type
Expression
Access
Read/Write
Z
The Z coordinate expression.
Type
Expression
Access
Read/Write

Method Details

Delete ()
Delete the named point.
Duplicate ()
Duplicates the named point.
Return
NamedPoint
The duplicated named point.
SetPosition (x Expression, y Expression, z Expression)
Sets the position of the named point.
Input Parameters
x(Expression)
The x coordinate.
y(Expression)
The y coordinate.
z(Expression)
The z coordinate.