Back to Browse

iLogic Lesson #1: Creating Multi Value Lists Using Arrays

9.1K views
Aug 23, 2020
7:09

Any questions leave them down below and I'll get to responding to them Automation Examples: https://www.youtube.com/playlist?list=PLQVQ8nYBZdlNCg4u_JH9cAAK9akHSgV3U About Design Automation Solutions: We create CAD solutions to reduce engineering hours. Contact: email: [email protected] LinkedIn: https://www.linkedin.com/in/5428086/ This YouTube Channel and Design Automation Solutions LLC. is not affiliated with Autodesk or Autodesk Inventor. Simple tutorial to create a multi value list parameter using iLogic for beginners. If you have any questions, please leave a comment down below. The final code is pasted down below: Dim oDoc As Document = ThisApplication.ActiveDocument 'Dim List As New ArrayList 'List.Add("20 in") 'List.Add("40 in") 'List.Add("60 in") 'List.Add("80 in") 'List.Add("100 in") Dim List() As String = {"Yellow", "Cyan", "Red"} Dim ParamName As String = "Colors" Dim oComp As PartComponentDefinition = oDoc.ComponentDefinition Dim oUPs As UserParameters = oComp.Parameters.UserParameters Dim oUP As UserParameter Try Test = oUPs.Item(ParamName).Value Catch oUP = oUPs.AddByValue(ParamName, List(1), UnitsTypeEnum.kTextUnits) End Try MultiValue.List(ParamName) = List

Download

0 formats

No download links available.

iLogic Lesson #1: Creating Multi Value Lists Using Arrays | NatokHD