Quantcast
Channel: PTC Community : Unanswered Discussions - Modeling
Viewing all articles
Browse latest Browse all 2891

how to add custom parameters to BOM (global), truncate Part name

$
0
0

Hi,

 

I've started to work with automatic BOMs and I'm struggling to list part name and part number.

 

our components are named as follows:

 

P00XXXX_PartName

 

Now, by adding the following relation in the assembly drawing (repeat region, relations):

 

Part_number = EXTRACT(asm_mbr_name,1,7)

 

I was able to add Part_number under a part number column to just get the P00XXXX portion (rpt > rel.. > user defined)

 

I then added 2 more relations:

actual_length = STRING_LENGTH(asm_mbr_name)

Part_name = EXTRACT(asm_mbr_name,8,actual_length)

 

and then tried to add Part_name to a part name column (rpt > rel.. > user defined) but that then everything disappears in the table.

 

Also, this just seems to add it locally, to the current drawing. how can I add relations/parameters that can be used in all drawings etc?

 

Any hints are greatly appreciated.

 

Thanks,

Andreas


Viewing all articles
Browse latest Browse all 2891

Trending Articles