Use formulas in the parent component's LenX, LenY or LenZ fields to limit a SketchUp dynamic component to predefined sizes.
Snapping to the nearest rounded value
Enter this formula in the component's LenX field to snap its width to the nearest value within 2 inches after scaling:
LenX =ROUND ( CURRENT("LenX")/2)*2
LenX =ROUND
CURRENT("LenX")/2)*2
Use this formula for components that represent items available only in whole number sizes.
Snapping to one of a series of specific values
Enter this formula in the component's LenX field to snap its width to the nearest value in the list (24, 36 or 48 inches) after scaling:
LenX =NEAREST(CURRENT("LenX"),24,36,48)
LenX =NEAREST(CURRENT("LenX"),24,36,48)
Use this formula for components that represent items available in predefined sizes, such as kitchen cabinets.
Snapping to a smallest or largest size
Enter this formula in the component's LenX field to snap its width to 20 inches if you scale it beyond 20 inches:
LenX =SMALLEST(CURRENT("LenX"),20)
LenX =SMALLEST(CURRENT("LenX"),20)
Enter this formula in the component's LenX field to snap its width to 10 inches if you scale it below 10 inches:
LenX =LARGEST(CURRENT("LenX"),10)
LenX =LARGEST(CURRENT("LenX"),10)
Use these formulas for components that represent items with a minimum or maximum size.