Skip to content

hertzforge.service.ops_geometry

ops_geometry

Editing a geometry and what is drawn on it, and the project's own structure: the entity tables, the coordinate system gizmo, the DOF arrows and sensors of the 3-D view, Auto Compute, channel roles and DOF names, a channel table's control loops, and the object groups.

A geometry's nodes, coordinate systems, elements and element groups are added, set and deleted through the geometry's own methods (core.entities.VERBS), and elements and element groups are deleted through the project's, which keep the nodes data is measured at. Each edit returns the geometry drawn and the table of that kind of entity, the columns of the entity tables. A shape3d has no markers, so a coordinate system's axes and a DOF arrow are drawn as extra nodes and lines of the mesh; a sensor's body is a solid of its own (bodies).

Functions:

Name Description
frames

Each coordinate system's origin and three axes, and how long to draw them, as a

id_runs_text

Ids as sorted runs without repeats, [1,2,3,7,9,10] as

part_link

What ties the views of one kind of a geometry's entities: one marked in one view

picked_rows

The rows, by index, of the part an entity table is about: a family's elements, or

entity_columns

An entity table's column titles, lengths in the geometry's stored unit.

entity_rows

The cells of the entities at indices, and of no others: a page of a long table

entity_table

One kind of a geometry's entities, lengths in the

part_entities

What a part of a geometry picked in the tree shows: the geometry drawn, with the

view_entities

project.view_entities, a part's Edit: its entities as a table beside the geometry

add_node

project.add_node: a node at typed coordinates

add_coordinate_system

project.add_coordinate_system: a coordinate system at a typed

add_element

project.add_element: an element of a family on named nodes

add_element_group

project.add_element_group: an empty element group

move_elements

project.move_elements: elements put in another element group

set_entity

project.set_entity: one field of one entity written, a cell of

set_entity_cell

project.set_entity_cell: a cell of an entity table typed over in

delete_entities

project.delete_entities: entities deleted by id, as Delete does

rotate_coordinate_system

project.rotate_coordinate_system: a coordinate system turned by

slide_coordinate_system

project.slide_coordinate_system: a coordinate system's origin

reset_rotation

project.reset_rotation: a coordinate system set back to no

dof_arrows

project.dof_arrows: an arrow at each DOF on the geometry the

sensors

project.sensors: the sensors a channel table places on its

channels_table

An object's channels as a table: a channel table's own columns

set_channel_role

project.set_channel_role: one channel made a reference, a

rename_dof

project.rename_dof: a channel's coordinate corrected on an object

channel_table_view

project.channel_table_view: a channel table in one of its control

set_control

project.set_control: Control checked or cleared on one channel

groups_table

The project's object groups: each one's name, role, members, and

link

project.link: objects linked into one group, merging the groups

unlink

project.unlink: an object taken out of its group, a group left

set_basis

project.set_basis: an object's group made the Basis, the group

set_role

project.set_role: the role of an object's group set or cleared

place

project.place: one object put into the Basis or the other

name_object_group

project.name_object_group: the group an object is in named, or

Classes

Functions:

frames

frames(geometry: Any, drawn: Any = None) -> list[dict[str, Any]]

Each coordinate system's origin and three axes, and how long to draw them, as a shape3d's frames: the view draws them as the gimbal is drawn, X red, Y green and Z blue arrows (Brandon, 2026-11-10). Their length is a share of the model's size, the points drawn (solids too) when given, else its nodes.

id_runs_text

id_runs_text(ids: Any) -> str

Ids as sorted runs without repeats, [1,2,3,7,9,10] as '1-3 7 9-10'.

part_link(kind: str, name: str) -> str

What ties the views of one kind of a geometry's entities: one marked in one view (a row of the node table, a click in the 3-D view, a row of the tree) is marked in the others. The shell's tree builds the same words for its rows.

Parameters:

Name Type Description Default
kind str

'nodes', 'systems' or 'elements'.

required
name str

The geometry's name in the project.

required

Returns:

Type Description
str

The link the views carry, as marks.link or a mark_sets entry's link.

picked_rows

picked_rows(geometry: Any, kind: str, family: str = '', groups: str = '') -> ndarray | None

The rows, by index, of the part an entity table is about: a family's elements, or element groups' elements or the groups themselves. None for every row.

