pub fn import_solidworks_assembly_report(
bytes: &[u8],
resolve: &mut dyn FnMut(&str) -> Option<Vec<u8>>,
) -> Result<ParasolidImportReport, String>Expand description
A SolidWorks assembly’s bodies, each instance’s part read through
resolve (given a file’s base name, its bytes) and placed; sub-assemblies
recursively. Suppressed instances are left out.
A component whose file resolve does not find (a part or a
sub-assembly) is left out, as SolidWorks opens an assembly whose
references are missing; the report names each such file once
(MISSING_COMPONENT_FILE). An assembly none of whose components is
found is refused, naming every missing file.
A virtual component (an instance of a part kept inside the assembly that
made it, its file named <part>^<assembly>) is read from that assembly’s
VirtualComp/<part> stream, a whole part file, as any part is; a virtual
part that holds no body contributes nothing, and the report names it
(VIRTUAL_PART_WITHOUT_BODY).