大家好,今天还是介绍我们枚举应用实战系列。
下面开始介绍枚举:
(1)第一个为swTableColumnTypes_e,这个枚举的含义为表的类型,下面是官方的具体枚举值:
| Member | Description |
|---|---|
| swBendTableColumnType_Angle | 503 |
| swBendTableColumnType_BendAllowance | 507 |
| swBendTableColumnType_BendOrder | 506 |
| swBendTableColumnType_ComplementaryAngle | 505 |
| swBendTableColumnType_Direction | 502 |
| swBendTableColumnType_InnerRadius | 504 |
| swBendTableColumnType_Tag | 501 |
| swBomTableColumnType_ItemNumber | 202 |
| swBomTableColumnType_PartNumber | 201 |
| swBomTableColumnType_Quantity | 203 |
| swHoleTableColumnType_Quantity | 104 |
| swHoleTableColumnType_Size | 105 |
| swHoleTableColumnType_Tag | 103 |
| swHoleTableColumnType_XLocation | 101 |
| swHoleTableColumnType_YLocation | 102 |
| swPunchTableColumnType_Angle | 605 |
| swPunchTableColumnType_PunchID | 603 |
| swPunchTableColumnType_Quantity | 604 |
| swPunchTableColumnType_Tag | 606 |
| swPunchTableColumnType_XLocation | 601 |
| swPunchTableColumnType_YLocation | 602 |
| swRevisionTableColumnType_Approved | 305 |
| swRevisionTableColumnType_CustomProperties | 306 |
| swRevisionTableColumnType_Date | 304 |
| swRevisionTableColumnType_Description | 303 |
| swRevisionTableColumnType_Revision | 302 |
| swRevisionTableColumnType_Zone | 301 |
| swTableColumnType_UserDefined | 0 |
| swWeldTableColumnType_CustomProperty | 404 |
| swWeldTableColumnType_CutListName | 403 |
| swWeldTableColumnType_ItemNumber | 401 |
| swWeldTableColumnType_Quantity | 402 |
(2)第二个为swToolbar_e,这个枚举的含义为工具栏标识符,下面是官方的具体枚举值:
| Member | Description |
|---|---|
| sw2Dto3DToolbar | 24 |
| swAlignToolbar | 22 |
| swAnimationPaneToolbar | 36 |
| swAnnotationToolbar | 9 |
| swAssemblyToolbar | 7 |
| swBlocksToolbar | 29 |
| swConfigurationToolbar | 41 |
| swContextToolbar | 28 |
| swCurvesToolbar | 18 |
| swDimXpertToolbar | 33 |
| swDisplayStatesToolbar | 42 |
| swDrawingToolbar | 8 |
| swFeatureToolbar | 11 |
| swFontToolbar | 12 |
| swLayerToolbar | 23 |
| swLayoutToolbar | 38 |
| swLineToolbar | 13 |
| swMacroToolbar | 5 |
| swMainToolbar | 1 |
| swMoldToolsToolbar | 19 |
| swOfficeToolbar | 32 |
| swQuickSnapToolbar | 31 |
| swReferenceGeometryToolbar | 15 |
| swRenderToolbar | 39 |
| swRoutingToolbar | 25 |
| swScreenCaptureToolbar | 37 |
| swSelectionFilterToolbar | 14 |
| swSheetFormatToolbar | 40 |
| swSheetMetalToolbar | 20 |
| swSimulationToolbar | 26 |
| swSketchRelationsToolbar | 4 |
| swSketchToolbar | 6 |
| swSketchToolsToolbar | 0 |
| swSOLIDWORKSMBDToolbars | 43 |
| swSplineToolbar | 27 |
| swStandardToolbar | 2 |
| swStandardViewsToolbar | 16 |
| swSurfacesToolbar | 21 |
| swTableToolbar | 34 |
| swTaskPaneToolbar | 30; call ISldWorks::SetToolbarVisibility to show or hide the SOLIDWORKS Task Pane |
| swTolXpertToolbar | 33 |
| swToolsToolbar | 17 |
| swViewToolbar | 3 |
| swWebToolbar | 10 |
| swWeldmentToolbar | 35 |
(3)第三个为swUserPreferenceRoutingFileLocations_e,这个枚举的含义为路由文件位置的用户首选项,下面为官方使用的具体枚举值:
| Member | Description |
|---|---|
| swFileLocationsRoutingAssemblyTemplate | 2 |
| swFileLocationsRoutingCableLibrary | 5 |
| swFileLocationsRoutingComponentLibrary | 6 |
| swFileLocationsRoutingCoveringLibrary | 8 |
| swFileLocationsRoutingInterconnectsLibrary | 10 = Allow reading and writing interconnectsandaccessorieslibrary.xml file path |
| swFileLocationsRoutingPipeTubeCoveringLibrary | 4 |
| swFileLocationsRoutingStandardCable | 7 |
| swFileLocationsRoutingStandardTubes | 3 |
| swFileLocationsRoutingTagSchemes | 9 |
| swRoutingLibraryPath | 1 |
本篇文章要介绍的就是这么多,我们下篇文章再见。