snapCpaToPlacementGrid
layoutXL snapCpaToPlacementGrid boolean { t | nil }
Description
Snaps the Custom Placement Area to the placement grid if the placement grid is defined.
When set to nil, the custom placement area is snapped to the X Snap and Y Snap spacing, provided the following conditions are fulfilled:
- X Snap and Y Snap spacing are multiples of the manufacturing grid.
- Both X Snap and Y Snap spacing are equal to or greater than the manufacturing grid.
If either of the snapping conditions is not met, the custom placement area is snapped to the manufacturing grid.
When set to t, the custom placement area is snapped to the placement grid. If the placement grid is unavailable, the conditions for snapping to the X/Y spacing are verified. If both the conditions are fulfilled, the placement area is snapped to the X-snap and Y-snap spacing. Else, the placement area is snapped to the manufacturing grid.
GUI Equivalent
Examples
envGetVal("layoutXL" "snapCpaToPlacementGrid")
envSetVal("layoutXL" "snapCpaToPlacementGrid" 'boolean t)
envSetVal("layoutXL" "snapCpaToPlacementGrid" 'boolean nil)
Related Topics
List of Layout XL Environment Variables
Return to top