Skip to main content
1-Visitor
Aug 21, 2017 1:59 PM UTC
Solved

Creating section points via ProSectionEntityAdd without snapping to grid?

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?

14-Alexandrite
Aug 22, 2017 1:16 PM UTC

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.

3 replies

14-Alexandrite
Aug 22, 2017 1:16 PM UTC

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.

Translate
1-Visitor
Aug 22, 2017 3:31 PM UTC

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.

Translate