entity_columns

entity_columns(geometry: Any, kind: str) -> list[str]

An entity table's column titles, lengths in the geometry's stored unit.

entity_rows

entity_rows(geometry: Any, kind: str, indices: Any) -> list[list[str]]

The cells of the entities at indices, and of no others: a page of a long table is written without writing the rest.

entity_table

entity_table(geometry: Any, kind: str, title: str, name: str | None = None, family: str = '', groups: str = '') -> dict

One kind of a geometry's entities, lengths in the geometry's stored unit: meters once its units are declared. With the geometry's name, its cells are typed into in place (project.set_entity_cell), a column per field of FIELDS, Delete removes its rows (project.delete_entities), and past PAGE_ROWS rows it sends its first and its count, the rest asked for as they are scrolled to. family or groups keeps a part's rows (picked_rows), and its edits and pages say the same part, so a row is the part's.

part_entities

part_entities(name: str, geometry: Any, part: dict[str, Any]) -> list[dict] | None

What a part of a geometry picked in the tree shows: the geometry drawn, with the coordinate systems' axes when they are the part, and no table: a part's table is its Edit verb (view_entities), not its plot (Brandon, 2026-11-13). None for a part drawn another way (solids, mated surfaces).

view_entities

view_entities(project: Any, params: dict[str, Any]) -> list[dict]

project.view_entities, a part's Edit: its entities as a table beside the geometry drawn, cells typed over and rows deleted in place (Brandon, 2026-11-13: the table is editing's, not the plot's). The nodes or coordinate systems; a family's elements (family), a click on its nodes adding one; element groups and their elements, with their connections (groups). The coordinate system on the row picked (cs), or the only one, has the arrows and rings on it: dragging them slides and turns it, as typing in its row does (Brandon, 2026-11-17).

add_node

add_node(project: Any, params: dict[str, Any]) -> list[dict]

project.add_node: a node at typed coordinates (Geometry.add_node). The coordinates are the geometry's stored length unit, meters once its units are declared.

add_coordinate_system

add_coordinate_system(project: Any, params: dict[str, Any]) -> list[dict]

project.add_coordinate_system: a coordinate system at a typed origin, turned by angles about the fixed X, then Y, then Z axes, the convention of the table's Rotation columns (rotate.frame_from_angles, Geometry.add_coordinate_system).

add_element

add_element(project: Any, params: dict[str, Any]) -> list[dict]

project.add_element: an element of a family on named nodes (Geometry.add_element), or for a family of lines the chain of elements through every node named (Geometry.add_beams).

add_element_group

add_element_group(project: Any, params: dict[str, Any]) -> list[dict]

project.add_element_group: an empty element group (Geometry.add_group), added outright since an element group is not placed in space. With family it is that family's, listed under it in the tree while it is empty and offered in its Edit's Add mode.

move_elements

move_elements(project: Any, params: dict[str, Any]) -> list[dict]

project.move_elements: elements put in another element group (Geometry.move_elements), as dragging them onto it in the tree does; the group's Edit views show after.

set_entity

set_entity(project: Any, params: dict[str, Any]) -> list[dict]

project.set_entity: one field of one entity written, a cell of the entity table typed over. The geometry is checked after (Geometry.validate) and left as it was when the edit would make it inconsistent: an element given a type of another family than its group's, say.

set_entity_cell

set_entity_cell(project: Any, params: dict[str, Any]) -> list[dict]

project.set_entity_cell: a cell of an entity table typed over in place, by row (from 1) and column (a field of FIELDS): Set Entity for the entity on that row.

delete_entities

delete_entities(project: Any, params: dict[str, Any]) -> list[dict]

project.delete_entities: entities deleted by id, as Delete does on the rows of the entity table. Nodes go with the elements that use them (Geometry.delete_nodes), and a node some data in the project is measured or solved at is refused, by the project's own list of them; coordinate systems go through Geometry.delete_coordinate_systems, which refuses the last one; elements and element groups through the project's delete_elements and delete_element_groups, which keep the nodes data is measured at.

rotate_coordinate_system

rotate_coordinate_system(project: Any, params: dict[str, Any]) -> list[dict]

