Skip to main content
1-Visitor
May 15, 2015
Solved

how to give a name of exported dxf files automatically according to parameters

  • May 15, 2015
  • 1 reply
  • 4486 views

hello,

 

I would need a help with autoranaming exported dxf files according to two parameters.

The first part of the name would be name of the top level assembly (for ex.473-4445) and the second one a local parameter of the exported part (for ex. P1)

The full name of the exported dxf would be 473-4445_P1

 

Thanks for help in advance

 

T.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by MartinHanak

Tomas,

e:\users\hlavinkat\creo\config.pro must contain: bom_format E:\users\hlavinkat\creo\mybom.fmt

I made a mistake in previous Reply.

Because DESKA_ORBIT_ drawing is placed on sheet inside 473-4439.drw (assembly drawing), there is no simple method how to fulfil your request.

Automation would be possible, if separate DESKA_ORBIT_.drw exists for DESKA_ORBIT_.prt.

So we can "close" this Discussion.

Martin Hanak

1 reply

24-Ruby III
May 15, 2015

Tomas,

to be able to automate some activity, you have to be able to describe how do you do that activity manually.

In you case:

> How do you get assembly name ?

> How do you get parameter value ?

If you know the above information, you can use AutoIt/AutoHotkey to record manual steps.

Martin Hanak

thlavinka1-VisitorAuthor
1-Visitor
May 15, 2015

assembly name is a model name of top level assembly (pic1)

the parameter value is actually a bouble number made by integer and some extra symbols added (pic2, paremeter DXF_NAME)

the name of exported dxf should be 473-4439_P1 in this case

1.jpg

2.jpg

24-Ruby III
May 16, 2015

Tomas,

my guess about what you want to do is that:

  1. you want to open an assembly, for example 473-4439
  2. you want to export something to DXF format, for example DESKA_ORBIT_ part

Question: Which objects do you want to export ? Are you sure that they contain DXF_NAME parameter ?

Top assembly ?

All subassemblies ?

All parts ?

Question: Do you want to export 3D models into 3D DXF or their drawings into 2D DXF ?

Martin Hanak