Skip to main content

GeometryRef

Kind: Class
Domain: Assembly
Canonical import: from cadflow import GeometryRef

Signature

class GeometryRef(kind: 'str', source_node_id: 'Optional[str]', geo_selector: 'Dict[str, Any]', flip: 'bool' = False, _metadata: 'Dict[str, Any]' = <factory>, _runtime: 'Dict[str, Any]' = <factory>) -> None

Description

Serializable reference to a sub-shape selected via QL.

Serializable reference to a sub-shape selected via QL.

Wraps the geo_selector fingerprint + source graph node id so the exact sub-element (Face/Edge/Vertex) can be re-resolved at translation time or during constraint solving. When flip is True, the derived placement Z axis is negated.

Other public imports

  • from cadflow.assembly import GeometryRef

Parameters

NameTypeRequiredDefaultSource description
kind'str'yes-Not explicitly described in the source docstring.
source_node_id'Optional[str]'yes-Not explicitly described in the source docstring.
geo_selector'Dict[str, Any]'yes-Not explicitly described in the source docstring.
flip'bool'noFalseNot explicitly described in the source docstring.
_metadata'Dict[str, Any]'no&lt;factory&gt;Not explicitly described in the source docstring.
_runtime'Dict[str, Any]'no&lt;factory&gt;Not explicitly described in the source docstring.

Returns

Type: None

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Data fields

NameTypeDefault
kind'str'required
source_node_id'Optional[str]'required
geo_selector'Dict[str, Any]'required
flip'bool'False
_metadata'Dict[str, Any]'factory
_runtime'Dict[str, Any]'factory

Public members

MemberKindSignatureDescription
to_dictmethod(self) -&gt; 'Dict[str, Any]'See the member signature.

Behavior and constraints

  • Instances are immutable dataclass values; update workflows return a replacement value.

Import check

from cadflow import GeometryRef

See also