Skip to main content
1-Visitor
August 21, 2017
Solved

Creating section points via ProSectionEntityAdd without snapping to grid?

  • August 21, 2017
  • 1 reply
  • 1986 views

In a custom TOOLKIT application, we are creating points in a section (via ProSectionEntityAdd), and they always appear to snap to a grid with spacing 0.01", which is far too coarse for our purposes.  We've tried changing the part document accuracy to the minimum of 1e-4, and also changing the section epsilon to the minimum value of 1e-9.

 

Is there any way to avoid this snapping behavior and just leave the points at their specified positions?

Best answer by GabrielZaha

Part accuracy doesn't afect the sketcher.

If you want to disable the points snapping to the grid you should set the grid_snap config option to no.

Also, how are those points constrained? Dimensions to reference entities or other methods? If you are creating the dimensions make sure the ProSecdimCreate function is succsesfull and that the dimension value is the correct one.

1 reply

14-Alexandrite
August 22, 2017

Part accuracy doesn't afect the sketcher.

If you want to disable the points snapping to the grid you should set the grid_snap config option to no.

Also, how are those points constrained? Dimensions to reference entities or other methods? If you are creating the dimensions make sure the ProSecdimCreate function is succsesfull and that the dimension value is the correct one.

1-Visitor
August 22, 2017

Thanks Gabriel! We've been using ProSectionAutodim to add constraints after adding all the points, so we'll try adding the constraints explicitly using ProSecdimCreate.