Skip to content

ACadSharp.Header.CadHeader

Albert Domenech edited this page Aug 4, 2024 · 3 revisions

CadHeader Class

Definition

Namespace: ACadSharp.Header

C#

public class CadHeader

Properties

Returns Name Summary
Double AngleBase Angle 0 direction
AngularDirection AngularDirection Represents angular direction.
System variable ANGDIR
AngularUnitFormat AngularUnit Entity linetype name, or BYBLOCK or BYLAYER
Int16 AngularUnitPrecision Units precision for angles
String ArrowBlockName Arrow block name for leaders
Boolean AssociatedDimensions
AttributeVisibilityMode AttributeVisibility Attribute visibility
Boolean BlipMode System variable BLIPMODE ??
Boolean CameraDisplayObjects
Double CameraHeight
Double ChamferAngle Chamfer angle
Double ChamferDistance1 First chamfer distance
Double ChamferDistance2 Second chamfer distance
Double ChamferLength Chamfer length
String CodePage Drawing code page.
DateTime CreateDateTime Local date/time of drawing creation (see Special Handling of Date/Time Variables)
Boolean CreateEllipseAsPolyline
Color CurrentEntityColor Current entity color number
Double CurrentEntityLinetypeScale Current entity linetype scale
LineweightType CurrentEntityLineWeight Lineweight of new objects
EntityPlotStyleType CurrentEntityPlotStyle Plot style type of new objects
Layer CurrentLayer
String CurrentLayerName Current layer name
LineType CurrentLineType
String CurrentLineTypeName Entity linetype name, or BYBLOCK or BYLAYER
VerticalAlignmentType CurrentMultilineJustification Current multiline justification
Double CurrentMultilineScale Current multiline scale
TextStyle CurrentTextStyle
Char DgnUnderlayFramesVisibility
String DimensionAlternateDimensioningSuffix Alternate dimensioning suffix
Int16 DimensionAlternateUnitDecimalPlaces Alternate unit decimal places
Boolean DimensionAlternateUnitDimensioning Alternate unit dimensioning performed if nonzero
LinearUnitFormat DimensionAlternateUnitFormat Units format for alternate units of all dimension style family members except angular
Double DimensionAlternateUnitRounding Determines rounding of alternate units
Double DimensionAlternateUnitScaleFactor Alternate unit scale factor
Int16 DimensionAlternateUnitToleranceDecimalPlaces Number of decimal places for tolerance values of an alternate units dimension
ZeroHandling DimensionAlternateUnitToleranceZeroHandling Controls suppression of zeros for alternate tolerance values
ZeroHandling DimensionAlternateUnitZeroHandling Controls suppression of zeros for alternate unit dimension values
Double DimensionAltMzf Undocumented
String DimensionAltMzs Undocumented
Int16 DimensionAngularDimensionDecimalPlaces Number of precision places displayed in angular dimensions
AngularUnitFormat DimensionAngularUnit Angle format for angular dimensions
ZeroHandling DimensionAngularZeroHandling Controls suppression of zeros for angular dimensions
ArcLengthSymbolPosition DimensionArcLengthSymbolPosition Undocumented
Double DimensionArrowSize Dimensioning arrow size
DimensionAssociation DimensionAssociativity Controls the associativity of dimension objects
String DimensionBlockName Arrow block name
String DimensionBlockNameFirst First arrow block name
String DimensionBlockNameSecond Second arrow block name
Double DimensionCenterMarkSize Size of center mark/lines
Boolean DimensionCursorUpdate Cursor functionality for user-positioned text
Int16 DimensionDecimalPlaces Number of decimal places for the tolerance values of a primary units dimension
Char DimensionDecimalSeparator Single-character decimal separator used when creating dimensions whose unit format is decimal
TextArrowFitType DimensionDimensionTextArrowFit Controls dimension text and arrow placement when space is not sufficient to place both within the extension lines
Color DimensionExtensionLineColor Dimension extension line color
Double DimensionExtensionLineExtension Extension line extension
Double DimensionExtensionLineOffset Extension line offset
Int16 DimensionFit
Double DimensionFixedExtensionLineLength Undocumented
FractionFormat DimensionFractionFormat Undocumented
Boolean DimensionGenerateTolerances Vertical justification for tolerance values
Boolean DimensionIsExtensionLineLengthFixed Undocumented
Double DimensionJoggedRadiusDimensionTransverseSegmentAngle Undocumented
Boolean DimensionLimitsGeneration Dimension limits generated if nonzero
Double DimensionLinearScaleFactor Linear measurements scale factor
LinearUnitFormat DimensionLinearUnitFormat Sets units for all dimension types except Angular
Color DimensionLineColor Dimension line color
Double DimensionLineExtension Dimension line extension
Double DimensionLineGap Undocumented
Double DimensionLineIncrement Dimension line increment
String DimensionLineType Undocumented
LineweightType DimensionLineWeight Dimension line lineweight
Double DimensionMinusTolerance Minus tolerance
Double DimensionMzf Undocumented
String DimensionMzs Undocumented
Double DimensionPlusTolerance Plus tolerance
String DimensionPostFix Undocumented
Double DimensionRounding Rounding value for dimension distances
Double DimensionScaleFactor Overall dimensioning scale factor
Boolean DimensionSeparateArrowBlocks Use separate arrow blocks if nonzero
DimensionStyle DimensionStyleOverrides
String DimensionStyleOverridesName Dimension style name
Boolean DimensionSuppressFirstDimensionLine Suppression of first extension line
Boolean DimensionSuppressFirstExtensionLine First extension line suppressed if nonzero
Boolean DimensionSuppressOutsideExtensions Suppress outside-extensions dimension lines if nonzero
Boolean DimensionSuppressSecondDimensionLine Suppression of second extension line
Boolean DimensionSuppressSecondExtensionLine Second extension line suppressed if nonzero
String DimensionTex1 Undocumented
String DimensionTex2 Undocumented
Color DimensionTextBackgroundColor Undocumented
DimensionTextBackgroundFillMode DimensionTextBackgroundFillMode Undocumented
Color DimensionTextColor Dimension text color
TextDirection DimensionTextDirection Undocumented
Double DimensionTextHeight Dimensioning text height
DimensionTextHorizontalAlignment DimensionTextHorizontalAlignment Horizontal dimension text position
Boolean DimensionTextInsideExtensions Force text inside extensions if nonzero
Boolean DimensionTextInsideHorizontal Text inside horizontal if nonzero
TextMovement DimensionTextMovement Dimension text movement rules decimal
Boolean DimensionTextOutsideExtensions If text is outside the extension lines, dimension lines are forced between the extension lines if nonzero
Boolean DimensionTextOutsideHorizontal Text outside horizontal if nonzero
TextStyle DimensionTextStyle
String DimensionTextStyleName Dimension text style
DimensionTextVerticalAlignment DimensionTextVerticalAlignment Text above dimension line if nonzero
Double DimensionTextVerticalPosition Text vertical position
Double DimensionTickSize Dimensioning tick size
ToleranceAlignment DimensionToleranceAlignment Vertical justification for tolerance values
Int16 DimensionToleranceDecimalPlaces Number of decimal places to display the tolerance values
Double DimensionToleranceScaleFactor Dimension tolerance display scale factor
ZeroHandling DimensionToleranceZeroHandling Controls suppression of zeros for tolerance values
Int16 DimensionUnit Controls suppression of zeros for alternate unit dimension values
ZeroHandling DimensionZeroHandling Controls suppression of zeros for primary unit values
Char DisplayLightGlyphs
Boolean DisplayLineWeight Controls the display of lineweights on the Model or Layout tab
0 = Lineweight is not displayed
1 = Lineweight is displayed
Boolean DisplaySilhouetteCurves Controls the display of silhouette curves of body objects in Wireframe mode
CadDocument Document Document where this header resides
Double DraftAngleFirstCrossSection
Double DraftAngleSecondCrossSection
Double DraftMagnitudeFirstCrossSection
Double DraftMagnitudeSecondCrossSection
Double Dw3DPrecision
Char DwgUnderlayFramesVisibility
Double Elevation Current elevation set by ELEV command
Int16 EndCaps Lineweight endcaps setting for new objects
ObjectSortingFlags EntitySortingFlags Controls the object sorting methods
Boolean ExtendedNames Controls symbol table naming
LineweightType ExtensionLineWeight Extension line lineweight
Byte ExternalReferenceClippingBoundaryType Controls the visibility of xref clipping boundaries
Double FacetResolution
Double FilletRadius Sketch record increment
Boolean FillMode Fill mode on if nonzero
String FingerPrintGuid Set at creation time, uniquely identifies a particular drawing
Byte HaloGapPercentage Specifies a gap to be displayed where an object is hidden by another object; the value is specified as a percent of one unit and is independent of the zoom level.A haloed line is shortened at the point where it is hidden when HIDE or the Hidden option of SHADEMODE is used
UInt64 HandleSeed Next available handle
Byte HideText Specifies HIDETEXT system variable
String HyperLinkBase Path for all relative hyperlinks in the drawing. If null, the drawing path is used
IndexCreationFlags IndexCreationFlags Controls whether layer and spatial indexes are created and saved in drawing files
UnitsType InsUnits Default drawing units for blocks
Color InterfereColor Represents the ACI color index of the "interference objects" created during the INTERFERE command. Default value is 1
Byte IntersectionDisplay
Int16 JoinStyle Lineweight joint setting for new objects
String LastSavedBy Displays the name of the last person who modified the file
Double Latitude Specifies the latitude of the drawing model in decimal format
Double LensLength
Boolean LimitCheckingOn Nonzero if limits checking is on
System variable LIMCHECK.
LinearUnitFormat LinearUnitFormat Units format for coordinates and distances
Int16 LinearUnitPrecision Units precision for coordinates and distances
Double LineTypeScale Global linetype scale
Boolean LoadOLEObject
Char LoftedObjectNormals
Double Longitude Specifies the longitude of the drawing model in decimal format
Int16 MaintenanceVersion Maintenance version number(should be ignored)
Int16 MaxViewportCount Sets maximum number of viewports to be regenerated
MeasurementUnits MeasurementUnits Sets drawing units
String MenuFileName Name of menu file
Boolean MirrorText Mirror text if nonzero
System variable MIRRTEXT
XYZ ModelSpaceExtMax X, Y, and Z drawing extents upper-right corner(in WCS)
XYZ ModelSpaceExtMin X, Y, and Z drawing extents lower-left corner (in WCS)
XYZ ModelSpaceInsertionBase Insertion base set by BASE command(in WCS)
XY ModelSpaceLimitsMax XY drawing limits upper-right corner (in WCS)
XY ModelSpaceLimitsMin XY drawing limits lower-left corner (in WCS)
XYZ ModelSpaceOrigin Origin of current UCS(in WCS)
XYZ ModelSpaceOrthographicBackDOrigin Point which becomes the new UCS origin after changing model space UCS to BACK when PUCSBASE is set to WORLD
XYZ ModelSpaceOrthographicBottomDOrigin Point which becomes the new UCS origin after changing model space UCS to BOTTOM when PUCSBASE is set to WORLD
XYZ ModelSpaceOrthographicFrontDOrigin Point which becomes the new UCS origin after changing model space UCS to FRONT when PUCSBASE is set to WORLD
XYZ ModelSpaceOrthographicLeftDOrigin Point which becomes the new UCS origin after changing model space UCS to LEFT when PUCSBASE is set to WORLD
XYZ ModelSpaceOrthographicRightDOrigin Point which becomes the new UCS origin after changing model space UCS to RIGHT when PUCSBASE is set to WORLD
XYZ ModelSpaceOrthographicTopDOrigin Point which becomes the new UCS origin after changing model space UCS to TOP when PUCSBASE is set to WORLD
UCS ModelSpaceUcs
UCS ModelSpaceUcsBase
XYZ ModelSpaceXAxis Direction of the current UCS X axis (in WCS)
XYZ ModelSpaceYAxis Direction of the current UCS Y axis (in WCS)
String MultiLineStyleName Current multiline style name
Double NorthDirection
Int16 NumberOfSplineSegments Undocumented
ObjectSnapMode ObjectSnapMode Sets running object snaps, only for R13 - R14
Color ObscuredColor
Byte ObscuredType
Boolean OrthoMode System variable ORTHOMODE.
Ortho mode on if nonzero.
String PaperSpaceBaseName Name of the UCS that defines the origin and orientation of orthographic UCS settings (paper space only)
Double PaperSpaceElevation Current elevation set by ELEV command
XYZ PaperSpaceExtMax X, Y, and Z drawing extents upper-right corner(in WCS)
XYZ PaperSpaceExtMin X, Y, and Z drawing extents lower-left corner (in WCS)
XYZ PaperSpaceInsertionBase Insertion base set by BASE command(in WCS)
Boolean PaperSpaceLimitsChecking Limits checking in paper space when nonzero
System variable PLIMCHECK
XY PaperSpaceLimitsMax XY drawing limits upper-right corner (in WCS)
XY PaperSpaceLimitsMin XY drawing limits lower-left corner(in WCS)
SpaceLineTypeScaling PaperSpaceLineTypeScaling Controls paper space linetype scaling.
String PaperSpaceName Current paper space UCS name
XYZ PaperSpaceOrthographicBackDOrigin Point which becomes the new UCS origin after changing paper space UCS to BACK when PUCSBASE is set to WORLD
XYZ PaperSpaceOrthographicBottomDOrigin Point which becomes the new UCS origin after changing paper space UCS to BOTTOM when PUCSBASE is set to WORLD
XYZ PaperSpaceOrthographicFrontDOrigin Point which becomes the new UCS origin after changing paper space UCS to FRONT when PUCSBASE is set to WORLD
XYZ PaperSpaceOrthographicLeftDOrigin Point which becomes the new UCS origin after changing paper space UCS to LEFT when PUCSBASE is set to WORLD
XYZ PaperSpaceOrthographicRightDOrigin Point which becomes the new UCS origin after changing paper space UCS to RIGHT when PUCSBASE is set to WORLD
XYZ PaperSpaceOrthographicTopDOrigin Point which becomes the new UCS origin after changing paper space UCS to TOP when PUCSBASE is set to WORLD
UCS PaperSpaceUcs
UCS PaperSpaceUcsBase
XYZ PaperSpaceUcsOrigin Origin of current UCS (in WCS)
XYZ PaperSpaceUcsXAxis Direction of the current UCS X axis (in WCS)
XYZ PaperSpaceUcsYAxis Direction of the current UCS Y aYis (in WCS)
Int16 PlotStyleMode Indicates whether the current drawing is in a Color-Dependent or Named Plot Style mode
Int16 PointDisplayMode Point display mode
Double PointDisplaySize Point display size
Boolean PolylineLineTypeGeneration Governs the generation of linetype patterns around the vertices of a 2D polyline:
1 = Linetype is generated in a continuous pattern around vertices of the polyline
0 = Each segment of the polyline starts and ends with a dash
Double PolylineWidthDefault Default polyline width
String ProjectName Assigns a project name to the current drawing. Used when an external reference or image is not found on its original path. The project name points to a section in the registry that can contain one or more search paths for each project name defined. Project names and their search directories are created from the Files tab of the Options dialog box
Boolean ProxyGraphics Controls the saving of proxy object images
Boolean QuickTextMode Quick Text mode on if nonzero
Boolean RegenerationMode System variable REGENMODE.
REGENAUTO mode on if nonzero
Int64 RequiredVersions The default value is 0.
Read only.
Boolean RetainXRefDependentVisibilitySettings Controls the properties of xref-dependent layers:
0 = Don't retain xref-dependent visibility settings
1 = Retain xref-dependent visibility settings
System variable VISRETAIN
Int16 ShadeDiffuseToAmbientPercentage Percent ambient/diffuse light
ShadeEdgeType ShadeEdge Controls the shading of edges
ShadowMode ShadowMode Shadow mode for a 3D object
Double ShadowPlaneLocation Location of the ground shadow plane. This is a Z axis ordinate
Boolean ShowModelSpace 1 for previous release compatibility mode; 0 otherwise
System variable TILEMODE
Char ShowSolidsHistory
Boolean ShowSplineControlPoints Controls the display of helixes and smoothed mesh objects.
System variable SPLFRAME
Double SketchIncrement Sketch record increment
Boolean SketchPolylines Determines the object type created by the SKETCH command
System variable SKPOLY
Int16 SolidLoftedShape
Char SolidsRetainHistory
Int16 SpatialIndexMaxTreeDepth Specifies the maximum depth of the spatial index
SplineType SplineType Spline curve type for PEDIT Spline
Int16 StackedTextAlignment
Int16 StackedTextSizePercentage
Double StepSize
Double StepsPerSecond
String StyleSheetName
Int16 SurfaceDensityU Surface density (for PEDIT Smooth) in M direction
Int16 SurfaceDensityV Surface density(for PEDIT Smooth) in N direction
Int16 SurfaceIsolineCount
Int16 SurfaceMeshTabulationCount1 Number of mesh tabulations in first direction
Int16 SurfaceMeshTabulationCount2 Number of mesh tabulations in second direction
Int16 SurfaceType Surface type for PEDIT Smooth
Double SweptSolidHeight
Double SweptSolidWidth
Double TextHeightDefault Default text height
Int16 TextQuality
String TextStyleName Current text style name
Double ThicknessDefault Current thickness set by ELEV command
Int32 TimeZone
TimeSpan TotalEditingTime Cumulative editing time for this drawing(see Special Handling of Date/Time Variables)
Double TraceWidthDefault Default trace width
String UcsBaseName Name of the UCS that defines the origin and orientation of orthographic UCS settings
String UcsName Name of current UCS
Int16 UnitMode Low bit set = Display fractions, feet-and-inches, and surveyor's angles in input format
DateTime UniversalCreateDateTime Universal date/time the drawing was created(see Special Handling of Date/Time Variables)
DateTime UniversalUpdateDateTime Universal date/time of the last update/save(see Special Handling of Date/Time Variables)
DateTime UpdateDateTime Local date/time of last drawing update(see Special Handling of Date/Time Variables)
Boolean UpdateDimensionsWhileDragging System variable DIMSHO
Double UserDouble1 Real variable intended for use by third-party developers
Double UserDouble2 Real variable intended for use by third-party developers
Double UserDouble3 Real variable intended for use by third-party developers
Double UserDouble4 Real variable intended for use by third-party developers
Double UserDouble5 Real variable intended for use by third-party developers
TimeSpan UserElapsedTimeSpan User-elapsed timer
Int16 UserShort1 Integer variable intended for use by third-party developers
Int16 UserShort2 Integer variable intended for use by third-party developers
Int16 UserShort3 Integer variable intended for use by third-party developers
Int16 UserShort4 Integer variable intended for use by third-party developers
Int16 UserShort5 Integer variable intended for use by third-party developers
Boolean UserTimer Controls the user timer for the drawing
System variable USRTIMER
ACadVersion Version
String VersionGuid Uniquely identifies a particular version of a drawing. Updated when the drawing is modified
String VersionString The Drawing database version number.
Double ViewportDefaultViewScaleFactor View scale factor for new viewports
Boolean WorldView Determines whether input for the DVIEW and VPOINT command evaluated as relative to the WCS or current UCS
System variable WORLDVIEW
Boolean XEdit Controls whether the current drawing can be edited in-place when being referenced by another drawing

Methods

Returns Name Summary
Object GetValue(System.String)
Dictionary<DxfCode, Object> GetValues(System.String) Get the primitive values in each dxf code
Void SetValue(System.String, System.Object[]) Set a valueo of a system variable by name
Clone this wiki locally