Skip to content
Albert Domenech edited this page Jul 16, 2024 · 7 revisions

ACadSharp

ACadSharp 2.3.2-beta Library

C# library to read/write cad files like dxf/dwg.

Namespaces

Classes

Name Summary
ACadVersion Drawing format version.
CadDocument A CAD drawing
CadObject Represents an element in a CadDocument
[CadObjectCollection1](ACadSharp.CadObjectCollection1)
CadSummaryInfo
CadSystemVariable
CollectionChangedEventArgs
Color
DwgPreview
DwgReferenceType
DxfClassMap
DxfCode
DxfFileToken
DxfMap
DxfMapBase
DxfProperty
[DxfPropertyBase1](ACadSharp.DxfPropertyBase1)
DxfReferenceType Type of dxf reference
DxfSubclassMarker
ExtendedData
ExtendedDataDictionary
ExtendedDataRecord
FlowDirectionType
GroupCodeValue
GroupCodeValueType Group codes define the type of the associated value as an integer, a floating-point number, or a string, according to the following table of group code ranges.
IHandledCadObject Defines a CadObject with a unique handle
INamedCadObject Defines a CadObject with a unique name
[IObservableCollection1](ACadSharp.IObservableCollection1)
ISeqendCollection
LineSpacingStyle
LineweightType
MathUtils
MultiLeaderPathType Controls the way the leader is drawn.
ObjectType Some object types have fixed values, this enum contains the values for these objects.
OnNameChangedArgs
OrthographicType Orthographic type
RenderMode Viewport render mode
[SeqendCollection1](ACadSharp.SeqendCollection1) Represents a collection of ended by a entity
TextAlignmentType
TextAngleType
TextAttachmentDirectionType
TextAttachmentPointType
TextAttachmentType Text attachment type, controls how the text label of a is to placed
relative to the landing point.
Transparency

Classes

Name Summary
CadSystemVariableAttribute
DxfCodeValueAttribute
DxfNameAttribute Mark the class as a dxf class equivalent
DxfSubClassAttribute Mark the class as a dxf class equivalent
ICodeValueAttribute

Classes

Name Summary
Block Represents a entity
BlockEnd Represents a entity
BlockTypeFlags Block-type flags (bit-coded values, may be combined).

Classes

Name Summary
DxfClass
DxfClassCollection
ProxyFlags

Classes

Name Summary
Arc Represents a entity.
AttachmentPointType Attachment point for Multiline text.
AttributeBase Common base class for and .
AttributeDefinition Represents a entity.
AttributeEntity Represents a entity.
AttributeFlags Attribute flags.
AttributeType
BackgroundFillFlags Represents a background fill flags
BlockContentConnectionType The values of this enum indicate how the multileader connects to the content block.
BoundaryPathFlags Defines the boundary path type of the hatch.
CadImageBase
Circle Represents a entity.
ClipMode Represents the clip mode.
ClipType Clipping boundary type
ColumnType Represents the type of columns.
Dimension Represents a entity.
DimensionAligned Represents a entity.
DimensionAngular2Line Represents a entity.
DimensionAngular3Pt Represents a entity.
DimensionDiameter Represents a entity.
DimensionLinear Represents a entity.
DimensionOrdinate Represents a entity.
DimensionRadius Represents a entity.
DimensionType Dimension type
DrawingDirectionType Multiline text drawing direction.
Ellipse Represents a entity.
Entity The standard class for a basic CAD entity or a graphical object.
Face3D Represents a entity.
GradientColor
Hatch Represents a entity.
HatchGradientPattern
HatchPattern
HatchPatternType Hatch pattern fill type.
HatchStyleType Hatch pattern style.
IEntity
ImageDisplayFlags
Insert Represents a entity.
InvisibleEdgeFlags Defines which edges are hidden.
IPolyline
IText Common interface for all text entities in the drawing.
IVertex
KnotParameterization Knot parameterization
Leader Represents a entity.
LeaderCreationType Leader creation type
LeaderPathType Controls the way the leader is drawn.
LightingType Represents lighting type.
Line Represents a entity.
LineSpacingStyleType Line spacing style for Multiline text and Dimensions.
LwPolyline Represents a entity
LwPolylineFlags Polyline flag (bit-coded)
Mesh Represents a entity.
MLine Represents a entity.
MLineFlags Flags (bit-coded values)
MLineJustification Justification
MText Represents a entity.
MultiLeader Represents a entity.
MultiLeaderPropertyOverrideFlags
Point Represents a entity.
PolyfaceMesh Represents a entity.
Polyline Represents a entity
Polyline2D Represents a entity.
Polyline3D Represents a entity.
PolylineFlags Defines the polyline flags.
RasterImage Represents a entity.
Ray Represents a entity.
Seqend Represents a entity
ShadowMode
Shape Represents a entity.
SmoothSurfaceType Curves and smooth surface type.
Solid Represents a entity.
Solid3D Represents a entity.
Spline Represents a entity.
SplineFlags Defines the spline flags
SplineFlags1 Defines the spline flags 1
TextEntity Represents a
TextHorizontalAlignment
TextMirrorFlag
TextVerticalAlignmentType Text vertical justification.
Tolerance Represents a entity.
UnknownEntity Class that holds the basic information for an unknown entity
Vertex Represents a base type for Vertex entities
Vertex2D Represents a entity
Vertex3D Represents a entity
VertexFaceMesh Represents a entity
VertexFaceRecord Represents a entity
VertexFlags Defines the vertex flags.
VerticalAlignmentType Text vertical justification.
Viewport Represents a entity.
ViewportStatusFlags viewport status flags
Wipeout Represents a entity.
XLine Represents a entity.

