cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

what can I do to creating model name one by one at the project subassemblies in afx/equipments

ptc-5926617
1-Visitor

what can I do to creating model name one by one at the project subassemblies in afx/equipments

Hi,

AFX should be establish the project name and support the named parts/assemblies one by one

but there is a large problem in efx/equipments.

11.jpg

project_name=1420 ,

the named stair assemlby: NF1420_STAIR_1_1

the named stair parts: NF1420_ U_BEAM_1_L1_1 ,and so on;

So I can create the element_name.txt in \efx\parts\equipment\steel_construction_mm\stairs ,

The content :PROJECT_SHORT#_#ELEMENT_NUMBER

22.jpg

now

project_name=1420 ,

the named stair assemlby: NF1420_1;

the named stair parts: NF1420_ 2;

NF1420_3 ,and so on;

These named parts/assemblies are not my named code;

so I need a named code ,for example:

project_name=1420 ,

the named stair assemlby: NF1420_1;

the named stair parts: NF1420_ 1-1;

NF1420_1-2 ,and so on;

I need help from buw and tell me the named code .

THANKS !

12 REPLIES 12

Hello,

seems the only thing you are missing is to replace the "_" by a "-". If this is correct just replace

#_# by #-# in file element_name.txt

Stefan

hello,stefan

You still haven't answered my question.

These are correct by used "_"or"-" in file element_name.txt

there are no problem,look at the picture above.

how to create the named code one by one in afx/equipments.file ?

Hello,

you can put

SUBASSEMBLY_NAME#-#ELEMENT_NUMBER

into element_name.txt and set option , but then the files will be named like

NF1420-1-2

I do not know in what cases you make "-" and in what cases you make "_" between the numbers

Stefan

hello,

these are very good now .

1.when I set the element SUBASSEMBLY_NAME#_#ELEMENT_NUMBERQQ%E5%9B%BE%E7%89%8720140702183944.jpg

2.when I set the element SUBASSEMBLY_NAME#-#ELEMENT_NUMBER

QQ%E5%9B%BE%E7%89%8720140702184020.jpg

Usually, we are used to design a assembly by "_",

so we are used to design a part by "-",

now we hope to create the code of model tree

for example:

project_name=NF1500_1 ,

the named stair assemlby: NF1500_1_1;and so on

but the named stair parts: NF1500_1_1-1;

NF1500_1-1-2 ,and so on;

Stefan, Can we do it ?

Thanks you very much!


Hello,

you can have different element_name.txt files for parts and assemblies.

Besides the file element_name.txt create a file element_name_asm.txt which contains different naming scheme.

Then AFX will use element_name.txt for naming parts and element_name_asm.txt for naming assemblies.

Maybe this helps

Stefan

Thanks,Stefan

The naming scheme is very perfect!

I set the element_name_asm.txt "PROJECT_SHORT#_#ELEMENT_NUMBER“

yet set the element_name.txt "SUBASSEMBLY_NAME#-#ELEMENT_NUMBER“

now create QQ%E5%9B%BE%E7%89%8720140702213646.jpgthe naming model tree.

but when I set the element_name_asm.txt "SUBASSEMBLY_NAME#-#ELEMENT_NUMBER

yet set the element_name.txt "SUBASSEMBLY_NAME#-#ELEMENT_NUMBER“,

so to create the same naming model tree!

Are these difference between two naming element.txt ?


hi,stefan

I set the element_name_asm.txt "PROJECT_SHORT#_#ELEMENT_NUMBER“

yet set the element_name.txt "SUBASSEMBLY_NAME#-#ELEMENT_NUMBER“

But this naming scheme is only for one assembly

If we can establish a assembly contain some subassemlies and some parts.

For example:

project_name=NF1600

the first named assembly: NF1600_1

the second named assebly: NF1600_2

and so on ……

but the first assembly:NF1600_1 contains some subassemlies and some parts.

the first named subassembly : NF1600_1_1

the second named subassembly : NF1600_1_2

and so on ……

also the first assembly have some parts

the first named part: NF1600_1-1, [ belong to the first assembly:NF1600_1 ]

the second named part: NF1600_1-2, [ belong to the first assembly:NF1600_1 ]

can we do to creating this naming scheme ?

THANKS!

please try to set element_name_asm.txt to

SUBASSEMBLY_NAME#_#ELEMENT_NUMBER

Stefan

11.jpg

now I set a assembly in the file D:\Program Files\PTC\Creo 2.0\Common Files\M100\efx\parts\equipment\steel_construction_mm\steel_design\nf1210_1_30gg.asm

This assembly contains some subassemblies,and these subassemblies contains some sub-subassemblies and some part.

I set the element_name.txt "SUBASSEMBLY_NAME#-#ELEMENT_NUMBER“ in the file.

The naming scheme is now appearing in the picture above.

how to do it?

thank you,stefan


sorry, I do not understand

- what you mean by "now I set a assembly in the file D:\Program Files\PTC\Creo 2.0\Common Files\M100\efx\parts\equipment\steel_construction_mm\steel_design\nf1210_1_30gg"

- what assembly the model tree shows

- in what folders you set the element_name.txt and element_name_asm.txt

=> I need more detailed information to check what exactly you want to do

Stefan

1.jpg

I set a assembly in the file D:\Program Files\PTC\Creo 2.0\Common Files\M100\efx\parts\equipment\steel_construction_mm\steel_design\nf1210_1_30gg.asm

the model tree of this assembly shows as the picture

project_name=NF1210_1_30GG

the first named assembly: NF1210_1_30GG_1

the second named assebly: NF1210_1_30GG_2

and so on ……

but the second assembly:NF1210_1_30GG_2 contains some subassemlies and some parts.

the first named subassembly : NF1210_1_30GG_2_1

the parts of the first named subassembly: NF1210_1_30GG_2_1-1

NF1210_1_30GG_2_1-2

NF1210_1_30GG_2_1-3

the first named part : NF1210_1_30GG_2-1 [ belong to NF1210_1_30GG_2 ]

the second named part : NF1210_1_30GG_2-2 [ belong to NF1210_1_30GG_2 ]

and so on ……

I set the element_name.txt and element_name_asm.txt in this file D:\Program Files\PTC\Creo 2.0\Common Files\M100\efx\parts\equipment\steel_construction_mm\steel_design

I use the element_name_asm.txt for assemlies ( set the code:SUBASSEMBLY_NAME#_#ELEMENT_NUMBER )

yes ues the element_name.txt for parts (set the code:SUBASSEMBLY_NAME#-#ELEMENT_NUMBER )

I am used to the character "_" for assemlies and used to the character "-" for parts.

can we establish this naming scheme?


I think you need to send me your models and all other files required to see the issue here on my computer for further investigation. If you send data to see the problem to stefan@buw-soft.de then I will do further investigations

Stefan

Top Tags