Sanjay Meher
New member
Hi guys
Has anyone tried to retrieved the sketch of any feature using the function
ProError ProFeatureSectionCopy(ProFeature *feat_handle,int section_number, ProSection *p_section)
I am trying to use this function to get the sketch of any feature but I think I am not getting the sketch.
If anyone has used it successfully please help me to find my error
I have used the following code to check whether the sketch retrieved is correct or not
ProStringToWstring (wname, "demo");
status = ProSectionNameSet (section, wname);
printf("\n ProSectionNameSet status %d",status);
status = ProObjectwindowCreate(wname,PRO_3DSECTION,&windowid);
//status = ProObjectwindowCreate(wname,PRO_2DSECTION,&windowid);
printf("\n ProObjectwindowCreate status %d",status);
status = ProWindowActivate(windowid);
printf("\n ProWindowActivate status %d",status);
However I dont get any sketch.
Your Help is really needed
Thanks
Sanjay
Has anyone tried to retrieved the sketch of any feature using the function
ProError ProFeatureSectionCopy(ProFeature *feat_handle,int section_number, ProSection *p_section)
I am trying to use this function to get the sketch of any feature but I think I am not getting the sketch.
If anyone has used it successfully please help me to find my error
I have used the following code to check whether the sketch retrieved is correct or not
ProStringToWstring (wname, "demo");
status = ProSectionNameSet (section, wname);
printf("\n ProSectionNameSet status %d",status);
status = ProObjectwindowCreate(wname,PRO_3DSECTION,&windowid);
//status = ProObjectwindowCreate(wname,PRO_2DSECTION,&windowid);
printf("\n ProObjectwindowCreate status %d",status);
status = ProWindowActivate(windowid);
printf("\n ProWindowActivate status %d",status);
However I dont get any sketch.
Your Help is really needed
Thanks
Sanjay