Linking Sketch Dimensions (3D)
Use these commands to link sketch dimensions to variables and history operations.
Link Variable
to Sketch Dimension
Edit
Dimension (Sketch Level)
Use this command to establish a link between a sketch dimension
and a sketch variable. Create the variable with the Insert
Part Equations command and then use this command to link it to a dimension.
The variable will not drive the dimension until the sketch is solved using
the Solve Current Sketch command.
Select a sketch dimension to link a variable to.
Select a variable from the Sketch Variables List.
Use Solve Current Sketch to enforce the dimension/variable link.
Unlink Variable
from Sketch Dimension
Edit
Dimension (Sketch Level)
Use this command to break the link between a sketch dimension
and variable created with the Link Variable
to Dimension command (see above). The variable will not be deleted
but will no longer drive the dimension to which it was linked.
Select the sketch dimension to unlink.
Pick Yes to unlink the
dimension or No to cancel the command.
Link History Operation Input to Sketch Dimension
This is not a VX command. It is a procedure that you can perform because a sketch Equation Set supports expressions that contain variables encoded from feature field id's. Example: [<feature_name,unique_id,field_id>]. This allows a sketch dimension to be linked to an input field of a history operation in the parent part.
Here are the steps to perform the procedure:
In the History Manager of the parent part, right-click the desired operation and "Open" it.
Right-click the desired operation input field and "Send" it. A text string that encodes the input field as a valid expression is displayed in the message window.
Edit the sketch and open its equation editor.
Use the expression displayed in the message window (copy/paste) to define a new variable in the equation editor. "Submit" the new variable and press "OK" to save the modified Equation Set.
Right-click the dimension you want to drive and use the "Link" option to associate the dimension with the newly-created variable.
In this procedure, the history operation that drives the sketch dimension should occur in the history before the sketch (no checking is done to ensure it). When the sketch is regenerated, its Equation Set will be re-evaluated, using the latest value of the referenced history operation input field to evaluate the Equation Set variable.
The sketch dimension linked to the variable will then be updated. Through this chain of events, the sketch dimension is driven by a history operation input field (i.e. parameter).