Get the ProMdl handle of an embedded part of an inseparable assembly using Pro/Toolkit
We are using Creo Parametric Release 10.0 and Datecode10.0.0.0
How can we get the `ProMdl` handle of an embedded part (the part itself, not of the part occurrence) using the Pro/Toolkit API?
I know that we can get the `ProMdl` handle of the part occurrence in the assembly via the assembly `ProMdl` --> `ProSolidFeatVisit` --> filter for `PRO_FEAT_COMPONENT` --> `ProAsmcompMdlGet`.
But we need the `ProMdl` handle of the actual part, not of the occurrence - in order to inspect the geometry before assembly-level features were applied.
For normal (non-embedded) parts, we would use:
ProMdl mdl;
ProError err = ProMdlFiletypeLoad(path, PRO_MDLFILE_UNUSED, PRO_B_FALSE, &mdl);
This works fine for normal paths like "C:\models\PRT0001.prt.1", but for an embedded component's virtual path like "C:\models\PRT0002<<ASM0001>>.prt", it returns `PRO_TK_INVALID_NAME`.
In the Creo Parametric UI, one can right-click the embedded part and click "Open" to see it in its own window.
Is there a way to do this via the Toolkit? Then we could get the `ProMdl` handle via `ProMdlActiveGet`.
~~ Samuel Scharrer

