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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Creating section points via ProSectionEntityAdd without snapping to grid?

ptc-1670642
4-Participant

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?

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

3 REPLIES 3

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.

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.

We ended up setting grid_snap to no, and that was sufficient for our needs at the moment.  Thanks, again, Gabriel!

Announcements


Top Tags