Classes

Name Summary
CadNotSupportedException
DwgException
DwgNotSupportedException
DxfException
DxfNotSupportedException

Classes

Name Summary
AttributeVisibilityMode
CadHeader
DimensionAssociation Controls the associativity of dimension objects.
EntityPlotStyleType Plot style type of new objects
IndexCreationFlags Controls whether layer and spatial indexes are created and saved in drawing files
MeasurementUnits Measurement units
ObjectSnapMode Object snap mode AcDb::OsnapMask
ObjectSortingFlags Bitmask flags to set the various object sorting types.
ShadeEdgeType Edge shape type
ShadowMode Shadow mode for a 3D object
SpaceLineTypeScaling Controls paper space linetype scaling.
SplineType Spline type

Classes

Name Summary
CadReaderBase
CadReaderConfiguration
CadWriterBase
DwgReader
DwgReaderConfiguration
DwgWriter
DxfReader
DxfReaderConfiguration
DxfWriter
DxfWriterOptions
ICadReader
ICadWriter
NotificationEventArgs
NotificationEventHandler
NotificationType

Classes

Name Summary
AcdbPlaceHolder Represents a object.
CadDictionary Represents a object.
CadDictionaryWithDefault Represents a object.
DictionaryCloningFlags Duplicate record cloning flag (determines how to merge duplicate entries).
DictionaryVariable Represents a object.
FaceColorMode
FaceLightingModelType
FaceLightingQualityType
FaceModifierType
Group Represents a object.
ImageDefinition Represents a object.
ImageDefinitionReactor Represents a object.
Layout Represents a object
LayoutFlags Layout flags
LeaderContentType
LeaderDrawOrderType Specifies the draw order of a
in a entity.
LeaderLinePropertOverrideFlags These flags specify whether properties of a leader line primarily defined by the
object or overidden by properties of the
object are overridden for an individual leader line.
Material
MLineStyle Represents a object
MLineStyleFlags Flags (bit-coded).
MultiLeaderAnnotContext This class represents a subset ob the properties of the MLeaderAnnotContext
object, that are embedded into the MultiLeader entity.
MultiLeaderDrawOrderType Specifies the draw order of a entity.
MultiLeaderStyle Represents a object.
NonGraphicalObject The standard class for a basic CAD non-graphical object.
PaperMargin Represents the unprintable margins of a paper.
PlotFlags Defines the plot settings flag.
PlotPaperUnits Plot paper units
PlotRotation Plot rotation
PlotSettings Represents a object
PlotType Defines the portion of paper space to output to the media
ResolutionUnit Resolution units for images.
Scale Represents a object
ScaledType
ShadePlotMode Defines the shade plot mode
ShadePlotResolutionMode Defines the shade plot resolution mode.
SortEntitiesTable Represents a object
VisualStyle Represents a object
XRecord Represents a object

Classes

Name Summary
GroupCollection
ImageDefinitionCollection
LayoutCollection
MLeaderStyleCollection
MLineStyleCollection
[ObjectDictionaryCollection1](ACadSharp.Objects.Collections.ObjectDictionaryCollection1) Object collection linked to a dictionary
ScaleCollection

Classes

Name Summary
AppId Represents a entry
ArcLengthSymbolPosition Controls the arc length symbol position in an arc length dimension.
BlockRecord Represents a entry
DefaultLightingType Default lighting type
DimensionStyle Represents a table entry.
DimensionTextBackgroundFillMode Represents the dimension text background color.
DimensionTextHorizontalAlignment Controls the vertical placement of dimension text in relation to the dimension line.
DimensionTextVerticalAlignment Controls the placement of dimension text.
EntryFlags Standard entry flags (bit-coded values).
FontFlags Represent the font character formatting, such as italic, bold, or regular.
FractionFormat Represents the fraction format when the linear unit format is set to architectural or fractional.
GridFlags
Layer Represents a entry
LayerFlags Standard layer flags (bit-coded values).
LineType Represents a entry
LinetypeShapeFlags Represents a line type complex element type.
StandardFlags Standard flags for tables
StyleFlags Standard layer flags (bit-coded values).
TableEntry
TextArrowFitType How dimension text and arrows are arranged when space is not sufficient to place both within the extension lines.
TextDirection Represents the text direction (left-to-right or right-to-left).
TextMovement Text movement rules.
TextStyle Represents a entry
ToleranceAlignment Tolerance alignment.
UCS Represents a entry
UscIconType Display Ucs icon
View Represents a entry
ViewModeType
VPort Represents a table entry
ZeroHandling Represents supression of zeros in displaying decimal numbers.

Classes

Name Summary
AppIdsTable
BlockRecordsTable
DimensionStylesTable
LayersTable
LineTypesTable
[Table1](ACadSharp.Tables.Collections.Table1)
TextStylesTable
UCSTable
ViewsTable
VPortsTable

Classes

Name Summary
AngularDirection Represents angular direction.
AngularUnitFormat Angular unit format
LinearUnitFormat Units format for decimal numbers
UnitsType

Classes

Name Summary
BoundingBox Bounding box representation aligned to XYZ axis.
IVector
MathUtils
Matrix4 4x4 Matrix
Quaternion Four dimensional vector which is used to efficiently rotate an object about the (x,y,z) vector by the angle theta, where w = cos(theta/2).
VectorExtensions
XY
XYZ
XYZM

Classes

Name Summary
[ILine1](CSMath.Geometry.ILine1)
Line2D
Line3D
LineExtensions

Classes

Name Summary
StringValueAttribute Simple attribute class for storing String Values

Classes

Name Summary
IDictionaryExtension Estensions for