Automatically composing a reference of a library component

Hello

 

I want to create a library component whose reference is composed first of an alpha-numeric code (e.g. 301625L) and then an additional length (e.g. 1500 mm). I would therefore like to retrieve the complete reference (e.g. 301625L1500) automatically so that it can be included in the assembly BOMs.

Thank you in advance for your attention to my request.

Rémi S.

 

Hello

An example attached under SW13.

The "Reference" property is a text whose value is: $PRP:"SW-File Name""D1@Boss.-Extru.1@301625L.SLDPRT".

The D1@Boss.-Extru.1@301625L.SLDPRT being the 1500mm rib.


301625l.sldprt
2 Likes

With image.


screenshot1873.jpg
2 Likes

If you don't want to use the part name, but another property for the beginning of the reference, you can type as a value: $PRP:"Base_référence""D1@Boss.-Extru.1@301625L. SLDPRT"


screenshot1875.jpg
2 Likes

Thank you, it works perfectly.

 

Have a nice day

1 Like

Yes, that's what I did indeed, I had already diverted your initial answer a little bit.

You're welcome, remember to close your question with the answer that seems most appropriate to you.

See you soon:)