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 | |
|---|---|---|---|---|---|
![]() |
inDxfFile | str | |||
![]() |
inScale | float | 0.0 - ![]() |
10.0 | Scale (pixels per millimeter) |
![]() |
inSize | Size | None | None | Size of the output image. Scaled entities from file will be centered on image | |
![]() |
inBackgroundColor | Pixel | Pixel(0, 0, 0, 0) | ||
![]() |
inLayersToDraw | list[str] | None | None | Names of layers to draw. Names of all layers are available at the 'diagFileLayersNames' output | |
![]() |
outOrigin | Point2D | Location of the origin from DXF on 'outImage' | ||
![]() |
outImage | Image | Output image | ||
![]() |
diagFileLayersNames | list[str] | Names of all layers in DXF file |




