IFC Zeichnungen
Contents
[
Hide
]Exportieren des IFC-Formats nach PNG
Aspose.CAD für Python ermöglicht Entwicklern, eine IFC Datei in PNG zu exportieren. Im Folgenden wird der Code demonstriert, der zeigt, wie man auf die IFC-Datei zugreift und diese mit CadRasterizationOptions und PngOptions in PNG umwandelt.
Beispielcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.cad as cad; | |
cadImage = cad.Image.load("file.ifc"); | |
rasterizationOptions = cad.imageoptions.CadRasterizationOptions() | |
rasterizationOptions.page_width = 1200 | |
rasterizationOptions.page_height = 1200 | |
pdfOptions = cad.imageoptions.PdfOptions() | |
pdfOptions.vector_rasterization_options = rasterizationOptions | |
cadImage.save("result.pdf", pdfOptions) |