大家好,今天要介绍的还是关于枚举的使用,大家没看过上一篇的额可以去看一下,这是地址:
C# Solidworks二次开发:枚举在solidworks中的使用详解-CSDN博客
下面开始介绍今天的枚举:
(1)第一个为swArcLengthLeaderType_e,这个枚举的含义为弧长尺寸领导样式,下面是官方的具体枚举值:
Member | Description |
---|---|
swArcLengthLeaderParallel | 1 = Leaders are parallel to each other |
swArcLengthLeaderRadial | 2 = Leaders are radial from the arc center point |
(2)第二个要介绍的为swCommand_e,这个枚举的含义为要显示的对话框或文件,下面是官方的具体枚举值:
Member | Description |
---|---|
swCurrentTipOfDayString | 8 |
swFileNew | 1 = Display the File, New dialog |
swFileOpen | 0 = Display the File, Open dialog |
swFontSize | 10 = Reserved; not in use |
swInterfaceBrightnessTheme | 11 = Get current user-interface brightness theme |
swNextTipOfDayString | 7 |
swOpenHTMLHelp | 3 = Given the path and compiled HTML filename (has .chm file name extension), this option opens the HTML Help file in a new window; if no path is given, the current language folder below the folder in which sldworks.exe exists is used |
swOpenRecentFile | 2 = Given a number between ID_FILE_MRU_FILE1 and ID_FILE_MRU_FILE1 + 9, this option opens the matching file from the list of most recently used files |
swPrevTipOfDayString | 9 |
swReserved | 4 = Reserved; not in use |
swUserExperienceLevel | 6 = User experience level: new user, existing user to this revision, or existing user but new to this revision |
swVerticalMkt | 5 = Current vertical market user-interface sett |
(3)第三个为swFileLoadError_e,这个枚举值的含义为文件加载时候的错误代码,下面是官方的具体枚举值:
Member | Description |
---|---|
swAddinInteruptError | 1048576 or 0x100000: The user attempted to open a file, and then interrupted the open-file routine to open a different file |
swApplicationBusy | 8388608 or 0x800000 |
swBasePartNotLoadedWarn | Obsolete; see swFileLoadWarning_e |
swDrawingANSIUpdateWarn | Obsolete; see swFileLoadWarning_e |
swDrawingSFSymbolConvertWarn | Obsolete; see swFileLoadWarning_e |
swDrawingsOnlyRapidDraftWarn | Obsolete; see swFileLoadWarning_e |
swFileAlreadyOpenWarn | Obsolete; see swFileLoadWarning_e |
swFileCriticalDataRepairError | 4194304 or 0x400000 = A document has critical data corruption |
swFileNotFoundError | 2 or 0x2 = Unable to locate the file; the file is not loaded or the referenced file (that is, component) is suppressed |
swFileRequiresRepairError | 2097152 or 0x200000 = A document has non-critical custom property data corruption |
swFileWithSameTitleAlreadyOpen | 65536 or 0x10000 = A document with the same name is already open |
swFutureVersion | 8192 or 0x2000 = The document was saved in a future version of SOLIDWORKS |
swGenericError | 1 or 0x1 = Another error was encountered |
swIdMatchError | Obsolete; see swFileLoadWarning_e |
swInvalidFileTypeError | 1024 or 0x400 = File type argument is not valid |
swLiquidMachineDoc | 131072 or 0x20000 = File encrypted by Liquid Machines |
swLowResourcesError | 262144 or 0x40000 = File is open and blocked because the system memory is low, or the number of GDI handles has exceeded the allowed maximum |
swNeedsRegenWarn | Obsolete; see swFileLoadWarning_e |
swNoDisplayData | 524288 or 0x80000 = File contains no display data |
swReadOnlyWarn | Obsolete; see swFileLoadWarning_e |
swSharingViolationWarn | Obsolete; see swFileLoadWarning_e |
swSheetScaleUpdateWarn | Obsolete; see swFileLoadWarning_e |
swViewMissingReferencedConfig | Obsolete; see swFileLoadWarning_e |
swViewOnlyRestrictions | Obsolete; see swFileLoadWarning_e |
本篇文章就介绍这三个枚举值,我们下篇文章再见。