LoadImage_FromDxf


Loads data from a DXF file as an image.

Syntax

C++
C#
Python
 
def LoadImage_FromDxf(
	inDxfFile: str,
	outImage: Image,
	/,
	*,
	inScale: float = 10.0,
	inSize: Size | None = None,
	inBackgroundColor: Pixel = Pixel(0, 0, 0, 0),
	inLayersToDraw: list[str] | None = None
)
-> (
	outOrigin: Point2D,
	diagFileLayersNames: list[str]
)

Parameters

Name Type Range Default Description
Input value inDxfFile str
Input value inScale float 0.0 - 10.0 Scale (pixels per millimeter)
Input value inSize Size | None None Size of the output image. Scaled entities from file will be centered on image
Input value inBackgroundColor Pixel Pixel(0, 0, 0, 0)
Input value inLayersToDraw list[str] | None None Names of layers to draw. Names of all layers are available at the 'diagFileLayersNames' output
Output value outOrigin Point2D Location of the origin from DXF on 'outImage'
Output value outImage Image Output image
Diagnostic input diagFileLayersNames list[str] Names of all layers in DXF file