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§
- Candidate
Out - Geometry
Info - 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.
- Group
Out - 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_groupsis 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.
filesare(id, file name),referencesare(referencing file id, referenced name). - resolve
- Chooses the geometry file of a revision from its candidates.