Back to Blog
Vba expected named parameter5/30/2023 ![]() ![]() Parameter(XX) = InputBox("Set Value for " & XX, "Unofficial Inventor - " & XX, Parameter(XX)) If XX = "" Then : Return : End If ' Error handling for null selection XX = InputListBox("User Paramters", oCSB, oCSB, Title := "Unofficial Inventor", ListName := "Select a User Parameter From the List") OCSB.Add(Item.Name) '2nd Option - Just the Parameter names, no values UserParam = .UserParametersįor Each Item In UserParam 'Write Paramters to Array Here is the code: 'iLogic code by Clint Brown originally posted at ĭim oCSB As New ArrayList 'Create an Arrayĭim UserParam As UserParameters 'Get the Parameters When the user selects a parameter, the code presents an “InputBox” with the current value, this can be changed as desired, the interface looks like the images above. The code adds all user parameters to an Array, which it then presents to the user in the form of an “InputListBox”. It’s pretty simple, but really effective. ![]() I saw a forum post in the Inventor Customisation forum and I thought I should share some iLogic code that I use for the getting and setting user parameters.
0 Comments
Read More
Leave a Reply. |