Skip to main content
Version: 14

viktor.external.autocad

AutoCADConnection​

class viktor.external.autocad.autocad.AutoCADConnection(session)

Bases: _HandleConnection

New in 14.35.0

The acad object returned by connect() or attach(), used to control AutoCAD through its ActiveX Automation API. Each call returns the API result, or [*out_params, ret] when the call has output parameters. Objects returned by calls come back as opaque session-scoped handles, usable in further calls and as arguments; a property is read with call syntax (line.Length()) and written by plain assignment (line.Layer = "STRUCTURE").

Some members are refused by the worker for security and session safety (raising viktor.errors.ExecutionError), and filename arguments are confined to the session’s working directory: save with SaveAs and a relative filename.

Warning

Do not instantiate this class directly; obtain it from connect() or attach().

attach​

viktor.external.autocad.autocad.attach(timeout=60)

New in 14.35.0

Attach to the AutoCAD instance already running on the worker machine and control it through the AutoCAD ActiveX Automation API, like connect(), but without starting a fresh instance. Typical use: a personal worker on the engineer’s own machine, so the app acts on the drawing they have open on screen.

Warning

This is a BETA feature.

Requires a worker of kind autocad. Declare it in your viktor.config.toml:

worker_integrations = [
    "autocad",
]

Usage:

import viktor as vkt

with vkt.autocad.attach(timeout=60) as acad:
    layer = acad.ActiveDocument.ActiveLayer.Name()  # reads the drawing open in AutoCAD
    acad.ActiveDocument.Regen(0)                    # changes show in the user's window

Closing the session detaches without exiting the instance. The app can change the attached drawing but not save it in place: saving requires SaveAs with a relative filename, which writes into the session directory.

Note

The ActiveX members you call on acad (e.g. acad.ActiveDocument.ModelSpace.AddLine) mirror the AutoCAD Object Model and are not listed here. Look them up in the AutoCAD ActiveX Reference Guide on Autodesk’s developer documentation, or in the acadauto.chm help file in your AutoCAD installation directory.

Parameters:

timeout (int) – per-call timeout in seconds; also bounds the attach itself, so keep it at or above the platform’s 30 second bind window.

Return type:

AutoCADConnection

Exceptions which can be raised during execution:

connect​

viktor.external.autocad.autocad.connect(timeout=60)

New in 14.35.0

Connect to AutoCAD running on a connected VIKTOR worker and control it through the AutoCAD ActiveX Automation API directly from your app, as shown below. Always starts a fresh instance: if AutoCAD is already open on the worker machine the session is refused — close it there, or use attach() to act on it.

Warning

This is a BETA feature.

Requires a worker of kind autocad. Declare it in your viktor.config.toml:

worker_integrations = [
    "autocad",
]

Usage:

import viktor as vkt

with vkt.autocad.connect(timeout=60) as acad:
    ms = acad.ActiveDocument.ModelSpace
    line = ms.AddLine([0, 0, 0], [6, 0, 0])  # returns a session-scoped object handle
    line.Layer = "STRUCTURE"                  # property write: plain assignment
    length = line.Length()                    # property read: call syntax (note the parens)
    acad.ActiveDocument.SaveAs("beam.dwg")    # use a relative filename, not an absolute path

Note

The ActiveX members you call on acad (e.g. acad.ActiveDocument.ModelSpace.AddLine) mirror the AutoCAD Object Model and are not listed here. Look them up in the AutoCAD ActiveX Reference Guide on Autodesk’s developer documentation, or in the acadauto.chm help file in your AutoCAD installation directory.

Parameters:

timeout (int) – per-call timeout in seconds. Opening the session waits for AutoCAD to be ready, so it must also cover starting AutoCAD up on the worker.

Return type:

AutoCADConnection

Exceptions which can be raised during execution:

  • viktor.errors.ExecutionError: generic error. Error message provides more information. A host whose AutoCAD license is not activated also fails this way: AutoCAD blocks on an interactive sign-in dialog that the worker cannot answer, so starting it up times out.

  • viktor.errors.WorkerSessionError: the session was lost (e.g. its AutoCAD instance was torn down). The session cannot be resumed; start a new one to continue.

  • TimeoutError: a call took longer than timeout

AutoCAD enum values, generated from AutoCAD 26.0s (LMS Tech).

Ac3DPolylineType​

class viktor.external.autocad.enums.Ac3DPolylineType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD Ac3DPolylineType values, mirroring the product API’s names so code reads like its docs.

acCubicSpline3DPoly = 2
acQuadSpline3DPoly = 1
acSimple3DPoly = 0

AcARXDemandLoad​

