- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here is a simple example of the code you can use within a local iLogic rule to limit the value of a parameter named "Overall_Height" to a value between 12 and 240. If you enter a number higher it tells you, then sets the value to the maximum limit. If you enter a value to low, it tells you, then sets the value to the minimum limit.
If Overall_Height > 240 Then
MsgBox("That Overall Height is too tall. Please enter a value between 12 and 240.", vbOKOnly, "TOO TALL")
Overall_Height = 240
ElseIf Overall_Height < 12 Then
MsgBox("That Overall Height is too short. Please enter a value between 12 and 240.", vbOKOnly, "TOO SHORT")
Overall_Height = 12
End If
I hope this helps.
If this solves your problem, or answers your questions, please click 'Accept As Solution".
Or, if this helps you reach your goal, please click 'LIKES"
.
Also, if you're interested, here are a few of the 'Ideas' I'd like to get implemented.
If you agree with any of them, please vote for them.
- Add more capabilities to the 'Customize' dialog box (exe. Add Tab & Add Panel) Click Here
- MessageBox, InputBox, and InputListBox Size & Format Options Click Here
- Constrain & Dimension Images In Assembly Sketches & Drawing Sketches (TitleBlocks & SketchedSymbols) Click Here
- Save Section View Status In DesignViewRepresentation (So It Can Be Used In The Drawing) Click Here
- Add SolidBodies Folder In iLogic Rule Editor Model Tab Click Here
- Convert All Views To Raster Before Autosave Stores To 'OldVersions' Folder Click Here
- SetDesignViewRepresentation - Fix limitations for DrawingView of a Part Click Here
- Create DocumentSubTypeEnum Click Here
Inventor 2020 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum
Wesley Crihfield
(Not an Autodesk Employee)