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.

ProSelection from Assembly & ProMdl

muamw10

New member
I have struggled with
creating a ProSelection object that contains a fully populated member id table.
I'm starting from an assembly pointer(ProSolid) and a ProMdl of the object I
want to turn into a ProSelection. Any help would be appreciated.

-Andrew
Westberg
<table border="0" cellpadding="0" cellspacing="0" width="750">
<t><tr><td><table border="0" cellpadding="0" cellspacing="0" width="735"><t><tr><td bgcolor="#e3e3e3"><table border="0" cellpadding="5" cellspacing="0" width="701"><t><tr><td colspan="2" align="left" valign="center">

</td></tr></t></table></td></tr></t></table></td></tr></t>
</table>
 
Hi Andrew,

You can use ProSelect to select component in assembly.
status = ProSelect("prt_or_asm", 1, NULL, NULL, NULL, NULL, &p_sel, &n_sel);

After this,
status = ProSelectionAsmcomppathGet(p_sel[0], &comp_path);
to get ProAsmcomppath. Use comp_path.comp_id_table to get member id table.

Ofcourse, you can do above if your appln has some user interaction. Hope this answers your query.

Bye,
Himanshu
 
Hi,


I am kishore V.Here is my Q'.


I retireved the drawing for the manual created part using Pro-Engineerusing Pro-Toolkit.


After retrieving the drawingi would like to select the view in the drawing using
ProSelect() API.The selction window is going off as soon i select.It selction window is not a stand still untill i select.


Plz give idea how do i have interactive selection after retrieving a model in Pro-Toolkit.
 
Hi Andrew,

You can use ProSelect to select component in assembly.
status = ProSelect("prt_or_asm", 1, NULL, NULL, NULL, NULL, &p_sel, &n_sel);

After this,
status = ProSelectionAsmcomppathGet(p_sel[0], &comp_path);
to get ProAsmcomppath. Use comp_path.comp_id_table to get member id table.

Ofcourse, you can do above if your appln has some user interaction. Hope this answers your query.

Bye,
Himanshu
hi there, i want to select a part or a sub-assembly in drawing, should i use proselect()? or any other api? thanks
 

Sponsor

Articles From 3DCAD World

Back
Top