Skip to main content

Module mass_geometry

Module mass_geometry 

Source
Expand description

Which geometry file a revision’s mass is computed from (pure rules).

The 3D files of a revision are grouped by model: files whose normalised stem is the same (box.prt, Box.SLDPRT, box_rev-B.stp) are one model in several formats. One model is picked automatically (format rank, the user’s preferred CAD program breaks ties between native formats); files of several models are ambiguous and add nothing until a file is chosen, because the mass of one arbitrary part is worse than none. A candidate that is probably the whole assembly (the root of the file references of the revision, or named like the item) is suggested.

Structs§

CandidateOut
GeometryInfo
How the geometry file of a revision was decided, for the page, the exports, REST and MCP.
Group
Several files of one model, best first.
GroupOut
Hints
What the choice of a revision’s geometry file knows besides the files.
Resolution

Enums§

Pick
The result of the choice.

Functions§

groups
Groups the candidates by model, each group best file first.
info
Describes a resolution; the candidates are listed when ambiguous or when with_groups is set.
normalise_stem
File name without extension, lower case, _, - and spaces folded to single spaces and a trailing revision (rev-D, _rev_B, revB) removed. Creo version extensions (.prt.5) are dropped as well.
reference_roots
The files of a revision that look like the root of an assembly: they reference other files of the revision (by name) and no other file of the revision references them. files are (id, file name), references are (referencing file id, referenced name).
resolve
Chooses the geometry file of a revision from its candidates.