Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
donnie.morris
327 Views, 4 Replies

Assign iProperty from Drop down Box in Forms

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

blandb
in reply to: donnie.morris

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
donnie.morris
in reply to: blandb

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

 

A.Acheson
in reply to: donnie.morris

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

Figured it out, thanks for all the help.

 

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