Modeling Gap Conditions

Posted by Wayne McClelland and Andy Wells to the ICCON Bulletin Board, 8-October-1998

see also: Conditional Equations
Tutorial on Part Equations
Gap Conditions

Another simple application of conditional equations is to represent "gap conditions" between parts or between curves in a wireframe sketch.  We'll start with a problem posed by Dave Hurst to ICCON:

bullettwo wireframe "boxes" are separated by a gap (see the dimension "gap" in the graphic below)
bulletdrag the righthand box to the left
bulletonce the gap goes to zero, then the lefthand box should start moving to the left as if the righthand box were pushing it
bullet... and then drag the righthand box back to the right and the two boxes should separate again (one-directional contact)

Sliding Wireframe Boxes

Andy Wells was clever enough to find the full solution to the one-directional contact (Wayne only got the first half correct) and Andy's approach is presented below:

First you may want to download the model so that you can follow how this is accomplished.

bulletDownload the Universal File of the completed model
bulletOpen a new model file, enter the Design application, Master Modeler task
bulletOptions, Units... "millimeters"
bulletFile, Import, Design Universal file... enter the universal file that you downloaded
bulletGet the "sliding-wf-boxes" part
bulletDrag the lower righthand corner of the righthand box to the left

Steps from scratch are:

bullet

sketch the two boxes as rectangles

bullet

add the "axis" at the lower left

bullet

dimension as shown above... Modify the noted dimensions to have the names "loca", "ax", "gap", and "locb"

bullet

Part Equations... <select the wireframe>

bullet

set ax and bx to "constant"

bullet

set loca, gap, and locb to "from equation"
From Equation

bullet

in the equation box at the top of the form, type the equations... gap>=0... locb>=loca+ax
Conditional Equation

bullet

now Drag the lower righthand corner of the righthand box to the left and you'll see that once the gap is closed the two boxes move together... click to accept

bullet

Drag the same point again, but this time to the right and you'll see the boxes separate again

bullet

You can also get related effects by Dragging corners of the lefthand block

 

 

back to WAMware homepage®
Copyright © 1996-