Allowing half “U” sizes in Rack Diagrams
In this post, I discussed some general tips on how to work with shapes with intelligent behaviors. Today, I’ll walk through the specific example of the Rack Diagram shapes and how to allow non-integer numbers to be entered for the “U” values (e.g. 1.5 U) in the shapes.
There are two parts to this. First, you need to allow the shape to be able to resize to the right height:
- Select the shape.
- Window>Show ShapeSheet
- In the Shape Transform/Height cell, change the formula to remove the "ROUND" function.
- Old: =SETATREF(Prop.UCount,SETATREFEVAL(SETATREFEXPR(0.4375 ft)/User.OneUHeight),TRUE)+ROUND(Prop.UCount,0)*User.OneUHeight
- New: =SETATREF(Prop.UCount,SETATREFEVAL(SETATREFEXPR(0.4375 ft)/User.OneUHeight),TRUE)+Prop.UCount*User.OneUHeight
Next, you need to make sure that the right values appear in (1) the custom properties window and (2) the text:
- Right click on the shape and select Properties.
- Right click on the window that pops up and select "Define Shape Data"
- Select "Height in U's" and change the Format to Floating Point and click ok (this makes the custom property show the unrounded value)
- To fix the text, it is a little more complicated. You need to go to View>Drawing Explorer, find the right shape, then find the subshape that displays the text and edit the field formula to remove the ROUND function. If anyone is interested I can provide more extensive directions on how to do that. You can see a little bit of information about working in the Drawing Explorer window in this post.
Comments
- Anonymous
May 31, 2009
PingBack from http://woodtvstand.info/story.php?id=10778