Page 1 of 1

bom - get file name and manipulate it

Posted: Mon Oct 29, 2018 3:40 pm
by AlexAS
Hello,
I'am trying to get a column in the draft BOM which has:
$filename_index

For example, if my file name is 5555 and I have ten components, I want to call each of them:

5555_01
5555_02
5555_03
.

But when I change the file *.bom like that:
NAME=FILE name
"DEF=<$filename|_|index>"
TYPE=STRING
ALIGN=LEFT
TITLE_ALIGN=LEFT
WIDTH=0.015
VISIBLE=YES
;

I do not get anything. Should I use one other command rather then $filename?

Otherwise I can create a new .lip file with the information I need, but still I do not find all I need on the LIP help (for example, it is not explained what is this command DWreadconfint and all other functions that I see in other LIP files, for example in C:\Missler\V617\d\table\alg\parts\bom\l dftcreate.lip which is the file to create BOM).
Thanks a lot!

Re: bom - get file name and manipulate it

Posted: Tue Oct 30, 2018 1:44 pm
by remi77
Hi

Did you try
:<$FILENAME|name> or <$FILENAME|name-index>
See you

Rémi :wink:

Re: bom - get file name and manipulate it

Posted: Tue Oct 30, 2018 2:58 pm
by AlexAS
Thanks for your reply Remi,
yes I tried all possible combinations of commands but no one is working (I'm using V6.17).
Do you know where I can create new commands for the Bom?
For example if I create a new LIP file which gets the file name, how can I put it as a possible command for the *.bom file?
Thanks

Re: bom - get file name and manipulate it

Posted: Tue Oct 30, 2018 7:13 pm
by olaio
Can you try this:

"DEF=<$filename><INDEX>"

Re: bom - get file name and manipulate it

Posted: Wed Oct 31, 2018 4:53 pm
by AlexAS
Actually is the command <$filename> that does not give results.
I think that there should be a different spelling or a different command to get the file name...

Re: bom - get file name and manipulate it

Posted: Sun Mar 24, 2019 11:11 am
by sinvia
Dear All,

I also need this tip. Anyone know this?

Thanks