Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Is there a way to create a 2D DXF of a part automatically?
We have a template with only 1 view with an orientation DXF. Now I would like to make a mapkey so automatically the drawing is created out of the part and also the drawing then is saved as DXF
Solved! Go to Solution.
Danny,
I created an example for you, see x1.zip file.
My testing procedure:
If you want to automate entering of drawing name, then you have to use combination of AutoIt(AutoHotkey)+trail file+mapkey.
Martin Hanak
Hello,
Try this:
mapkey $F2 ~ Command `ProCmdModelNew` ;~ Select `new` `Type` 1 `Drawing`;\
mapkey(continued) ~ Activate `new` `OK`;~ Activate `dwg_create` `psh_ok`;\
mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdExportPreview`
mapkey(continued) ~ Command `ProCmdDwgPubSetDeliverable` `DXF`;\
mapkey(continued) ~ Command `ProCmdDwgPubExport` ;~ Activate `file_saveas` `OK`;
Danny,
I created an example for you, see x1.zip file.
My testing procedure:
If you want to automate entering of drawing name, then you have to use combination of AutoIt(AutoHotkey)+trail file+mapkey.
Martin Hanak
Hi, it does not work 100% automaticly, becouse you have to set DXF view in model before.
I mostly need to create DXF of sheetmetal parts. 'I have to set up dxf view before. It is nice there is "Flat Pattern Preview" but I can't save that view.
Does somebody know how to create DXF of sheetmetal part 100% automaticly by mapkey in creo2?
Thanks
Can you share a sample part and the template you pretend to use to give it a try?
Jose
My template is same like from MartinHanak.
I need to define DXF view of sheetmetal part by mapkey without user input. The view is same like "Flat Pattern Preview".
It is possible?
Hi,
just little comment . Every "user defined procedure" which makes some repeated action easier requires rules defined and followed (fro example existence of DXF view in a model).
Martin Hanak