Cancel
Showing results for 
Search instead for 
Did you mean: 

Product System Template - Making List of Choices work for length?

Experimenter
Experimenter

Hello. I'm trying to make an expression defining the length of an extrude to be decided by a List of Choices PTS entry. Trying to make a list of different length values (see pic), does not work. (Neither trying to write 1200mm 1000mm etc.). When I enter 1200 1000 800 or 600 as a list entry in the PTS, the expression value is changed to 1 (most likely meaning NX does not understand the list entry, redefining it as 1 becuase N/A information).

 

As I've understood from the courses about PTS, the List of Choices is mainly for referring parts, but is it possible to make List of Choices work in the PTS for length values?

 

Screen Shot 2017-05-10 at 10.49.53 AM.png

3 REPLIES

Re: Product System Template - Making List of Choices work for length?

Siemens Honored Contributor Siemens Honored Contributor
Siemens Honored Contributor

Hi @27POP27,

 

Try chaning the Return type from "Return the index" to "Return the index value".

 

Screenshot - 5_10_2017 , 8_51_28 AM.png

 

Regards, Ben

Re: Product System Template - Making List of Choices work for length?

Experimenter
Experimenter

Awesome. Thanks. That worked. 

 

Bonus question: Is it possible to give it a [mm] unit behind the number? (Either in the actual list values, or behind (to the right) of the list field?

Re: Product System Template - Making List of Choices work for length?

Siemens Honored Contributor Siemens Honored Contributor
Siemens Honored Contributor

 

Is it possible to give it a [mm] unit behind the number?

 I don't believe so.  I would either display it after the description of the value as "(mm)", or you can use the expression syntax "mm (xx.x)":

 

Screenshot - 5_11_2017 , 7_46_26 AM.png

 

Regards, Ben