Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Color name with space is not accepted

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
chockalingam
615 Views, 2 Replies

Color name with space is not accepted

Hi,

When i added the choices for color as shown in image1.

 

The parameter dropdown is listed as in image 2.

 

Can any one guide me in providing values for choices.

 

 

Thanks

Chockalingam

 

 

2 REPLIES 2
Message 2 of 3
JackGregory
in reply to: chockalingam

I haven't looked into this in detail, but you can create a rule to build the choice list, and use %%EvalChoices to tell the system that the %%Choices string should be treated as a rule name to be evaluated instead of parsed as a list.  That way, you have more control over the list.

Message 3 of 3
AlexKorzun
in reply to: JackGregory

Hi

 

You can specify the comma separator in the %%ChoicesDelimiter annotation.

 

<%%Choices("C1 color,C2 color,C3 color"), %%ChoicesDelimiter(",")> _
Parameter Rule theColorOld As String = "C1 color"

 

The alternative way to deal with your problem is something similar to:

 

<%%Choices("%%availableColors"), %%EvalChoices("True")> _
Parameter Rule theColor As String = "C1 color"

Rule %%availableColors As List = {"C1 color", "C2 color", "C3 color"}

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report