Skip to main content
3-Newcomer
March 6, 2022
Solved

Automatically DXF exported

  • March 6, 2022
  • 1 reply
  • 1329 views

I have this problem: a cad model, a panel developed in sheet metal, with an opening in the center (a rectangular cut) with A and B dimensions. The model is parametric and is updated with a whole series of relations inserted. Obviously, this model is linked to a DRW for the creation of the DXF file for processing on the machines.
It is possible and how, from a listing from excel file or notepad file with the various dimensions of A and B, to launch a mapkey or a bach file that automatically makes the DXFs of the various panels "n" times as many as there are variants in the listing?

 
Best answer by MartinHanak

Hi,

simple OOTB solution does not exist.

You can generate trail file and play it.

How to get sample trail file:

  • start Creo
  • open part
  • modify A, B
  • regenerate
  • open drawing
  • export DXF
  • close drawing
  • close part
  • erase all
  • exit session

Now you can open trail file in Notepad and look for A value, B value, DXF filename.

 

To get batch trail file:

  • remove the end of sample trail file
    • begin with !Command ProCmdOSExit was pushed from the software. line
  • put first two lines from sample trail file into batch trail file
  • repeat other lines from sample trail file (place individual values into every copy)
  • when finished start Creo and play batch trail file

 

1 reply

24-Ruby III
March 7, 2022

Hi,

simple OOTB solution does not exist.

You can generate trail file and play it.

How to get sample trail file:

  • start Creo
  • open part
  • modify A, B
  • regenerate
  • open drawing
  • export DXF
  • close drawing
  • close part
  • erase all
  • exit session

Now you can open trail file in Notepad and look for A value, B value, DXF filename.

 

To get batch trail file:

  • remove the end of sample trail file
    • begin with !Command ProCmdOSExit was pushed from the software. line
  • put first two lines from sample trail file into batch trail file
  • repeat other lines from sample trail file (place individual values into every copy)
  • when finished start Creo and play batch trail file