Point (hwx.inspire.core)

Reference Point can be used to create or modify geometry.

Attributes

active: Bool

moveWithPart: Bool

name: Attribute

origin: Location

part: Attribute

position: Attribute

systemType: Enum

type: Enum

visible: Bool

Public Methods

__new__ (cls, features, positionType, ratio=0.5)

Attribute Details

active : Bool

Returns or sets the object activeness.

Setting this on or off sets all children. Setting to True sets all the parents active too.

moveWithPart : Bool

Whether the system is moving with the associated part or not.

name : Attribute

Returns or sets the name of the object.

It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.

While these characters are allowed, they could create difficulties when you export the model to other applications.

origin : Location (units=”length”)

The origin of this system in local coordinate system.

part : Attribute

The part associated with this system.

position : Attribute

The global transform as a Matrix44.

systemType : Enum

The type of the system.

type : Enum

The type of the system.

visible : Bool

Determines whether the object is visible in the graphics window.

Setting this on or off sets all children. Setting to True sets all the parents visible too.

Method Details

__new__(cls, features, positionType, ratio=0.5)

Create a reference point. :param features: Features to create a reference point. :type features: list[Feature] | math.Point :param positionType: Position Type.

  • AT_VERTEX

  • COORDINATES

  • BETWEEN_TWO_POINTS

  • ON_EDGE

  • CENTER_OF_CIRCLE

type positionType

str

param ratio

Applicable for BetweenTwoPoints and OnCurve/Edge Method. Variable is passed as string.

type ratio

float | str