Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

ProAsmcompRmvUniqueSubasm() bug?

_rpm_

New member
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>
 
I have confirmation that in WF2 there is a bug in ProAsmcompRmvUniqueSubasm().

ProFeatureDelete() is the suggested function to remove a component.
 

Sponsor

Articles From 3DCAD World

Back
Top