bom - get file name and manipulate it

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

Moderators: remi77, Daniel, jacs

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

bom - get file name and manipulate it

Post by AlexAS » Mon Oct 29, 2018 3:40 pm

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: 258
Joined: Thu Feb 22, 2007 10:05 am
Contact:

Re: bom - get file name and manipulate it

Post by remi77 » Tue Oct 30, 2018 1:44 pm

Hi

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

Rémi :wink:
Thanks to tag your topic as solved Image when you've got the solution.

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

Re: bom - get file name and manipulate it

Post by AlexAS » Tue Oct 30, 2018 2:58 pm

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
Volunteer Cadet
Volunteer Cadet
Posts: 178
Joined: Thu Mar 01, 2007 11:42 am
Location: Leiria

Re: bom - get file name and manipulate it

Post by olaio » Tue Oct 30, 2018 7:13 pm

Can you try this:

"DEF=<$filename><INDEX>"

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

Re: bom - get file name and manipulate it

Post by AlexAS » Wed Oct 31, 2018 4:53 pm

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...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest