ImageGear .NET
DXF
Full Name DXF (AutoDesk AutoCAD)
Format ID ImGearFormats.DXF
File Extension(s) *.dxf
Data Type Vector/CAD image
Data Encoding Binary
Multi-Page Support No
Alpha Channel Support No
Metadata Update Support No
ImageGear Platforms Support Win32, Win64, .NET, .NET64
DXF format requires ImageGear.Vector Namespace.

ImageGear Supported Versions

ImageGear Supported Features

ImageGear Read Support

ImageGear Write Support

ImageGear Filter Control Parameters

Filter Control Parameter Type Default Value Available Values Description
BackColor Long 0 Any positive value This parameter is used to set background color. If nBackGroundColor=0, then a black background color is set, otherwise a white background color is set.
Width Long 512 Any positive value Defines the DIB width of the loaded image. The DIB height is calculated using the file's scale factors.
FontPath String "" Any string up to 262 characters Defines a path to the vector font files. Format - <Path1>;< Path2>;... .
Password String "" Any string up to 262 characters Used to set password for encrypted files before reading.
Version String ACAD2004
  • ACAD12
  • ACAD13
  • ACAD14
  • ACAD2000
  • ACAD2004
  • ACAD2007
  • ACAD2010
  • ACAD2013
Used to specify version to save the file as.
ShowHidden Boolean False True, False If true, hidden layers are shown by default.

Comments

DXF is an AutoDesk graphics format (Drawing eXchange Format). Most CAD programs (PC-based) support this format. Compared to DWG, it is simpler and more broadly supported among different software.

DWG/DXF Elements Supported for Reading

CAD Element

Supported Attributes

Imported into ImageGear as:

VIEWPORT

Center point

Width

Height

View target

View direction

Frozen layers

Non-rectangle clipping

ImGearVectEntities.VIEWPORT entity.

LINE

Start point

End point

Draw color

Line type

Line weight

ImGearVectEntities.EASYLINE entity.

2D Simple polyline

Vertices

Draw color

Line type

Start width

ImGearVectEntities.POLYLINE entity.

2D Quadratic spline

Vertices

Draw color

Line type

Start width

ImGearVectEntities.BEZIER_CURVE entity, interpolated as Bezier with degree=2.

2D Cubic spline

Vertices

Draw color

Line type

Start width

ImGearVectEntities.BEZIER_CURVE entity, interpolated as Bezier with degree=3.

2D Fit polyline

Vertices

Draw color

Line type

Start width

ImGearVectEntities.BEZIER_CURVE entity, interpolated as cubic B-spline.

3D Simple polyline

Vertices

Draw color

Line type

Line weight

ImGearVectEntities.POLYLINE entity.

3D Quadratic spline

Vertices

Draw color

Line type

Line weight

ImGearVectEntities.BEZIER_CURVE entity, interpolated as Bezier with degree=2.

3D Cubic spline

Vertices

Draw color

Line type

Line weight

ImGearVectEntities.BEZIER_CURVE entity, interpolated as Bezier with degree=3.

Polyface mesh (if contains faces)

Draw color

Line type

Fill color

Fill type

ImGearVectEntities.SHELL entity.

The entity contains the result of breaking the polyface into simple objects such as vertices, edges, faces, etc.

Polyface mesh (if does not contain faces)

Draw color

Line type

Line weight

Hidden vertices

ImGearVectEntities.POLYLINE entity.

Block reference

Scale

Position

Orientation

Draw color

Fill color

Line type

Fill type

ImGearVectEntities.INSERTION entity.

Spline

Knots

Vertices (weights are supported)

Draw color

Line type

ImGearVectEntities.NURBS_CURVE entity.

Ellipse

Orientation

Major axe

Ratio

Start angle

End angle

Center

Draw color

Line type

Line weight

ImGearVectEntities.ARC entity.

Solid

Points [0…3]

Draw color

Line type

Fill color

Fill type

Thickness

ImGearVectEntities.SOLID entity.

Trace

Points [0…3]

Draw color

Line type

Fill color

Fill type

Thickness

ImGearVectEntities.SOLID entity.

3D solid

Draw color

Line type

Fill color

Fill type

ImGearVectEntities.SHELL entity.

The entity contains the result of breaking the polyface into simple objects such as vertices, edges, faces, etc.

Polyline (don’t confuse with 2D polyline and 3D polyline)

Vertices (Bulge attribute is supported)

Draw color

Line type

Constant width

ImGearVectEntities.POLYLINE entity.

Hatch

Draw color

Line type

Fill color

Fill type

Gradient filling

Hatch lines

ImGearVectEntities.FIGURE entity.

