cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

pro_compute_clearance() select3d* initialization problem

Highlighted
Newbie

pro_compute_clearance() select3d* initialization problem

Hi all
Does anyone have used API pro_compute_clearance()??

As this function takes first argument as select3d*
And I am automatically trying to fill up the values and not user
interactive way.
To fill up values as per manual.

int userClearance(ProMdl genAsmHandle, ProFeature* feat1, ProFeature*
feat2 )
{
Select3d* tempSelect;

tempSelect = (select3d*) new tempSelect(2 * sizeof(select3d*))


tempSelect[0].part_ptr = (Prohandle) feat1; // passing the ProFeature
however as per select3d struct it is char* but when //I
passed name, application crashed hence not sure

tempSelect[0].asm_ptr = (Prohandle) genAsmHandle; //passing ProMdl handle
however as per select3d struct it is char* but when //I
passed name, application crashed hence not sure

tempSelect[0].memb_num = 1; // since I have to traverse in level one
assembly

tempSelect[0].memb_id_tab[0] = feat1->id // this feature collected from
traversing in assembly by ProSolidFeatVisit() and collecting feature of
type PRO_FEAT_COMPONENT


tempSelect[1].part_ptr = (Prohandle) feat2;

tempSelect[1].asm_ptr = (Prohandle) genAsmHandle; //passing ProMdl handle

tempSelect[1].memb_num = 1; // since I have to traverze in level one
assembly

tempSelect[1].memb_id_tab[0] = feat2->id

// calling pro_compute_clearance() with tempSelect and other input
argument but API not detecting interference
pro_compute_clearance(tempSelect,..............................)


}

Any idea of this how to initialize values for tempSelect.??
Specially tempSelect[0].part_ptr and tempSelect[0].asm_ptr??
Thanks in advance
Ravindra


Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

1 REPLY 1

RE: pro_compute_clearance() select3d* initialization problem

Hi Ravindra,

I am facing same issue.Have you got the solution of your problem?

Thanks & Regards

Nikhil Gothankar

Announcements