Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello
I have asmcomppath of component in assembly. What I need to do is to allow user to redefine it's constraint. For that, We are going to use API ProAsmcompConstrRedefUI(), which ask for asmcomp.
Query is that how can we fond out ProAsmcomp if we are having proasmcomppath.
Feel free to ask for any query.
Note : we have used ProIdTable to get asmcomppath. ProIdTable (id for components) detail was dumped into model parameter.
Thanks and Regards
Ketan
Solved! Go to Solution.
From example TestAsm.c
status = ProSelectionAsmcomppathGet(p_sel[0], &asmcomppath);
p_asmcomp->owner = asmcomppath.owner;
p_asmcomp->id = asmcomppath.comp_id_table[0];
p_asmcomp->type = PRO_FEATURE;
But I think that for p_asmcomp->id need to use last ID in comp_id_table
What about API "ProAsmcomppathMdlGet()" ?
ProMdl Model;
ProAsmcomppath CompPath;
// Got Asmcomppath
Model = CompPath.owner;
I hope, this is your requirement.
Checked now and it failed... Any other option would be of great help.
From example TestAsm.c
status = ProSelectionAsmcomppathGet(p_sel[0], &asmcomppath);
p_asmcomp->owner = asmcomppath.owner;
p_asmcomp->id = asmcomppath.comp_id_table[0];
p_asmcomp->type = PRO_FEATURE;
But I think that for p_asmcomp->id need to use last ID in comp_id_table
Great....It worked... Appreciate your response