Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Assign iProperty from Drop down Box in Forms

donnie.morris
Enthusiast

Assign iProperty from Drop down Box in Forms

donnie.morris
Enthusiast
Enthusiast

Ok, I'm certain this is easy but it seems to be escaping me.

 

I have a user parameter that consist of a multi-value list. I need this value to assign to a custom iProperty when selected from a form. 

 

I have the multi-value list created as well as the form but I can't make the form assign the vale once selected. 

 

Example, "User Parameter" = Export Class

"Export Class" is selectable from drop down box, "Customer, Vendor, Shop, Default"

 

"Export Class" should be populated once value is selected by the drop down box.

 

Thanks in advance

0 Likes
Reply
Accepted solutions (1)
325 Views
4 Replies
Replies (4)

blandb
Mentor
Mentor

Something like this:

 

MultiValue.SetList("Selector", "Customer", "Vendor", "Shop", "Default", "other")

Select Case Selector
Case "Customer"
	Parameter("user1") = "Export Class"
Case "Vendor"
	Parameter("user1") = "Export Class"
Case "Shop"
	Parameter("user1") = "Export Class"
Case "Default"
	Parameter("user1") = "Export Class"
Case "other"
	Parameter("user1") = ""
End Select
Autodesk Certified Professional
0 Likes

donnie.morris
Enthusiast
Enthusiast

Not quite what I'm looking for, maybe I didn't explain what I am looking for well.

 

Basically I have a form that looks like this:

donniemorris_0-1651607438379.png

 

I need the Export_Class drop down to assign the selection to a Custom iProperty called "Export Class:

donniemorris_1-1651608553656.png

 

0 Likes

A.Acheson
Mentor
Mentor

Unfortunately you cannot export a text parameter to an  iProperty. You will need to pass the parameter to the custom iProperty.

iProperties.Value("Custom", "Export_Class")= Export_Class 

 

AAcheson_0-1651611460139.png

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes

donnie.morris
Enthusiast
Enthusiast
Accepted solution

Figured it out, thanks for all the help.

 

oTrigger = Export_Class
InventorVb.DocumentUpdate()
iProperties.Value("Custom", "Export Class") = Export_Class
InventorVb.DocumentUpdate()
0 Likes