000

Index Labels

iLogic - Dynamic MultiValue Parameter Lists "Filtered" By Current Selected Value

.
Issue:
You want to "filter" a list (List B) based on the selection from another list (List A), but the lists are long and writing the If/Then or Select Case statements are repetitive, and difficult to maintain. Is there a better way?

Solution:
You can use ArrayLists and For Each Statements to do this, as shown in this example.

Here an illogic form is used, and when a value is selected from List A, then List B and C are reset to include only values less than or equal to the current selected List A value.



Example file:
Dynamic MultiValue Lists iLogic 2015.ipt ‏68 KB    

SyntaxEditor Code Snippet
Example code:

'reset List B list to default
MultiValue.SetList("List_B", 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)

'reset List C list to default
MultiValue.SetList("List_C", 2,4,6,8,10,12,14,16)

Dim B_List As New ArrayList
B_List = MultiValue.List("List_B")

Dim C_List As New ArrayList
C_List = MultiValue.List("List_C")

Dim Temp_List As New ArrayList

Temp_List.Clear
For Each oItem in B_List
If List_A >= oItem Then
Temp_List.Add(oItem)
End If
Next

MultiValue.List("List_B") = Temp_List

Temp_List.Clear
For Each oItem in C_List
If List_A >= oItem Then
Temp_List.Add(oItem)
End If
Next

MultiValue.List("List_C") = Temp_List

Blog Archive

Labels

2D Drafting 3D design 3D Modeling 3D models 3D Printing 3D rendering 3D scanning 3D Sketch Inventor 3D visualization 3D Web App 3ds Max ACC Additive Manufacturing affordable Autodesk tools AI Design AI in CAD AI in Manufacturing AI Tools AR architectural design architectural modeling architectural visualization Architecture architecture design Architecture Productivity architecture software Artificial Intelligence augmented reality AutoCAD AutoCAD advice AutoCAD Basics AutoCAD Beginners AutoCAD Civil3D AutoCAD commands AutoCAD efficiency AutoCAD features AutoCAD File Management AutoCAD Layer AutoCAD learning AutoCAD print settings AutoCAD productivity AutoCAD Teaching AutoCAD Techniques AutoCAD tips AutoCAD tools AutoCAD training. AutoCAD tricks AutoCAD Tutorial AutoCAD workflow AutoCAD Xref Autodesk Autodesk 2025 Autodesk 2026 Autodesk 3ds Max Autodesk AI Autodesk AI Tools Autodesk Alias Autodesk AutoCAD Autodesk BIM Autodesk BIM 360 Autodesk Certification Autodesk Construction Cloud Autodesk Dynamo Autodesk features Autodesk Forge Autodesk FormIt Autodesk Fusion 360 Autodesk InfraWorks Autodesk Inventor Autodesk Inventor Frame Generator Autodesk Inventor iLogic Autodesk Navisworks Autodesk news Autodesk plugins Autodesk Recap Autodesk Revit Autodesk Software Autodesk Tips Autodesk training Autodesk update Autodesk Upgrade Autodesk Vault Autodesk Video Autodesk Viewer Automation Automation Tutorial automotive design automotive visualization Backup Basic Commands Basics Beginner Beginner Tips Big Data BIM BIM collaboration BIM Coordination BIM Data BIM for Infrastructure BIM Implementation BIM software BIM technology BIM tools BIM Trends BIM workflow Block Editor Building Maintenance Building Systems ByLayer CAD CAD API CAD comparison CAD Data Management CAD Design CAD Evolution CAD File Size Reduction CAD Integration CAD line thickness CAD management CAD modeling CAD Optimization CAD plugins CAD Productivity CAD Skills CAD software CAD software 2026 CAD software training CAD technology CAD Tips CAD workflow car design software Case Study CGI design Civil 3D civil engineering Clash Detection Class-A surfacing clean CAD file cleaning command client engagement Cloud CAD Cloud Collaboration Cloud design platform Cloud Engineering Cloud Management Cloud Storage Cloud-First collaboration command abbreviations concept car conceptual workflow construction Construction Analytics Construction BIM Construction Technology Contractor Workflow Contraints Create resizable blocks CTB STB Cybersecurity Data Backup data management Data Protection Data Reference Data Shortcut Design Automation Design Collaboration Design Comparison design review design software design software tips Design Technology Design Workflow design-to-construction Digital Construction Technology Digital Design Digital engineering digital fabrication digital marketing Digital Twin Digital Twins digital workflow Drafting Standards Drawing Automation Dref Dynamic Block Dynamic Block AutoCAD Dynamic Blocks Dynamic doors Dynamic windows Dynamo automation early stage design eco design editing commands energy efficiency Engineering Engineering Automation engineering data Engineering Design Engineering Innovation engineering software Engineering Technology engineering tools Engineering Tools 2025 Engineering Workflow Excel Express Tools External Reference Facility Management Fast Structural Design File Recovery Forge Development Forge Viewer FreeCAD Fusion 360 Fusion 360 tutorial Future Skills Generative Design Global design teams green building Grips Handoff heavy CAD file Heavy CAD Files HVAC Design Tools HVAC Engineering Hydraulic Modeling iLogic Industry 4.0 infrastructure design Infrastructure Monitoring Infrastructure Technology InfraWorks Insight interactive presentation Interior Design Inventor Inventor API Inventor Drawing Template Inventor Frame Generator Inventor Graphics Issues Inventor IDW Inventor Tips Keyboard Shortcuts Large Projects Learn AutoCAD Licensing Linked Models Machine Learning in CAD maintenance command Management Manufacturing Innovation marketing visuals Mechanical Design Mechanical Engineering MEP Modeling Mesh-to-BIM Metal Structure Model Optimization Navisworks Best Practices ObjectARX .NET API Open Source CAD Organization OVERKILL OVERKILL AutoCAD Palette parametric design parametric family PDF PDM system Plot Style AutoCAD point cloud Post Construction Practice Drawing Predictive Maintenance Printing Quality Product Design Product Development product lifecycle product rendering Productivity productivity tools professional printing Professional Tips project management PTC Creo PURGE PURGE AutoCAD realistic rendering ReCap reduce CAD file size rendering engine rendering software Renovation Project Resizable Block Revit Revit add-ins Revit automation Revit Best Practices Revit integration Revit MEP Revit Performance Revit Scripting Revit skills Revit Tips Revit tutorial Revit Workflow Ribbon screen shortcut keys Shortcuts Siemens NX Simulation Sketch Small Firms Smart Block Smart Factory Smart Infrastructur Software Compliance Software Update SolidWorks Steel Structure Design Structural Optimization sustainability sustainable design Sustainable Manufacturing team training guide time saving tools toolbar Troubleshooting Tutorial urban planning User Interface (UI) Vault Best Practices Vault Lifecycle Vault Mistakes vehicle modeling virtual reality visualization workflow VR VRED Water Infrastructure Water Management What’s New in Autodesk Workbook workflow Workflow Optimization Worksets Worksharing Workspace XLS Xref