Expand description
Reading a wizard Level straight from an assembly document’s JSON.
An assembly document lists its placements as ACOMP features
(inputParams.id, partName, isFixed, bom.Find_Number), embeds each
placed part in its partsLibrary (with sourceSignature and the part’s own
document, whose partAttributes say Fastener, Torque and
Serial_Tracked), keeps its mates in assembly.constraints (each naming
entities by elements), and its exploded views as PMI views with explode
rows. A placed part whose own document has placements is a sub-assembly,
read the same way one level down.
Constants§
- MAX_
DEPTH - How deep sub-assemblies are read.
Functions§
- has_
placements - Whether a document places parts (is an assembly).
- level_
from_ document - The level of
document, its placements’ paths underprefix("ACOMP1"when the document is placed asACOMP1,""at the top), the level itself atpath(""for the target assembly). - plm_
part_ id - The PLM part id a library entry’s source key names:
part/<id>/rev/<rev>(a PLM session’s key) or the explorer’s path form of it (/models/part/<id>/rev/<rev>.nbrep);Nonefor a file’s key.