project.rotate_coordinate_system: a coordinate system turned by a typed angle about one of its own axes (rotate.rotate_frame) and placed there (Geometry.place_coordinate_system).

slide_coordinate_system

slide_coordinate_system(project: Any, params: dict[str, Any]) -> list[dict]

project.slide_coordinate_system: a coordinate system's origin moved a typed distance along one of its own axes (rotate.translate_frame, Geometry.place_coordinate_system). The distance is typed in the display system's length unit and arrives here in meters; a geometry whose units are not defined takes it in its file's own numbers.

reset_rotation

reset_rotation(project: Any, params: dict[str, Any]) -> list[dict]

project.reset_rotation: a coordinate system set back to no rotation, keeping its origin (rotate.identity_frame, placed with Geometry.place_coordinate_system).

dof_arrows

dof_arrows(project: Any, params: dict[str, Any]) -> list[dict]

project.dof_arrows: an arrow at each DOF on the geometry the source is linked with, along that axis of the node's displacement coordinate system (drawing.viz.geometry.dof_arrow_vectors), all one length (dof_arrow_length); a force points in and ends on its node. The arrows are the view's arrows, and their table lists each DOF and where it points.

sensors

sensors(project: Any, params: dict[str, Any]) -> list[dict]

project.sensors: the sensors a channel table places on its geometry (Project.sensors, core.sensors.place), each centered on its node and turned into its frame, at a multiple of true size. Each body is built from its catalog entry's shape and size, with its connector and cable, and a triax's letters or a uniaxial's arrows on its faces (drawing.viz.sensors), as bodies on the shape3d.

channels_table

channels_table(project: Any, name: str, title: str) -> dict

An object's channels as a table: a channel table's own columns (core.tables.table_of), or a data object's records with each one's DOF, reference, quantity and, for a time history, role.

set_channel_role

set_channel_role(project: Any, params: dict[str, Any]) -> list[dict]

project.set_channel_role: one channel made a reference, a response or a monitor (Project.set_channel_role), on a time history or a channel table and on what is linked with it. The channel is the record, or the table's row, counted from 1.

rename_dof

rename_dof(project: Any, params: dict[str, Any]) -> list[dict]

project.rename_dof: a channel's coordinate corrected on an object and on every object derived from it (Project.rename_dof), the channel and not the point: with a quantity, only that channel at the DOF moves.

channel_table_view

channel_table_view(project: Any, params: dict[str, Any]) -> list[dict]

project.channel_table_view: a channel table in one of its control loops: its channels with the Control column of that environment (core.tables.table_of), or what the controller put over them, the response transformation (a row per controlled response over the control channels) or the reference transformation over the drives (core.tables.transformation_table).

set_control

set_control(project: Any, params: dict[str, Any]) -> list[dict]

project.set_control: Control checked or cleared on one channel of one control loop (ChannelTable.set_control), the Control column of the table in that environment; a table with no loops has its own Control column, written as a cell (set_cell). The channel is the table's row, counted from 1.

groups_table

groups_table(project: Any, said: str = '') -> dict

The project's object groups: each one's name, role, members, and whether comparisons are made against it.

link(project: Any, params: dict[str, Any]) -> list[dict]

project.link: objects linked into one group, merging the groups they are in (Project.link), which refuses a second geometry and a member the group's geometry cannot carry.

unlink(project: Any, params: dict[str, Any]) -> list[dict]

project.unlink: an object taken out of its group, a group left with one member dissolved unless it has a role (Project.unlink).

set_basis

set_basis(project: Any, params: dict[str, Any]) -> list[dict]

project.set_basis: an object's group made the Basis, the group comparisons are made against (Project.set_basis); the Basis is unique, so any other group loses it.

set_role

set_role(project: Any, params: dict[str, Any]) -> list[dict]

project.set_role: the role of an object's group set or cleared (Project.set_role), the bracket menu's Basis of Comparisons checked or not.

place

place(project: Any, params: dict[str, Any]) -> list[dict]

project.place: one object put into the Basis or the other group, the group made when there is none (Project.place), as a drop on a gray slot of the tree does.

name_object_group

name_object_group(project: Any, params: dict[str, Any]) -> list[dict]

project.name_object_group: the group an object is in named, or its name removed when blank (Project.name_object_group); a named group exports as an activity of that name.