Skip to main content

Module structure

Module structure 

Source
Expand description

The structure view of the desktop navigator: the top-level items of a project group and the parts of one assembly revision, one level at a time (read-only; a big group or assembly is never loaded as a whole).

  • roots: the items of a group that no BOM line of the group uses (assemblies and loose parts), with the number of assemblies that use them.
  • children: the BOM lines of one revision under a revision rule (latest or released), each with the revision it resolves to, its state, the lock owner and how many assemblies use the part. A child in a group the actor cannot read is a placeholder without identity.

§Invariants

  • Permission: hidden groups answer “not found”; hidden children and hidden parents (the usage count) are never revealed.

Structs§

Level
StructureNode
One item or BOM line of the structure view.

Enums§

Rule
Revision rules of the structure view.

Constants§

MAX_CHILDREN
More lines than this are never returned in one level.

Functions§

children
The BOM lines of a revision (one level), resolved by the rule. The caller has checked that the actor may read the revision.
roots
The top-level items of a project group: not used in any BOM line whose parent belongs to the group, by number.