/** * SolidWorks Constants and Enumerations * Replaces all magic numbers with meaningful constants */ export declare enum SwDocumentType { None = 0, Part = 1, Assembly = 2, Drawing = 3 } export declare const DocumentExtensions: { readonly Part: readonly [".sldprt", ".prt"]; readonly Assembly: readonly [".sldasm", ".asm"]; readonly Drawing: readonly [".slddrw", ".drw"]; readonly Template: readonly [".prtdot", ".asmdot", ".drwdot"]; }; export declare enum SwSaveAsOptions { Silent = 1, Copy = 2, UpdateInactiveViews = 4, AvoidRebuildOnSave = 8, OverrideSaveEmodel = 16, SaveEmodelData = 32, UseCurrentWorkingDirectory = 64 } export declare enum SwSaveAsVersion { CurrentVersion = 0, Sw98plus = 5000, Sw99 = 5500, Sw2000 = 6000, Sw2001 = 7000, Sw2001Plus = 7500, Sw2003 = 8000 } export declare enum SwOpenDocOptions { Silent = 1, ReadOnly = 2, ViewOnly = 4, LoadModel = 8, DontLoadHiddenComponents = 16, LoadExternalReferences = 32, AutoMissingConfig = 64, LoadLightweight = 128, RapidDraft = 256 } export declare enum SwFeatureType { ProfileFeature = 0, ExtrudeFeature = 1, RevolveFeature = 2, SweepFeature = 3, LoftFeature = 4, BoundaryFeature = 5, FilletFeature = 6, ChamferFeature = 7, ShellFeature = 8, DraftFeature = 9, PatternFeature = 10, MirrorFeature = 11, HoleFeature = 12 } export declare enum SwEndCondition { Blind = 0, ThroughAll = 1, ThroughNext = 2, UpToVertex = 3, UpToSurface = 4, OffsetFromSurface = 5, UpToBody = 6, MidPlane = 7, ThroughAllBoth = 8, UpToSelection = 9 } export declare enum SwSelectType { Faces = 2, Edges = 3, Vertices = 4, Sketches = 5, SketchSegments = 6, SketchPoints = 7, Datums = 8, Axes = 9, Planes = 10, Components = 11, Bodies = 12, Features = 13, Dimensions = 14 } export declare enum SwRebuildOptions { Current = 0, All = 1, TopLevel = 2, OnlyFeatures = 3 } export declare enum SwMassPropertyAccuracy { Low = 0, Medium = 1, High = 2, VeryHigh = 3, Exact = 4 } export declare enum SwSheetMetalReliefType { Rectangular = 0, Obround = 1, Tear = 2 } export declare enum SwBendAllowance { BendTable = 0, KFactor = 1, BendAllowance = 2, BendDeduction = 3 } export declare enum SwDrawingViewType { Standard = 0, Projected = 1, Auxiliary = 2, Section = 3, Detail = 4, Broken = 5, BreakOutSection = 6, Isometric = 7, Named = 8 } export declare enum SwDrawingViewOrientation { Front = 0, Back = 1, Left = 2, Right = 3, Top = 4, Bottom = 5, Isometric = 6, Dimetric = 7, Trimetric = 8, Current = 9 } export declare enum SwDimensionType { Linear = 0, Angular = 1, Radial = 2, Diameter = 3, Ordinate = 4, Chamfer = 5, ArcLength = 6, Coordinate = 7 } export declare enum SwDimensionToleranceType { None = 0, Bilateral = 1, Limit = 2, Symmetric = 3, Basic = 4, Min = 5, Max = 6 } export declare enum SwExportFormat { Step = "step", Iges = "iges", Stl = "stl", Pdf = "pdf", Dxf = "dxf", Dwg = "dwg", Parasolid = "x_t", Sat = "sat", Vrml = "wrl", Obj = "obj", Ply = "ply", ThreeMf = "3mf" } export declare const ExportExtensions: Record; export declare enum SwLengthUnit { Millimeters = 0, Centimeters = 1, Meters = 2, Inches = 3, Feet = 4, FeetInches = 5, Angstroms = 6, Nanometers = 7, Microns = 8 } export declare enum SwAngleUnit { Degrees = 0, Radians = 1, Gradians = 2, DegreesMinutes = 3, DegreesMinutesSeconds = 4 } export declare enum SwMassUnit { Grams = 0, Kilograms = 1, Pounds = 2, Ounces = 3, Tons = 4 } export declare const ConversionFactors: { readonly MillimetersToMeters: 0.001; readonly CentimetersToMeters: 0.01; readonly InchesToMeters: 0.0254; readonly FeetToMeters: 0.3048; readonly MetersToMillimeters: 1000; readonly MetersToCentimeters: 100; readonly MetersToInches: 39.3701; readonly MetersToFeet: 3.28084; readonly DegreesToRadians: number; readonly RadiansToDegrees: number; readonly GramsToKilograms: 0.001; readonly PoundsToKilograms: 0.453592; readonly OuncesToKilograms: 0.0283495; readonly KilogramsToGrams: 1000; readonly KilogramsToPounds: 2.20462; readonly KilogramsToOunces: 35.274; }; export declare enum SwErrorCode { Success = 0, GenericError = 1, FileNotFound = 2, InvalidFileType = 3, ReadOnly = 4, InvalidOperation = 5, NoActiveDocument = 6, InvalidDimension = 7, InvalidFeature = 8, RebuildError = 9, SaveError = 10, ExportError = 11, MacroError = 12, SelectionError = 13, GeometryError = 14, AssemblyError = 15, DrawingError = 16 } export declare enum SwPaperSize { Letter = 0, LetterLandscape = 1, Tabloid = 2, TabloidLandscape = 3, C = 4, CLandscape = 5, D = 6, DLandscape = 7, E = 8, ELandscape = 9, A4 = 10, A4Landscape = 11, A3 = 12, A3Landscape = 13, A2 = 14, A2Landscape = 15, A1 = 16, A1Landscape = 17, A0 = 18, A0Landscape = 19, UserDefined = 20 } export declare const PaperDimensions: Record; export declare enum SwMacroSecurityLevel { Low = 0, Medium = 1, High = 2 } export declare const DefaultConfiguration: { readonly Connection: { readonly RetryAttempts: 3; readonly RetryDelay: 1000; readonly Timeout: 30000; }; readonly Cache: { readonly MaxEntries: 1000; readonly TTL: 3600000; }; readonly Logging: { readonly Level: "info"; readonly MaxFileSize: 10485760; readonly MaxFiles: 5; }; readonly Performance: { readonly MaxConcurrentOperations: 5; readonly OperationTimeout: 60000; }; readonly Templates: { readonly DefaultPartTemplate: "C:\\ProgramData\\SolidWorks\\SOLIDWORKS 2023\\templates\\Part.prtdot"; readonly DefaultAssemblyTemplate: "C:\\ProgramData\\SolidWorks\\SOLIDWORKS 2023\\templates\\Assembly.asmdot"; readonly DefaultDrawingTemplate: "C:\\ProgramData\\SolidWorks\\SOLIDWORKS 2023\\templates\\Drawing.drwdot"; }; }; export declare class SwConstants { /** * Get document type from file extension */ static getDocumentTypeFromExtension(filepath: string): SwDocumentType; /** * Convert units */ static convertLength(value: number, from: SwLengthUnit, to: SwLengthUnit): number; /** * Convert angle units */ static convertAngle(value: number, from: SwAngleUnit, to: SwAngleUnit): number; } //# sourceMappingURL=solidworks-constants.d.ts.map