bom - get file name and manipulate it

Drawing, bill of material, 2D design, dimensioning, labeling, tolerances, symbols, title blocks...

Moderators: remi77, jacs, Daniel

AlexAS
Private First Class
Private First Class
Posts: 11
Joined: Mon Sep 24, 2018 6:25 pm
TopSolid Module: TopSolid'Progress
TopSolid Version: 6.17

bom - get file name and manipulate it

Unread post 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!
User avatar
remi77
Administator
Administator
Posts: 348
Joined: Thu Feb 22, 2007 10:05 am
Contact:

Re: bom - get file name and manipulate it

Unread post by remi77 »

Hi

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

Rémi :wink:
Thanks to use the Image on the best answer when you've got the solution.
AlexAS
Private First Class
Private First Class
Posts: 11
Joined: Mon Sep 24, 2018 6:25 pm
TopSolid Module: TopSolid'Progress
TopSolid Version: 6.17

Re: bom - get file name and manipulate it

Unread post 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
User avatar
olaio
Second Officer Cadet
Second Officer Cadet
Posts: 194
Joined: Thu Mar 01, 2007 11:42 am
Answers: 2
Location: Leiria

Re: bom - get file name and manipulate it

Unread post by olaio »

Can you try this:

"DEF=<$filename><INDEX>"
AlexAS
Private First Class
Private First Class
Posts: 11
Joined: Mon Sep 24, 2018 6:25 pm
TopSolid Module: TopSolid'Progress
TopSolid Version: 6.17

Re: bom - get file name and manipulate it

Unread post 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...
sinvia
Sergeant
Sergeant
Posts: 61
Joined: Sun Apr 24, 2016 5:34 pm
Answers: 1
TopSolid Module: TopSolid'Steel
TopSolid Version: 6.21

Re: bom - get file name and manipulate it

Unread post by sinvia »

Dear All,

I also need this tip. Anyone know this?

Thanks
Post Reply