Back to FabImage Library website

You are here: Start » Function Reference » System » Interoperability » LoadEntities_FromDxf

LoadEntities_FromDxf


Header: FIL.h
Namespace: fil
Module: FoundationPro

Loads entities from a DXF file as an array of point arrays.

Syntax

C++
C#
 
void fil::LoadEntities_FromDxf
(
	const ftl::File& inDxfFile,
	const float inScale,
	ftl::Optional<const ftl::Array<ftl::String> &> inLayersToDraw,
	fil::Point2D& outOrigin,
	ftl::Array<ftl::Array<fil::Point2D> >& outEntities,
	ftl::Array<ftl::String>& diagFileLayersNames
)

Parameters

Name Type Range Default Description
Input value inDxfFile const File&
Input value inScale const float 0.0 - 10.0f Scale (pixels per millimeter)
Input value inLayersToDraw Optional<const Array<String> &> NIL 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 outEntities Array<Array<Point2D> >&
Diagnostic input diagFileLayersNames Array<String>& Names of all layers in DXF file