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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Creating Auto Ordinate Dimensions to the Flat view ,Creo toolkit C++

AA_10646944
7-Bedrock

Creating Auto Ordinate Dimensions to the Flat view ,Creo toolkit C++

HI Team,

 

Background work we have done for this, collected all the views and filtered the flat view by the part model used in the view. retrieved solid from the view, from solid collected number of surface and no of edges using surface visit and contour visit.
and set the view for surface recognition For ProDimensionAutoOrdinateCreate(). also given Proselection surface_array and edge selection through Program. but not able to achieve dimensions even after conditions are specified for the surfaces and edges.

We are getting one error while executing ProDimensionAutoOrdinateCreate() this function all. The error message and code reference given in message and warning box.

 

 

Exception thrown at 0x00007FFAF8BE36F9 (rtlcoremt.dll) in xtop.exe: 0xC0000005: Access violation reading location 0x0000011D407BFFFC.

If there is a handler for this exception, the program may be safely continued.


Please find below the code reference

ProSurface pSurface;
ProDimension* dimensions;
ProSelection *sel, sel1;
ProEdge p_edge;

status = ProSurfaceToGeomitem(solid, pSurface, (ProGeomitem*)&modelitem);
status = ProSelectionAlloc(NULL, &modelitem, sel);
status = ProSelectionSet(*sel, NULL, &modelitem);


status = ProEdgeToGeomitem(solid, p_edge, (ProGeomitem*)&modelitem1);
status = ProSelectionAlloc(NULL, &modelitem1, &sel1);
status = ProSelectionSet(sel1, NULL, &modelitem1);
status = ProDimensionAutoOrdinateCreate(Drawing, sel, sel1, &dimensions);

 

 

 

 

 

0 REPLIES 0
Announcements


Top Tags