Quantcast
Channel: PTC Community: Message List - Creo
Viewing all articles
Browse latest Browse all 11377

Re: Can you create a drop down list for parameters in Creo?

$
0
0

You can use a restriction definition file to do that:

 

First step: Create a new text file, you can copy this text and change it to meet your needs:

 

ND_ParamDefArr_K01 = {

{ Name = color_1

  Type = string

  Default = 'blue_new'

  Enum = { 'red_new', 'green_new', 'blue_new' }

},

{ Name = color_2

  Type = string

..Default = 'white_new'

..! DEFAULT IS WHITE_NEW

..Enum = { 'yellow_new', 'white_new', 'black_new' }

},

!!! ADD MORE RESTRICTED VALUE PARAMS HERE

}

 

 

This example has two parameters ("Color_1" and "Color_2")  with three items.

 

Second step: Add this option to your config.pro:

 

restricted_val_definition c:\Creo_startin\rest_parameters.txt

 

Change the path to match your file.


Viewing all articles
Browse latest Browse all 11377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>