Date: Thu, 28 Mar 2024 11:32:18 -0700 (PDT) Message-ID: <2119325998.285.1711650738935@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_284_1110810131.1711650738934" ------=_Part_284_1110810131.1711650738934 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Exports the sketch to an EMF file.
Send_Message(OLECt= rlEntID, "OLE.MakeMetafile", FilePath, SupportPDF)
Parameter | Description |
---|---|
FilePath | The path and filename of the metafile to be crea= ted |
SupportPDF | A flag indicating that the metafile needs to wor= k in a PDF |
The MakeMetaFile method exports the sketch to an EMF image. Metafiles ar= e vector images, as opposed to raster images like bitmaps. Vector images sc= ale to the current resolution of the device and can be very useful when pri= nting.
Unfortunately, metafiles don't play nicely within PDFs unless each of th= e objects have backgrounds. If you plan to embed the metafile in a PDF, the= n you need to set the SupportPDF parameter to 1. The res= ult of giving all sketch objects backgrounds preserves aspect ratio within = a PDF at the expense of objects blocking other objects. Thus, it's best to = set the SupportPDF parameter to 0 whenever possible.
// Export a metafi= le Send_Message(@Window:".OLE_SKETCH", "OLE.MakeMetaFile", "Sketch.emf", 0) // Export a metafile supporting PDF Send_Message(@Window:".OLE_SKETCH", "OLE.MakeMetaFile", "SketchForPDF.emf",= 1)