|
Welcome to the COE Discussion Forum!
|
|
|
|
To participate in the discussion forum, you must be logged in to the website. If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.
If you are new to the COE Discussion Forum and would like to participate, please register.
|
|
| Register Today |
| COE 2009 Annual PLM Conference & TechniFair |
 |
|
 |
| You are not authorized to post a reply.
|
|
| Author |
Messages |
|
COE-FORUM-USER
 |
| 02 Aug 2001 08:30 AM |
|
I try to create a macro to perform the "save As" command (for example to save a drawing as PDF). The method "SaveAs" of the object "Document" perform only a rename but the type of the document is the same. The method "ExportData" not work and an error appears using the sintax of the documentation (if I understand the right use...). Any suggestion for this task?
Thanks
Author: Enrico Ceresole |
|
|
|
|
COE-FORUM-USER
 |
| 15 Aug 2001 04:52 PM |
|
Set drawingDocument1 = CATIA.ActiveDocument
mdoc = mfile + "\tmp\Piston.dxf"
drawingDocument1.ExportData mdoc, "dxf"
where mdoc is just the fully qualified filename for the output file
Phil Harrison
LionHeart Solutions
COE President
Author: Phil Harrison |
|
|
|
|
COE-FORUM-USER
 |
| 17 Oct 2001 01:29 AM |
|
Hi,
try CATIA.ActiveDocument.ExportData "C:\folder\filenamewithoutextension", "pdf"
For example, if you have a drawing, named Drawing.CATDrawing, use CATIA.ActiveDocument.ExportData "C:\temp\Drawing", "pdf"
I've tried it, and it works.
Meeri Pyrstöjärvi
Author: Meeri Pyrstöjärvi |
|
|
|
|
COE-FORUM-USER
 |
| 30 Aug 2002 09:05 AM |
|
Hi Phil,
We are trying to acheive the same result using the C++ interface - Can you be any help with this?
regards
Gary
Author: Gary Wood |
|
|
|
|
COE-FORUM-USER
 |
| 04 Sep 2002 05:32 AM |
|
Hi Gary,
your problem was already reported to Dassault Systems but it is not yet completely fixed.
Here is the statement from Dassault (APAR HC82728):
PROBLEM SUMMARY:
SAVE AS DXF / DWG FORMAT USING A CAA BATCH LEADS A CORE DUMP
PROBLEM CONCLUSION:
THIS PROBLEM WILL BE FIXED ON
CATIA VERSION 5 RELEASE 8 GA level.
NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R7SP03.
.
THE CORE DUMP PROBLEM HAS BEEN SOLVED. HOWEVER SOME
FUNCTIONNALITY FOR A FULL SAVE AS THROUGH A CAA BATCH ARE STILL
MISSING. THE REASON IS THAT DXF EXPORT IS ONLY GRAPHIC AND USE
AN API NOT AVAILABLE EASILY FOR A CAA BATCH. THE ONLY BY PASS
IS TO USE A VB-SCRIPT WHICH WILL BE ABLE TO EXPORT/IMPORT
DXF/DWG FILE. THIS METHOD IS USED FOR THE INDUSTRIAL TEST. AN
IMPROVMENT FOR THE CAA BACTH IS PLANNED FOR THE RELASE 9.
regards
Albert
Author: Albert Funk |
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.6
|
|
|
|