How would I go about creating a rule in iLogic which would limit the minimum length of a pipe (parameter = Pipe_Length) to be half the outer diameter of the pipe (Pipe_OD), in other words "Pipe_Length ≥ Pipe_OD/2"
I know you can use the limits wizard in iLogic, but is that not only for numerical values as opposed to parameters?
Thanks in Advance for your answers.
I would create create a rule like this:
If Pipe_Length < Pipe_OD / 2 Then MessageBox.Show("Pipe length must be no less than half pipe OD!", "Length Warning") Pipe_Length = Pipe_OD / 2 End If
I like to use a message box to communicate to the user why a dimension keeps changing back to something. The first argument in the message box is the actual warning, the second is the title of the message box itself.
Then just force the change to your minimum.
Do you use Tube & Pipe? Because you can create those rule right in the pipe styles dialog.
Chris Benner
Inventor Tube & Pipe, Vault Professional
Cad Tips Tricks & Workarounds | Twitter | LinkedIn
Autodesk University Classes:
Going With The Flow with Inventor Tube and Pipe | Increasing The Volume with Inventor Tube and Pipe | Power of the Autodesk Community | Getting to Know You | Inventor Styles & Standards |Managing Properties with Vault Professional | Vault Configuration | Vault - What is it & Why Do I Need It? | A Little Less Talk - Tube & Pipe Demo | Change Orders & Revisions - Vault, Inventor & AutoCAD | Authoring & Publishing Custom Content
Can't find what you're looking for? Ask the community or share your knowledge.