parametrically control state of sketch components, not just dimensions
parametrically control state of sketch components, not just dimensions
(OP)
Is it possible to parametrically control the state of sketch components?
For example, could I write a logical rule that would convert a line to/from reference based on some other part of the model?
Or another example, could I write a logical rule that would activate/deactivate a line based on some other occurence in the model?
This kind of functionality is definitely possible in Catia V5, using the Knowledge Advisor workbench... I haven't been able to figure out how to do this in UG, but I'd be very happy if I could! (by the way, UG NX3 & NX4 on Win XP 32bit)
For example, could I write a logical rule that would convert a line to/from reference based on some other part of the model?
Or another example, could I write a logical rule that would activate/deactivate a line based on some other occurence in the model?
This kind of functionality is definitely possible in Catia V5, using the Knowledge Advisor workbench... I haven't been able to figure out how to do this in UG, but I'd be very happy if I could! (by the way, UG NX3 & NX4 on Win XP 32bit)





RE: parametrically control state of sketch components, not just dimensions
The first containing the driving dimensions.
eg if you had a box with a length and a width.
The second sketch contains the geometry you want to exist or not exist depending on the first sketch.
You can then use edit>feature>suppress by expression to suppress or unsuppress the second sketch using your logical rule. The expression created wants to be = 0 to suppress or 1 to unsuppress.
You could then use an if else statement in your expression to control the value.
Hope that helps.
Mark Benson
CAD Support Engineer
RE: parametrically control state of sketch components, not just dimensions
Tim Flater
Senior Designer
Enkei America, Inc.
www.enkei.com
RE: parametrically control state of sketch components, not just dimensions
Thanks for your reply - I can see how the "Suppress By Expression" can be useful.
But that function won't allow the turning on/off of an individual component (say, a line) WITHIN a sketch. It only controls the suppression of the ENTIRE sketch... Is there another solution?
RE: parametrically control state of sketch components, not just dimensions
The 2 sketch technique will work though. You just put the line you want to turn on/off in the second sketch and turn the whole 2nd sketch on/off using suppress by expression thus leaving your geometry in the 1st sketch alone.
You can tie 2 sketches together geometrically in exactly the same way you would if the geometry was all in 1 sketch the only difference would be 2 sketch features in your feature tree.
The suppression expression can be controled by sketch 1 to supress sketch 2 (containing only the line/lines you want to be turned on/off)
hope that makes more sense.
Mark Benson
CAD Support Engineer