class viktor.external.autocad.enums.AcARXDemandLoad(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcARXDemandLoad values, mirroring the product API’s names so code reads like its docs.

acDemanLoadDisable = 0
acDemandLoadCmdInvoke = 2
acDemandLoadOnObjectDetect = 1

AcActiveSpace​

class viktor.external.autocad.enums.AcActiveSpace(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcActiveSpace values, mirroring the product API’s names so code reads like its docs.

acModelSpace = 1
acPaperSpace = 0

AcAlignment​

class viktor.external.autocad.enums.AcAlignment(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcAlignment values, mirroring the product API’s names so code reads like its docs.

acAlignmentAligned = 3
acAlignmentBottomCenter = 13
acAlignmentBottomLeft = 12
acAlignmentBottomRight = 14
acAlignmentCenter = 1
acAlignmentFit = 5
acAlignmentLeft = 0
acAlignmentMiddle = 4
acAlignmentMiddleCenter = 10
acAlignmentMiddleLeft = 9
acAlignmentMiddleRight = 11
acAlignmentRight = 2
acAlignmentTopCenter = 7
acAlignmentTopLeft = 6
acAlignmentTopRight = 8

AcAlignmentPointAcquisition​

class viktor.external.autocad.enums.AcAlignmentPointAcquisition(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcAlignmentPointAcquisition values, mirroring the product API’s names so code reads like its docs.

acAlignPntAcquisitionAutomatic = 0
acAlignPntAcquisitionShiftToAcquire = 1

AcAngleUnits​

class viktor.external.autocad.enums.AcAngleUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcAngleUnits values, mirroring the product API’s names so code reads like its docs.

acDegreeMinuteSeconds = 1
acDegrees = 0
acGrads = 2
acRadians = 3

AcAttachmentPoint​

class viktor.external.autocad.enums.AcAttachmentPoint(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcAttachmentPoint values, mirroring the product API’s names so code reads like its docs.

acAttachmentPointBottomCenter = 8
acAttachmentPointBottomLeft = 7
acAttachmentPointBottomRight = 9
acAttachmentPointMiddleCenter = 5
acAttachmentPointMiddleLeft = 4
acAttachmentPointMiddleRight = 6
acAttachmentPointTopCenter = 2
acAttachmentPointTopLeft = 1
acAttachmentPointTopRight = 3

AcAttributeMode​

class viktor.external.autocad.enums.AcAttributeMode(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcAttributeMode values, mirroring the product API’s names so code reads like its docs.

acAttributeModeConstant = 2
acAttributeModeInvisible = 1
acAttributeModeLockPosition = 16
acAttributeModeMultipleLine = 32
acAttributeModeNormal = 0
acAttributeModePreset = 8
acAttributeModeVerify = 4

AcBlockConnectionType​

class viktor.external.autocad.enums.AcBlockConnectionType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcBlockConnectionType values, mirroring the product API’s names so code reads like its docs.

acConnectBase = 1
acConnectExtents = 0

AcBlockScaling​

class viktor.external.autocad.enums.AcBlockScaling(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcBlockScaling values, mirroring the product API’s names so code reads like its docs.

acAny = 0
acUniform = 1

AcBoolean​

class viktor.external.autocad.enums.AcBoolean(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcBoolean values, mirroring the product API’s names so code reads like its docs.

acFalse = 0
acTrue = 1

AcBooleanType​

class viktor.external.autocad.enums.AcBooleanType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcBooleanType values, mirroring the product API’s names so code reads like its docs.

acIntersection = 1
acSubtraction = 2
acUnion = 0

AcCellAlignment​

class viktor.external.autocad.enums.AcCellAlignment(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellAlignment values, mirroring the product API’s names so code reads like its docs.

acBottomCenter = 8
acBottomLeft = 7
acBottomRight = 9
acMiddleCenter = 5
acMiddleLeft = 4
acMiddleRight = 6
acTopCenter = 2
acTopLeft = 1
acTopRight = 3

AcCellContentLayout​

class viktor.external.autocad.enums.AcCellContentLayout(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellContentLayout values, mirroring the product API’s names so code reads like its docs.

acCellContentLayoutFlow = 1
acCellContentLayoutStackedHorizontal = 2
acCellContentLayoutStackedVertical = 4

AcCellContentType​

class viktor.external.autocad.enums.AcCellContentType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellContentType values, mirroring the product API’s names so code reads like its docs.

acCellContentTypeBlock = 4
acCellContentTypeField = 2
acCellContentTypeUnknown = 0
acCellContentTypeValue = 1

AcCellEdgeMask​

class viktor.external.autocad.enums.AcCellEdgeMask(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellEdgeMask values, mirroring the product API’s names so code reads like its docs.

acBottomMask = 4
acLeftMask = 8
acRightMask = 2
acTopMask = 1

AcCellMargin​

class viktor.external.autocad.enums.AcCellMargin(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellMargin values, mirroring the product API’s names so code reads like its docs.

acCellMarginBottom = 4
acCellMarginHorzSpacing = 16
acCellMarginLeft = 2
acCellMarginRight = 8
acCellMarginTop = 1
acCellMarginVertSpacing = 32

AcCellOption​

class viktor.external.autocad.enums.AcCellOption(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellOption values, mirroring the product API’s names so code reads like its docs.

kCellOptionNone = 0
kInheritCellFormat = 1

AcCellProperty​

class viktor.external.autocad.enums.AcCellProperty(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellProperty values, mirroring the product API’s names so code reads like its docs.

acAlignmentProperty = 32
acAllCellProperties = 524287
acAutoScale = 32768
acBackgroundColor = 128
acBitProperties = 245760
acContentColor = 64
acContentLayout = 262144
acContentProperties = 33662
acDataFormat = 4
acDataType = 2
acDataTypeAndFormat = 6
acEnableBackgroundColor = 16384
acFlowDirBtoT = 131072
acInvalidCellProperty = 0
acLock = 1
acMarginBottom = 8192
acMarginLeft = 1024
acMarginRight = 4096
acMarginTop = 2048
acMergeAll = 65536
acRotation = 8
acScale = 16
acTextHeight = 512
acTextStyle = 256

AcCellState​

class viktor.external.autocad.enums.AcCellState(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellState values, mirroring the product API’s names so code reads like its docs.

acCellStateContentLocked = 1
acCellStateContentModified = 32
acCellStateContentReadOnly = 2
acCellStateFormatLocked = 4
acCellStateFormatModified = 64
acCellStateFormatReadOnly = 8
acCellStateLinked = 16
acCellStateNone = 0

AcCellType​

class viktor.external.autocad.enums.AcCellType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCellType values, mirroring the product API’s names so code reads like its docs.

acBlockCell = 2
acTextCell = 1
acUnknownCell = 0

AcColor​

class viktor.external.autocad.enums.AcColor(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcColor values, mirroring the product API’s names so code reads like its docs.

acBlue = 5
acByBlock = 0
acByLayer = 256
acCyan = 4
acGreen = 3
acMagenta = 6
acRed = 1
acWhite = 7
acYellow = 2

AcColorMethod​

class viktor.external.autocad.enums.AcColorMethod(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcColorMethod values, mirroring the product API’s names so code reads like its docs.

acColorMethodByACI = 195
acColorMethodByBlock = 193
acColorMethodByLayer = 192
acColorMethodByRGB = 194
acColorMethodForeground = 197

AcCoordinateSystem​

class viktor.external.autocad.enums.AcCoordinateSystem(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcCoordinateSystem values, mirroring the product API’s names so code reads like its docs.

acDisplayDCS = 2
acOCS = 4
acPaperSpaceDCS = 3
acUCS = 1
acWorld = 0

AcDataLinkUpdateDirection​

class viktor.external.autocad.enums.AcDataLinkUpdateDirection(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDataLinkUpdateDirection values, mirroring the product API’s names so code reads like its docs.

acUpdateDataFromSource = 1
acUpdateSourceFromData = 2

AcDataLinkUpdateOption​

class viktor.external.autocad.enums.AcDataLinkUpdateOption(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDataLinkUpdateOption values, mirroring the product API’s names so code reads like its docs.

acUpdateOptionIncludeXrefs = 1048576
acUpdateOptionNone = 0
acUpdateOptionOverwriteContentModifiedAfterUpdate = 131072
acUpdateOptionOverwriteFormatModifiedAfterUpdate = 262144
acUpdateOptionUpdateFullSourceRange = 524288

AcDimArcLengthSymbol​

class viktor.external.autocad.enums.AcDimArcLengthSymbol(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimArcLengthSymbol values, mirroring the product API’s names so code reads like its docs.

acSymAbove = 1
acSymInFront = 0
acSymNone = 2

AcDimArrowheadType​

class viktor.external.autocad.enums.AcDimArrowheadType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimArrowheadType values, mirroring the product API’s names so code reads like its docs.

acArrowArchTick = 4
acArrowBoxBlank = 14
acArrowBoxFilled = 15
acArrowClosed = 2
acArrowClosedBlank = 1
acArrowDatumBlank = 16
acArrowDatumFilled = 17
acArrowDefault = 0
acArrowDot = 3
acArrowDotBlank = 12
acArrowDotSmall = 11
acArrowIntegral = 18
acArrowNone = 19
acArrowOblique = 5
acArrowOpen = 6
acArrowOpen30 = 10
acArrowOpen90 = 9
acArrowOrigin = 7
acArrowOrigin2 = 8
acArrowSmall = 13
acArrowUserDefined = 20

AcDimCenterType​

class viktor.external.autocad.enums.AcDimCenterType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimCenterType values, mirroring the product API’s names so code reads like its docs.

acCenterLine = 1
acCenterMark = 0
acCenterNone = 2

AcDimFit​

class viktor.external.autocad.enums.AcDimFit(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimFit values, mirroring the product API’s names so code reads like its docs.

acArrowsOnly = 1
acBestFit = 3
acTextAndArrows = 0
acTextOnly = 2

AcDimFractionType​

class viktor.external.autocad.enums.AcDimFractionType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimFractionType values, mirroring the product API’s names so code reads like its docs.

acDiagonal = 1
acHorizontal = 0
acNotStacked = 2

AcDimHorizontalJustification​

class viktor.external.autocad.enums.AcDimHorizontalJustification(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimHorizontalJustification values, mirroring the product API’s names so code reads like its docs.

acFirstExtensionLine = 1
acHorzCentered = 0
acOverFirstExtension = 3
acOverSecondExtension = 4
acSecondExtensionLine = 2

AcDimLUnits​

class viktor.external.autocad.enums.AcDimLUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimLUnits values, mirroring the product API’s names so code reads like its docs.

acDimLArchitectural = 4
acDimLDecimal = 2
acDimLEngineering = 3
acDimLFractional = 5
acDimLScientific = 1
acDimLWindowsDesktop = 6

AcDimPrecision​

class viktor.external.autocad.enums.AcDimPrecision(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimPrecision values, mirroring the product API’s names so code reads like its docs.

acDimPrecisionEight = 8
acDimPrecisionFive = 5
acDimPrecisionFour = 4
acDimPrecisionOne = 1
acDimPrecisionSeven = 7
acDimPrecisionSix = 6
acDimPrecisionThree = 3
acDimPrecisionTwo = 2
acDimPrecisionZero = 0

AcDimTextMovement​

class viktor.external.autocad.enums.AcDimTextMovement(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimTextMovement values, mirroring the product API’s names so code reads like its docs.

acDimLineWithText = 0
acMoveTextAddLeader = 1
acMoveTextNoLeader = 2

AcDimToleranceJustify​

class viktor.external.autocad.enums.AcDimToleranceJustify(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimToleranceJustify values, mirroring the product API’s names so code reads like its docs.

acTolBottom = 0
acTolMiddle = 1
acTolTop = 2

AcDimToleranceMethod​

class viktor.external.autocad.enums.AcDimToleranceMethod(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimToleranceMethod values, mirroring the product API’s names so code reads like its docs.

acTolBasic = 4
acTolDeviation = 2
acTolLimits = 3
acTolNone = 0
acTolSymmetrical = 1

AcDimUnits​

class viktor.external.autocad.enums.AcDimUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimUnits values, mirroring the product API’s names so code reads like its docs.

acDimArchitectural = 6
acDimArchitecturalStacked = 4
acDimDecimal = 2
acDimEngineering = 3
acDimFractional = 7
acDimFractionalStacked = 5
acDimScientific = 1
acDimWindowsDesktop = 8

AcDimVerticalJustification​

class viktor.external.autocad.enums.AcDimVerticalJustification(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDimVerticalJustification values, mirroring the product API’s names so code reads like its docs.

acAbove = 1
acJIS = 3
acOutside = 2
acUnder = 4
acVertCentered = 0

AcDragDisplayMode​

class viktor.external.autocad.enums.AcDragDisplayMode(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDragDisplayMode values, mirroring the product API’s names so code reads like its docs.

acDragDisplayAutomatically = 2
acDragDisplayOnRequest = 1
acDragDoNotDisplay = 0

AcDrawLeaderOrderType​

class viktor.external.autocad.enums.AcDrawLeaderOrderType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawLeaderOrderType values, mirroring the product API’s names so code reads like its docs.

acDrawLeaderHeadFirst = 0
acDrawLeaderTailFirst = 1

AcDrawMLeaderOrderType​

class viktor.external.autocad.enums.AcDrawMLeaderOrderType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawMLeaderOrderType values, mirroring the product API’s names so code reads like its docs.

acDrawContentFirst = 0
acDrawLeaderFirst = 1

AcDrawingAreaSCMCommand​

class viktor.external.autocad.enums.AcDrawingAreaSCMCommand(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawingAreaSCMCommand values, mirroring the product API’s names so code reads like its docs.

acEnableSCM = 2
acEnableSCMOptions = 1
acEnter = 0

AcDrawingAreaSCMDefault​

class viktor.external.autocad.enums.AcDrawingAreaSCMDefault(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawingAreaSCMDefault values, mirroring the product API’s names so code reads like its docs.

acRepeatLastCommand = 0
acSCM = 1

AcDrawingAreaSCMEdit​

class viktor.external.autocad.enums.AcDrawingAreaSCMEdit(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawingAreaSCMEdit values, mirroring the product API’s names so code reads like its docs.

acEdRepeatLastCommand = 0
acEdSCM = 1

AcDrawingAreaShortCutMenu​

class viktor.external.autocad.enums.AcDrawingAreaShortCutMenu(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawingAreaShortCutMenu values, mirroring the product API’s names so code reads like its docs.

acNoDrawingAreaShortCutMenu = 0
acUseDefaultDrawingAreaShortCutMenu = 1

AcDrawingDirection​

class viktor.external.autocad.enums.AcDrawingDirection(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDrawingDirection values, mirroring the product API’s names so code reads like its docs.

acBottomToTop = 4
acByStyle = 5
acLeftToRight = 1
acRightToLeft = 2
acTopToBottom = 3

AcDynamicBlockReferencePropertyUnitsType​

class viktor.external.autocad.enums.AcDynamicBlockReferencePropertyUnitsType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcDynamicBlockReferencePropertyUnitsType values, mirroring the product API’s names so code reads like its docs.

acAngular = 1
acArea = 3
acDistance = 2
acNoUnits = 0

AcEntityName​

class viktor.external.autocad.enums.AcEntityName(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcEntityName values, mirroring the product API’s names so code reads like its docs.

ac3dFace = 1
ac3dPolyline = 2
ac3dSolid = 3
acArc = 4
acAttribute = 5
acAttributeReference = 6
acBlockReference = 7
acCircle = 8
acDgnUnderlay = 47
acDim3PointAngular = 41
acDimAligned = 9
acDimAngular = 10
acDimArcLength = 44
acDimDiametric = 12
acDimOrdinate = 13
acDimRadial = 14
acDimRadialLarge = 45
acDimRotated = 15
acDwfUnderlay = 46
acEllipse = 16
acExternalReference = 42
acGroup = 37
acHatch = 17
acLeader = 18
acLine = 19
acMInsertBlock = 38
acMLeader = 48
acMLine = 40
acMtext = 21
acNurbSurface = 51
acPViewport = 35
acPdfUnderlay = 50
acPoint = 22
acPolyfaceMesh = 39
acPolyline = 23
acPolylineLight = 24
acPolymesh = 25
acRaster = 26
acRay = 27
acRegion = 28
acShape = 29
acSolid = 30
acSpline = 31
acSubDMesh = 49
acTable = 43
acText = 32
acTolerance = 33
acTrace = 34
acXline = 36

AcExtendOption​

class viktor.external.autocad.enums.AcExtendOption(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcExtendOption values, mirroring the product API’s names so code reads like its docs.

acExtendBoth = 3
acExtendNone = 0
acExtendOtherEntity = 2
acExtendThisEntity = 1

AcFormatOption​

class viktor.external.autocad.enums.AcFormatOption(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcFormatOption values, mirroring the product API’s names so code reads like its docs.

acForEditing = 1
acForExpression = 2
acIgnoreMtextFormat = 8
acUseMaximumPrecision = 4
kFormatOptionNone = 0

AcGradientPatternType​

class viktor.external.autocad.enums.AcGradientPatternType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcGradientPatternType values, mirroring the product API’s names so code reads like its docs.

acPreDefinedGradient = 0
acUserDefinedGradient = 1

AcGridLineStyle​

class viktor.external.autocad.enums.AcGridLineStyle(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcGridLineStyle values, mirroring the product API’s names so code reads like its docs.

acGridLineStyleDouble = 2
acGridLineStyleSingle = 1

AcGridLineType​

class viktor.external.autocad.enums.AcGridLineType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcGridLineType values, mirroring the product API’s names so code reads like its docs.

acHorzBottom = 4
acHorzInside = 2
acHorzTop = 1
acInvalidGridLine = 0
acVertInside = 16
acVertLeft = 8
acVertRight = 32

AcHatchObjectType​

class viktor.external.autocad.enums.AcHatchObjectType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcHatchObjectType values, mirroring the product API’s names so code reads like its docs.

acGradientObject = 1
acHatchObject = 0

AcHatchStyle​

class viktor.external.autocad.enums.AcHatchStyle(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcHatchStyle values, mirroring the product API’s names so code reads like its docs.

acHatchStyleIgnore = 2
acHatchStyleNormal = 0
acHatchStyleOuter = 1

AcHelixConstrainType​

class viktor.external.autocad.enums.AcHelixConstrainType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcHelixConstrainType values, mirroring the product API’s names so code reads like its docs.

acHeight = 2
acTurnHeight = 0
acTurns = 1

AcHelixTwistType​

class viktor.external.autocad.enums.AcHelixTwistType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcHelixTwistType values, mirroring the product API’s names so code reads like its docs.

acCCW = 0
acCW = 1

AcHorizontalAlignment​

class viktor.external.autocad.enums.AcHorizontalAlignment(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcHorizontalAlignment values, mirroring the product API’s names so code reads like its docs.

acHorizontalAlignmentAligned = 3
acHorizontalAlignmentCenter = 1
acHorizontalAlignmentFit = 5
acHorizontalAlignmentLeft = 0
acHorizontalAlignmentMiddle = 4
acHorizontalAlignmentRight = 2

AcISOPenWidth​

class viktor.external.autocad.enums.AcISOPenWidth(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcISOPenWidth values, mirroring the product API’s names so code reads like its docs.

acPenWidth013 = 13
acPenWidth018 = 18
acPenWidth025 = 25
acPenWidth035 = 35
acPenWidth050 = 50
acPenWidth070 = 70
acPenWidth100 = 100
acPenWidth140 = 140
acPenWidth200 = 200
acPenWidthUnk = -1

AcInsertUnits​

class viktor.external.autocad.enums.AcInsertUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcInsertUnits values, mirroring the product API’s names so code reads like its docs.

acInsertUnitsAngstroms = 11
acInsertUnitsAstronomicalUnits = 18
acInsertUnitsCentimeters = 5
acInsertUnitsDecameters = 15
acInsertUnitsDecimeters = 14
acInsertUnitsFeet = 2
acInsertUnitsGigameters = 17
acInsertUnitsHectometers = 16
acInsertUnitsInches = 1
acInsertUnitsKilometers = 7
acInsertUnitsLightYears = 19
acInsertUnitsMeters = 6
acInsertUnitsMicroinches = 8
acInsertUnitsMicrons = 13
acInsertUnitsMiles = 3
acInsertUnitsMillimeters = 4
acInsertUnitsMils = 9
acInsertUnitsNanometers = 12
acInsertUnitsParsecs = 20
acInsertUnitsUSSurveyFeet = 21
acInsertUnitsUSSurveyInch = 22
acInsertUnitsUSSurveyMile = 24
acInsertUnitsUSSurveyYard = 23
acInsertUnitsUnitless = 0
acInsertUnitsYards = 10

AcInsertUnitsAction​

class viktor.external.autocad.enums.AcInsertUnitsAction(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcInsertUnitsAction values, mirroring the product API’s names so code reads like its docs.

acInsertUnitsAutoAssign = 1
acInsertUnitsPrompt = 0

AcKeyboardAccelerator​

class viktor.external.autocad.enums.AcKeyboardAccelerator(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcKeyboardAccelerator values, mirroring the product API’s names so code reads like its docs.

acPreferenceClassic = 0
acPreferenceCustom = 1

AcKeyboardPriority​

class viktor.external.autocad.enums.AcKeyboardPriority(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcKeyboardPriority values, mirroring the product API’s names so code reads like its docs.

acKeyboardEntry = 1
acKeyboardEntryExceptScripts = 2
acKeyboardRunningObjSnap = 0

AcLayerStateMask​

class viktor.external.autocad.enums.AcLayerStateMask(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLayerStateMask values, mirroring the product API’s names so code reads like its docs.

acLsAll = 65535
acLsColor = 32
acLsFrozen = 2
acLsLineType = 64
acLsLineWeight = 128
acLsLocked = 4
acLsNewViewport = 16
acLsNone = 0
acLsOn = 1
acLsPlot = 8
acLsPlotStyle = 256

AcLeaderType​

class viktor.external.autocad.enums.AcLeaderType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLeaderType values, mirroring the product API’s names so code reads like its docs.

acLineNoArrow = 0
acLineWithArrow = 2
acSplineNoArrow = 1
acSplineWithArrow = 3

AcLineSpacingStyle​

class viktor.external.autocad.enums.AcLineSpacingStyle(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLineSpacingStyle values, mirroring the product API’s names so code reads like its docs.

acLineSpacingStyleAtLeast = 1
acLineSpacingStyleExactly = 2

AcLineWeight​

class viktor.external.autocad.enums.AcLineWeight(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLineWeight values, mirroring the product API’s names so code reads like its docs.

acLnWt000 = 0
acLnWt005 = 5
acLnWt009 = 9
acLnWt013 = 13
acLnWt015 = 15
acLnWt018 = 18
acLnWt020 = 20
acLnWt025 = 25
acLnWt030 = 30
acLnWt035 = 35
acLnWt040 = 40
acLnWt050 = 50
acLnWt053 = 53
acLnWt060 = 60
acLnWt070 = 70
acLnWt080 = 80
acLnWt090 = 90
acLnWt100 = 100
acLnWt106 = 106
acLnWt120 = 120
acLnWt140 = 140
acLnWt158 = 158
acLnWt200 = 200
acLnWt211 = 211
acLnWtByBlock = -2
acLnWtByLayer = -1
acLnWtByLwDefault = -3

AcLoadPalette​

class viktor.external.autocad.enums.AcLoadPalette(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLoadPalette values, mirroring the product API’s names so code reads like its docs.

acPaletteByDrawing = 0
acPaletteBySession = 1

AcLoftedSurfaceNormalType​

class viktor.external.autocad.enums.AcLoftedSurfaceNormalType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLoftedSurfaceNormalType values, mirroring the product API’s names so code reads like its docs.

acAllNormal = 5
acEndsNormal = 4
acFirstNormal = 2
acLastNormal = 3
acRuled = 0
acSmooth = 1
acUseDraftAngles = 6

AcLoopType​

class viktor.external.autocad.enums.AcLoopType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcLoopType values, mirroring the product API’s names so code reads like its docs.

acHatchLoopTypeDefault = 0
acHatchLoopTypeDerived = 4
acHatchLoopTypeExternal = 1
acHatchLoopTypePolyline = 2
acHatchLoopTypeTextbox = 8

AcMLeaderContentType​

class viktor.external.autocad.enums.AcMLeaderContentType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMLeaderContentType values, mirroring the product API’s names so code reads like its docs.

acBlockContent = 1
acMTextContent = 2
acNoneContent = 0

AcMLeaderType​

class viktor.external.autocad.enums.AcMLeaderType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMLeaderType values, mirroring the product API’s names so code reads like its docs.

acInVisibleLeader = 0
acSplineLeader = 2
acStraightLeader = 1

AcMLineJustification​

class viktor.external.autocad.enums.AcMLineJustification(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMLineJustification values, mirroring the product API’s names so code reads like its docs.

acBottom = 2
acTop = 0
acZero = 1

AcMeasurementUnits​

class viktor.external.autocad.enums.AcMeasurementUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMeasurementUnits values, mirroring the product API’s names so code reads like its docs.

acEnglish = 0
acMetric = 1

AcMenuFileType​

class viktor.external.autocad.enums.AcMenuFileType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMenuFileType values, mirroring the product API’s names so code reads like its docs.

acMenuFileCompiled = 0
acMenuFileSource = 1

AcMenuGroupType​

class viktor.external.autocad.enums.AcMenuGroupType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMenuGroupType values, mirroring the product API’s names so code reads like its docs.

acBaseMenuGroup = 0
acPartialMenuGroup = 1

AcMenuItemType​

class viktor.external.autocad.enums.AcMenuItemType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMenuItemType values, mirroring the product API’s names so code reads like its docs.

acMenuItem = 0
acMenuSeparator = 1
acMenuSubMenu = 2

AcMergeCellStyleOption​

class viktor.external.autocad.enums.AcMergeCellStyleOption(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMergeCellStyleOption values, mirroring the product API’s names so code reads like its docs.

acMergeCellStyleConvertDuplicatesToOverrides = 4
acMergeCellStyleCopyDuplicates = 1
acMergeCellStyleIgnoreNewStyles = 8
acMergeCellStyleNone = 0
acMergeCellStyleOverwriteDuplicates = 2

AcMeshCreaseType​

class viktor.external.autocad.enums.AcMeshCreaseType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcMeshCreaseType values, mirroring the product API’s names so code reads like its docs.

acAlwaysCrease = 1
acCreaseByLevel = 2
acNoneCrease = 0

AcOlePlotQuality​

class viktor.external.autocad.enums.AcOlePlotQuality(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcOlePlotQuality values, mirroring the product API’s names so code reads like its docs.

acOPQHighGraphics = 2
acOPQLowGraphics = 1
acOPQMonochrome = 0

AcOleQuality​

class viktor.external.autocad.enums.AcOleQuality(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcOleQuality values, mirroring the product API’s names so code reads like its docs.

acOQGraphics = 2
acOQHighPhoto = 4
acOQLineArt = 0
acOQPhoto = 3
acOQText = 1

AcOleType​

class viktor.external.autocad.enums.AcOleType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcOleType values, mirroring the product API’s names so code reads like its docs.

acOTEmbedded = 2
acOTStatic = 3

AcOnOff​

class viktor.external.autocad.enums.AcOnOff(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcOnOff values, mirroring the product API’s names so code reads like its docs.

acOff = 0
acOn = 1

AcParseOption​

class viktor.external.autocad.enums.AcParseOption(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcParseOption values, mirroring the product API’s names so code reads like its docs.

acParseOptionNone = 0
acPreserveMtextFormat = 2
acSetDefaultFormat = 1

AcPatternType​

class viktor.external.autocad.enums.AcPatternType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPatternType values, mirroring the product API’s names so code reads like its docs.

acHatchPatternTypeCustomDefined = 2
acHatchPatternTypePreDefined = 1
acHatchPatternTypeUserDefined = 0

AcPlotOrientation​

class viktor.external.autocad.enums.AcPlotOrientation(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotOrientation values, mirroring the product API’s names so code reads like its docs.

acPlotOrientationLandscape = 1
acPlotOrientationPortrait = 0

AcPlotPaperUnits​

class viktor.external.autocad.enums.AcPlotPaperUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotPaperUnits values, mirroring the product API’s names so code reads like its docs.

acInches = 0
acMillimeters = 1
acPixels = 2

AcPlotPolicy​

class viktor.external.autocad.enums.AcPlotPolicy(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotPolicy values, mirroring the product API’s names so code reads like its docs.

acPolicyLegacy = 1
acPolicyNamed = 0

AcPlotPolicyForLegacyDwgs​

class viktor.external.autocad.enums.AcPlotPolicyForLegacyDwgs(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotPolicyForLegacyDwgs values, mirroring the product API’s names so code reads like its docs.

acPolicyLegacyDefault = 0
acPolicyLegacyLegacy = 2
acPolicyLegacyQuery = 1

AcPlotPolicyForNewDwgs​

class viktor.external.autocad.enums.AcPlotPolicyForNewDwgs(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotPolicyForNewDwgs values, mirroring the product API’s names so code reads like its docs.

acPolicyNewDefault = 0
acPolicyNewLegacy = 1

AcPlotRotation​

class viktor.external.autocad.enums.AcPlotRotation(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotRotation values, mirroring the product API’s names so code reads like its docs.

ac0degrees = 0
ac180degrees = 2
ac270degrees = 3
ac90degrees = 1

AcPlotScale​

class viktor.external.autocad.enums.AcPlotScale(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotScale values, mirroring the product API’s names so code reads like its docs.

ac100_1 = 32
ac10_1 = 31
ac1_1 = 16
ac1_10 = 21
ac1_100 = 27
ac1_128in_1ft = 1
ac1_16 = 22
ac1_16in_1ft = 4
ac1_2 = 17
ac1_20 = 23
ac1_2in_1ft = 10
ac1_30 = 24
ac1_32in_1ft = 3
ac1_4 = 18
ac1_40 = 25
ac1_4in_1ft = 8
ac1_5 = 19
ac1_50 = 26
ac1_64in_1ft = 2
ac1_8 = 20
ac1_8in_1ft = 6
ac1ft_1ft = 15
ac1in_1ft = 12
ac2_1 = 28
ac3_16in_1ft = 7
ac3_32in_1ft = 5
ac3_4in_1ft = 11
ac3_8in_1ft = 9
ac3in_1ft = 13
ac4_1 = 29
ac6in_1ft = 14
ac8_1 = 30
acScaleToFit = 0

AcPlotType​

class viktor.external.autocad.enums.AcPlotType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPlotType values, mirroring the product API’s names so code reads like its docs.

acDisplay = 0
acExtents = 1
acLayout = 5
acLimits = 2
acView = 3
acWindow = 4

AcPointCloudColorType​

class viktor.external.autocad.enums.AcPointCloudColorType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPointCloudColorType values, mirroring the product API’s names so code reads like its docs.

acByColor = 1
acTrueColor = 0

AcPointCloudExStylizationType​

class viktor.external.autocad.enums.AcPointCloudExStylizationType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPointCloudExStylizationType values, mirroring the product API’s names so code reads like its docs.

acClassification = 5
acElevation = 4
acIntensities = 3
acNormals = 2
acObject = 1
acRGB = 0

AcPointCloudIntensityStyle​

class viktor.external.autocad.enums.AcPointCloudIntensityStyle(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPointCloudIntensityStyle values, mirroring the product API’s names so code reads like its docs.

acIntensityBlue = 4
acIntensityEditableFlag = 5
acIntensityGrayscale = 0
acIntensityGreen = 3
acIntensityRainbow = 1
acIntensityRed = 2

AcPointCloudStylizationType​

class viktor.external.autocad.enums.AcPointCloudStylizationType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPointCloudStylizationType values, mirroring the product API’s names so code reads like its docs.

acIntensity = 3
acNormal = 2
acObjectColor = 1
acScanColor = 0

AcPolylineType​

class viktor.external.autocad.enums.AcPolylineType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPolylineType values, mirroring the product API’s names so code reads like its docs.

acCubicSplinePoly = 3
acFitCurvePoly = 1
acQuadSplinePoly = 2
acSimplePoly = 0

AcPolymeshType​

class viktor.external.autocad.enums.AcPolymeshType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPolymeshType values, mirroring the product API’s names so code reads like its docs.

acBezierSurfaceMesh = 8
acCubicSurfaceMesh = 6
acQuadSurfaceMesh = 5
acSimpleMesh = 0

AcPredefBlockType​

class viktor.external.autocad.enums.AcPredefBlockType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPredefBlockType values, mirroring the product API’s names so code reads like its docs.

acBlockBox = 3
acBlockCircle = 2
acBlockHexagon = 4
acBlockImperial = 0
acBlockSlot = 1
acBlockTriangle = 5
acBlockUserDefined = 6

AcPreviewMode​

class viktor.external.autocad.enums.AcPreviewMode(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPreviewMode values, mirroring the product API’s names so code reads like its docs.

acFullPreview = 1
acPartialPreview = 0

AcPrinterSpoolAlert​

class viktor.external.autocad.enums.AcPrinterSpoolAlert(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcPrinterSpoolAlert values, mirroring the product API’s names so code reads like its docs.

acPrinterAlertOnce = 1
acPrinterAlwaysAlert = 0
acPrinterNeverAlert = 3
acPrinterNeverAlertLogOnce = 2

AcProxyImage​

class viktor.external.autocad.enums.AcProxyImage(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcProxyImage values, mirroring the product API’s names so code reads like its docs.

acProxyBoundingBox = 2
acProxyNotShow = 0
acProxyShow = 1

AcRegenType​

class viktor.external.autocad.enums.AcRegenType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcRegenType values, mirroring the product API’s names so code reads like its docs.

acActiveViewport = 0
acAllViewports = 1

AcRotationAngle​

class viktor.external.autocad.enums.AcRotationAngle(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcRotationAngle values, mirroring the product API’s names so code reads like its docs.

acDegrees000 = 0
acDegrees090 = 1
acDegrees180 = 2
acDegrees270 = 3
acDegreesUnknown = -1

AcRowType​

class viktor.external.autocad.enums.AcRowType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcRowType values, mirroring the product API’s names so code reads like its docs.

acDataRow = 1
acHeaderRow = 4
acTitleRow = 2
acUnknownRow = 0

AcSaveAsType​

class viktor.external.autocad.enums.AcSaveAsType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSaveAsType values, mirroring the product API’s names so code reads like its docs.

ac2000_Template = 14
ac2000_dwg = 12
ac2000_dxf = 13
ac2004_Template = 26
ac2004_dwg = 24
ac2004_dxf = 25
ac2007_Template = 38
ac2007_dwg = 36
ac2007_dxf = 37
ac2010_Template = 50
ac2010_dwg = 48
ac2010_dxf = 49
ac2013_Template = 62
ac2013_dwg = 60
ac2013_dxf = 61
ac2018_Template = 66
ac2018_dwg = 64
ac2018_dxf = 65
acNative = 64
acR12_dxf = 1
acR13_dwg = 4
acR13_dxf = 5
acR14_dwg = 8
acR14_dxf = 9
acR15_Template = 14
acR15_dwg = 12
acR15_dxf = 13
acR18_Template = 26
acR18_dwg = 24
acR18_dxf = 25
acUnknown = -1

AcSectionGeneration​

class viktor.external.autocad.enums.AcSectionGeneration(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSectionGeneration values, mirroring the product API’s names so code reads like its docs.

acSectionGenerationDestinationFile = 64
acSectionGenerationDestinationNewBlock = 16
acSectionGenerationDestinationReplaceBlock = 32
acSectionGenerationSourceAllObjects = 1
acSectionGenerationSourceSelectedObjects = 2

AcSectionState​

class viktor.external.autocad.enums.AcSectionState(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSectionState values, mirroring the product API’s names so code reads like its docs.

acSectionStateBoundary = 2
acSectionStatePlane = 1
acSectionStateVolume = 4

AcSectionState2​

class viktor.external.autocad.enums.AcSectionState2(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSectionState2 values, mirroring the product API’s names so code reads like its docs.

acSectionState2Boundary = 4
acSectionState2Plane = 1
acSectionState2Slice = 2
acSectionState2Volume = 8

AcSectionSubItem​

class viktor.external.autocad.enums.AcSectionSubItem(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSectionSubItem values, mirroring the product API’s names so code reads like its docs.

acSectionSubItemBackLine = 8
acSectionSubItemBackLineBottom = 32
acSectionSubItemBackLineTop = 16
acSectionSubItemSectionLine = 1
acSectionSubItemSectionLineBottom = 4
acSectionSubItemSectionLineTop = 2
acSectionSubItemVerticalLineBottom = 128
acSectionSubItemVerticalLineTop = 64
acSectionSubItemkNone = 0

AcSectionType​

class viktor.external.autocad.enums.AcSectionType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSectionType values, mirroring the product API’s names so code reads like its docs.

acSectionType2dSection = 2
acSectionType3dSection = 4
acSectionTypeLiveSection = 1

AcSegmentAngleType​

class viktor.external.autocad.enums.AcSegmentAngleType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSegmentAngleType values, mirroring the product API’s names so code reads like its docs.

acDegrees15 = 1
acDegrees30 = 2
acDegrees45 = 3
acDegrees60 = 4
acDegrees90 = 6
acDegreesAny = 0
acDegreesHorz = 12

AcSelect​

class viktor.external.autocad.enums.AcSelect(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSelect values, mirroring the product API’s names so code reads like its docs.

acSelectionSetAll = 5
acSelectionSetCrossing = 1
acSelectionSetCrossingPolygon = 7
acSelectionSetFence = 2
acSelectionSetLast = 4
acSelectionSetPrevious = 3
acSelectionSetWindow = 0
acSelectionSetWindowPolygon = 6

AcSelectType​

class viktor.external.autocad.enums.AcSelectType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSelectType values, mirroring the product API’s names so code reads like its docs.

acTableSelectCrossing = 2
acTableSelectWindow = 1

AcShadePlot​

class viktor.external.autocad.enums.AcShadePlot(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcShadePlot values, mirroring the product API’s names so code reads like its docs.

acShadePlotAsDisplayed = 0
acShadePlotHidden = 2
acShadePlotRendered = 3
acShadePlotWireframe = 1

AcShadowDisplayType​

class viktor.external.autocad.enums.AcShadowDisplayType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcShadowDisplayType values, mirroring the product API’s names so code reads like its docs.

acCastsAndReceivesShadows = 0
acCastsShadows = 1
acIgnoreShadows = 3
acReceivesShadows = 2

AcSplineFrameType​

class viktor.external.autocad.enums.AcSplineFrameType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSplineFrameType values, mirroring the product API’s names so code reads like its docs.

acHide = 1
acShow = 0

AcSplineKnotParameterizationType​

class viktor.external.autocad.enums.AcSplineKnotParameterizationType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSplineKnotParameterizationType values, mirroring the product API’s names so code reads like its docs.

acChord = 0
acCustomParameterization = 15
acSqrtChord = 1
acUniformParam = 2

AcSplineMethodType​

class viktor.external.autocad.enums.AcSplineMethodType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcSplineMethodType values, mirroring the product API’s names so code reads like its docs.

acControlVertices = 1
acFit = 0

AcTableDirection​

class viktor.external.autocad.enums.AcTableDirection(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTableDirection values, mirroring the product API’s names so code reads like its docs.

acTableBottomToTop = 1
acTableTopToBottom = 0

AcTableFlowDirection​

class viktor.external.autocad.enums.AcTableFlowDirection(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTableFlowDirection values, mirroring the product API’s names so code reads like its docs.

acTableFlowDownOrUp = 2
acTableFlowLeft = 4
acTableFlowRight = 1

AcTableStyleOverrides​

class viktor.external.autocad.enums.AcTableStyleOverrides(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTableStyleOverrides values, mirroring the product API’s names so code reads like its docs.

acCellAlign = 130
acCellBackgroundColor = 132
acCellBackgroundFillNone = 131
acCellBottomGridColor = 138
acCellBottomGridLineWeight = 142
acCellBottomVisibility = 146
acCellContentColor = 133
acCellDataType = 148
acCellLeftGridColor = 139
acCellLeftGridLineWeight = 143
acCellLeftVisibility = 147
acCellRightGridColor = 137
acCellRightGridLineWeight = 141
acCellRightVisibility = 145
acCellTextHeight = 135
acCellTextStyle = 134
acCellTopGridColor = 136
acCellTopGridLineWeight = 140
acCellTopVisibility = 144
acDataHorzBottomColor = 54
acDataHorzBottomLineWeight = 84
acDataHorzBottomVisibility = 114
acDataHorzInsideColor = 53
acDataHorzInsideLineWeight = 83
acDataHorzInsideVisibility = 113
acDataHorzTopColor = 52
acDataHorzTopLineWeight = 82
acDataHorzTopVisibility = 112
acDataRowAlignment = 17
acDataRowColor = 8
acDataRowDataType = 26
acDataRowFillColor = 14
acDataRowFillNone = 11
acDataRowTextHeight = 23
acDataRowTextStyle = 20
acDataVertInsideColor = 56
acDataVertInsideLineWeight = 86
acDataVertInsideVisibility = 116
acDataVertLeftColor = 55
acDataVertLeftLineWeight = 85
acDataVertLeftVisibility = 115
acDataVertRightColor = 57
acDataVertRightLineWeight = 87
acDataVertRightVisibility = 117
acFlowDirection = 3
acHeaderHorzBottomColor = 48
acHeaderHorzBottomLineWeight = 78
acHeaderHorzBottomVisibility = 108
acHeaderHorzInsideColor = 47
acHeaderHorzInsideLineWeight = 77
acHeaderHorzInsideVisibility = 107
acHeaderHorzTopColor = 46
acHeaderHorzTopLineWeight = 76
acHeaderHorzTopVisibility = 106
acHeaderRowAlignment = 16
acHeaderRowColor = 7
acHeaderRowDataType = 25
acHeaderRowFillColor = 13
acHeaderRowFillNone = 10
acHeaderRowTextHeight = 22
acHeaderRowTextStyle = 19
acHeaderSuppressed = 2
acHeaderVertInsideColor = 50
acHeaderVertInsideLineWeight = 80
acHeaderVertInsideVisibility = 110
acHeaderVertLeftColor = 49
acHeaderVertLeftLineWeight = 79
acHeaderVertLeftVisibility = 109
acHeaderVertRightColor = 51
acHeaderVertRightLineWeight = 81
acHeaderVertRightVisibility = 111
acHorzCellMargin = 4
acTitleHorzBottomColor = 42
acTitleHorzBottomLineWeight = 72
acTitleHorzBottomVisibility = 102
acTitleHorzInsideColor = 41
acTitleHorzInsideLineWeight = 71
acTitleHorzInsideVisibility = 101
acTitleHorzTopColor = 40
acTitleHorzTopLineWeight = 70
acTitleHorzTopVisibility = 100
acTitleRowAlignment = 15
acTitleRowColor = 6
acTitleRowDataType = 24
acTitleRowFillColor = 12
acTitleRowFillNone = 9
acTitleRowTextHeight = 21
acTitleRowTextStyle = 18
acTitleSuppressed = 1
acTitleVertInsideColor = 44
acTitleVertInsideLineWeight = 74
acTitleVertInsideVisibility = 104
acTitleVertLeftColor = 43
acTitleVertLeftLineWeight = 73
acTitleVertLeftVisibility = 103
acTitleVertRightColor = 45
acTitleVertRightLineWeight = 75
acTitleVertRightVisibility = 105
acVertCellMargin = 5

AcTextAlignmentType​

class viktor.external.autocad.enums.AcTextAlignmentType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTextAlignmentType values, mirroring the product API’s names so code reads like its docs.

acCenterAlignment = 1
acLeftAlignment = 0
acRightAlignment = 2

AcTextAngleType​

class viktor.external.autocad.enums.AcTextAngleType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTextAngleType values, mirroring the product API’s names so code reads like its docs.

acAlwaysRightReadingAngle = 2
acHorizontalAngle = 1
acInsertAngle = 0

AcTextAttachmentDirection​

class viktor.external.autocad.enums.AcTextAttachmentDirection(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTextAttachmentDirection values, mirroring the product API’s names so code reads like its docs.

acAttachmentHorizontal = 0
acAttachmentVertical = 1

AcTextAttachmentType​

class viktor.external.autocad.enums.AcTextAttachmentType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTextAttachmentType values, mirroring the product API’s names so code reads like its docs.

acAttachmentAllLine = 8
acAttachmentBottomLine = 7
acAttachmentBottomOfBottom = 6
acAttachmentBottomOfTop = 2
acAttachmentBottomOfTopLine = 3
acAttachmentMiddle = 4
acAttachmentMiddleOfBottom = 5
acAttachmentMiddleOfTop = 1
acAttachmentTopOfTop = 0

AcTextFontStyle​

class viktor.external.autocad.enums.AcTextFontStyle(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTextFontStyle values, mirroring the product API’s names so code reads like its docs.

acFontBold = 2
acFontBoldItalic = 3
acFontItalic = 1
acFontRegular = 0

AcTextGenerationFlag​

class viktor.external.autocad.enums.AcTextGenerationFlag(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcTextGenerationFlag values, mirroring the product API’s names so code reads like its docs.

acTextFlagBackward = 2
acTextFlagUpsideDown = 4

AcToolbarDockStatus​

class viktor.external.autocad.enums.AcToolbarDockStatus(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcToolbarDockStatus values, mirroring the product API’s names so code reads like its docs.

acToolbarDockBottom = 1
acToolbarDockLeft = 2
acToolbarDockRight = 3
acToolbarDockTop = 0
acToolbarFloating = 4

AcToolbarItemType​

class viktor.external.autocad.enums.AcToolbarItemType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcToolbarItemType values, mirroring the product API’s names so code reads like its docs.

acToolbarButton = 0
acToolbarControl = 2
acToolbarFlyout = 3
acToolbarSeparator = 1

AcUnderlayLayerOverrideType​

class viktor.external.autocad.enums.AcUnderlayLayerOverrideType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcUnderlayLayerOverrideType values, mirroring the product API’s names so code reads like its docs.

acApplied = 1
acNoOverrides = 0

AcUnits​

class viktor.external.autocad.enums.AcUnits(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcUnits values, mirroring the product API’s names so code reads like its docs.

acArchitectural = 4
acDecimal = 2
acDefaultUnits = -1
acEngineering = 3
acFractional = 5
acScientific = 1

AcValueDataType​

class viktor.external.autocad.enums.AcValueDataType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcValueDataType values, mirroring the product API’s names so code reads like its docs.

acBuffer = 128
acDate = 8
acDouble = 2
acGeneral = 512
acLong = 1
acObjectId = 64
acPoint2d = 16
acPoint3d = 32
acResbuf = 256
acString = 4
acUnknownDataType = 0

AcValueUnitType​

class viktor.external.autocad.enums.AcValueUnitType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcValueUnitType values, mirroring the product API’s names so code reads like its docs.

acUnitAngle = 2
acUnitArea = 4
acUnitDistance = 1
acUnitVolume = 8
acUnitless = 0

AcVerticalAlignment​

class viktor.external.autocad.enums.AcVerticalAlignment(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcVerticalAlignment values, mirroring the product API’s names so code reads like its docs.

acVerticalAlignmentBaseline = 0
acVerticalAlignmentBottom = 1
acVerticalAlignmentMiddle = 2
acVerticalAlignmentTop = 3

AcVerticalTextAttachmentType​

class viktor.external.autocad.enums.AcVerticalTextAttachmentType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcVerticalTextAttachmentType values, mirroring the product API’s names so code reads like its docs.

acAttachmentCenter = 0
acAttachmentLinedCenter = 1

AcViewportScale​

class viktor.external.autocad.enums.AcViewportScale(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcViewportScale values, mirroring the product API’s names so code reads like its docs.

acVp100_1 = 18
acVp10_1 = 17
acVp1_1 = 2
acVp1_10 = 7
acVp1_100 = 13
acVp1_128in_1ft = 19
acVp1_16 = 8
acVp1_16in_1ft = 22
acVp1_2 = 3
acVp1_20 = 9
acVp1_2in_1ft = 28
acVp1_30 = 10
acVp1_32in_1ft = 21
acVp1_4 = 4
acVp1_40 = 11
acVp1_4in_1ft = 26
acVp1_5 = 5
acVp1_50 = 12
acVp1_64in_1ft = 20
acVp1_8 = 6
acVp1_8in_1ft = 24
acVp1and1_2in_1ft = 31
acVp1ft_1ft = 34
acVp1in_1ft = 30
acVp2_1 = 14
acVp3_16in_1ft = 25
acVp3_32in_1ft = 23
acVp3_4in_1ft = 29
acVp3_8in_1ft = 27
acVp3in_1ft = 32
acVp4_1 = 15
acVp6in_1ft = 33
acVp8_1 = 16
acVpCustomScale = 1
acVpScaleToFit = 0

AcViewportSplitType​

class viktor.external.autocad.enums.AcViewportSplitType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcViewportSplitType values, mirroring the product API’s names so code reads like its docs.

acViewport2Horizontal = 0
acViewport2Vertical = 1
acViewport3Above = 6
acViewport3Below = 7
acViewport3Horizontal = 4
acViewport3Left = 2
acViewport3Right = 3
acViewport3Vertical = 5
acViewport4 = 8

AcWindowState​

class viktor.external.autocad.enums.AcWindowState(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcWindowState values, mirroring the product API’s names so code reads like its docs.

acMax = 3
acMin = 2
acNorm = 1

AcWireframeType​

class viktor.external.autocad.enums.AcWireframeType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcWireframeType values, mirroring the product API’s names so code reads like its docs.

acIsolines = 0
acIsoparms = 1

AcXRefDemandLoad​

class viktor.external.autocad.enums.AcXRefDemandLoad(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcXRefDemandLoad values, mirroring the product API’s names so code reads like its docs.

acDemandLoadDisabled = 0
acDemandLoadEnabled = 1
acDemandLoadEnabledWithCopy = 2

AcZoomScaleType​

class viktor.external.autocad.enums.AcZoomScaleType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcZoomScaleType values, mirroring the product API’s names so code reads like its docs.

acZoomScaledAbsolute = 0
acZoomScaledRelative = 1
acZoomScaledRelativePSpace = 2

AcadSecurityParamsConstants​

class viktor.external.autocad.enums.AcadSecurityParamsConstants(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcadSecurityParamsConstants values, mirroring the product API’s names so code reads like its docs.

ACADSECURITYPARAMS_ALGID_RC4 = 26625

AcadSecurityParamsType​

class viktor.external.autocad.enums.AcadSecurityParamsType(*values)

Bases: IntEnum

New in 14.35.0

AutoCAD AcadSecurityParamsType values, mirroring the product API’s names so code reads like its docs.

ACADSECURITYPARAMS_ADD_TIMESTAMP = 32
ACADSECURITYPARAMS_ENCRYPT_DATA = 1
ACADSECURITYPARAMS_ENCRYPT_PROPS = 2
ACADSECURITYPARAMS_SIGN_DATA = 16