I'm trying to delete a component from an assembly. The function ProAsmcompRmvUniqueSubasm() returns the value PRO_TK_BAD_INPUTS. I have checked the path and use it for retrieving a valid ProMdl.
In the documentation there is the following comment:
/* bug in the function ProAsmcompRmvUniqueSubasm() */
err = ProAsmcompRmvUniqueSubasm (&asmcomppath);
If there is a bug, is there a workaround?
I tried the following instead:
ProMdl model;
status = ProAsmcomppathMdlGet(&asmcomppath, &model);
status = ProMdlDelete(model);
But the return of ProMdlDelete() is PRO_TK_E_IN_USE.
Any thoughts for removing a component are appreciated.
Thanks,
-rpm
</pre>
In the documentation there is the following comment:
/* bug in the function ProAsmcompRmvUniqueSubasm() */
err = ProAsmcompRmvUniqueSubasm (&asmcomppath);
If there is a bug, is there a workaround?
I tried the following instead:
ProMdl model;
status = ProAsmcomppathMdlGet(&asmcomppath, &model);
status = ProMdlDelete(model);
But the return of ProMdlDelete() is PRO_TK_E_IN_USE.
Any thoughts for removing a component are appreciated.
Thanks,
-rpm
</pre>