Cancel
Showing results for 
Search instead for 
Did you mean: 

Parts List - Show part numbers not version

Creator
Creator

Hi all,

 

I have run into a problem with NX at my work,

 

for reference we use NX11

 

We save our part numbers with the following layout "12345 - 1"

 

I would like to to only display "12345"

 

The first section "12345" is the part number, then there is a space and we add in the revsion numbers.

 

For our overall assembly files it is easier for our operators to only see the part number, not it's latest revision number.

 

The value for the field is pulled through the expression: <W$=@$PART_NAME>

 

I hope to be able to use something like splitstring function to tell Nx to stop filling the field h=when it gets to the first space.

 

Has anyone done anything similar/ have any suggestions?

 

Cheers all

 

NotKevin

4 REPLIES 4

Re: Parts List - Show part numbers not version

Siemens Phenom Siemens Phenom
Siemens Phenom
Hi ,
Try 'substring' function. For example:
substring(′ABC′, 2, 3) → ′BC′
Hope it helps.
Thanks,
Amol

Re: Parts List - Show part numbers not version

Creator
Creator

Hi Amol,
How would you go about structuring this in the parts list?
Thanks,
NK

Re: Parts List - Show part numbers not version

Siemens Esteemed Contributor Siemens Esteemed Contributor
Siemens Esteemed Contributor

There are probably a couple of workarounds to this, including using the substring expression function to truncate the filename and push that back into the component as an attribute, or enter the string you want to display as a COMPONENT_NAME attribute on each component and use that attribute to drive the Parts List column.  The ideal solution is to implement Part Name Versions.  This would allow you to simply use the "$PART_NAME_CORE" system attribute for the column in the Parts List but does require an understanding of regular expressions:

 

Screenshot - 5_15_2019 , 11_07_05 AM.png

Ben Broad | PLM Enthusiast | Siemens GCSS

NX (v17 - 1872) | Teamcenter (9 - 12)
Value Based Licensing | Adaptive UI | BETA Registration

Re: Parts List - Show part numbers not version

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @NotKevin ,

 

I've created a journal which will create 2 expressions and a attribute (named PartName) in each component which will be used in Parts List. Have tested in Native NX.

 

Just change extension of attached file to .vb and run it when assembly is active.

 

(view in My Videos)

Regards,
Samadhan

GTAC | NX Help: NX1102 | NX1202 | NX1847
Please mark post as an "Accepted Solution", if it answers your question/is more helpful!