Circle

Orientation

Center

Radius

Draw color

Line type

Line weight

ImGearVectEntities.ELLIPSE entity.

Region

Draw color

Line type

Fill color

Fill type

ImGearVectEntities.SHELL entity.

The entity contains the result of breaking the polyface into simple objects such as vertices, edges, faces, etc.

 

 

MText

Orientation

Text color

Location

Font

Font height

Font width factor

Underlined flag

ImGearVectEntities.BLOCK entity with several ImGearVectEntities.TEXT entities and ImGearVectEntities.INSERT that references this block.

Text

Orientation

Font

Italic

Weight

Font height

Font width factor

Text color

Underlined flag

Alignment

Position

Alignment point

ImGearVectEntities.TEXT entity.

Attribute

Orientation

Font

Italic

Weight

Font height

Font width factor

Text color

Underlined flag

Alignment

Position

Alignment point

ImGearVectEntities.TEXT entity.

Attribute definition

Orientation

Font

Italic

Weight

Font height

Font width factor

Text color

Underlined flag

Alignment

Position

Alignment point

ImGearVectEntities.TEXT entity.

Raster image

Units

File name

Image size

Image scale

Clip boundary

ImGearVectEntities.RASTER entity.

Face

Vertices

Draw color

Line type

ImGearVectEntities.POLYLINE entity.

Arc

Orientation

Center

Start angle

End angle

Radius

Draw color

Line type

Thickness

ImGearVectEntities.ARC entity.

Dimension

Block position

Draw color

Line type

Fill color

Fill type

ImGearVectEntities.INSERTION entity that references the existing block.

Leader

Arrow head

Vertices

Scale

Arrow head size

Reference box

Fill color

Fill type

Draw color

Line type

ImGearVectEntities.INSERTION and ImGearVectEntities.BLOCK with ImGearVectEntities.POLYLINE and ImGearVectEntities.SOLID entities inside it.

Tolerance

Location

Text

Size of the text

Draw color

Line type

Fill color

Different shape attributes of included entities

ImGearVectEntities.INSERTION and ImGearVectEntities.BLOCK with several entities inside it, such as ImGearVectEntities.TEXT, ImGearVectEntities.ELLIPSE, and so on.

Block table record

Draw color

Line type

Fill color

Fill type

ImGearVectEntities.BLOCK entity.

Viewport table record (don’t confuse with VIEWPORT entity)

View name

View content as a block

Direction

Target point

Twist (angle)

Clip distance

Background color

ImGearVectorView object.

ImageGear Vector Entities Supported for Writing to DWG and DXF Formats

ImageGear Entity or Object

Saved as DWG/DXF Element

ImGearVectEntities.BLOCK

Block table record.

ImGearVectEntities.INSERTION

Block reference.

ImGearVectEntities.EASYLINE

Line.

ImGearVectEntities.POLYLINE

Depending on fill type and vertex count:

ImGearVectEntities.POLYLINEEX

3D polyline for every contour. If non-zero fill type object is attached to the polyline, then a Hatch is created as well.

ImGearVectEntities.ELLIPSE

  • If the entity contains a draw color attribute, then Ellipse object is created.
  • If the entity references a fill type, then Hatch object is created.

ImGearVectEntities.ARC

  • If draw color is attached to the entity, then Ellipse object is created.
  • If non-zero fill type object is attached to the entity, then Hatch object is created.

ImGearVectEntities.TEXT

Several Text objects.

ImGearVectEntities.BEZIER_CURVE

  • If curve flag is set to ImGearVectNURBSFlags.MFIT, then 2D Fit polyline;
  • If Bezier degree is 2,  then 3D Quadratic spline;
  • If Bezier degree is 3, then 3D Cubic spline.

ImGearVectEntities.NURBS_CURVE

Spline.

ImGearVectEntities.EASY_SURFACE

Polygon mesh.

ImGearVectEntities.FIGURE

  • If the entity references a fill type, then hatch object is created.
  • If the entity references a line type, then internal entities are saved as Polyline objects using entity data cache.

ImGearVectEntities.RASTER

Raster image (saved to a separate raster file and referenced from the DWG/DXF file). Filename must be specified for the raster entity.

ImGearVectEntities.VIEWPORT

Viewport (don’t confuse with Viewport table record).

ImGearVectEntities.SHELL

If the entity contains only triangles and quadrilaterals then it is saved as polyface mesh. Otherwise, the entity is saved as line segments or region. 

ImGearVectEntities.SOLID

Solid.

ImGearVectEntities.GEOMETRY

If Fill type exists, then region; otherwise line segments.

ImGearVectorView

Viewport table record.

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback