C# Solidworks二次开发:枚举应用实战(第三讲)

ops/2024/10/8 18:25:30/

大家好,今天继续介绍枚举相关内容。

下面是今天要介绍的枚举:

(1)第一个为swACisOutputVersion,这个枚举为ACIS的版本,下面是官方的具体解释:

其枚举值为:

MemberDescription
swAcisOutputVersion_10010
swAcisOutputVersion_11011
swAcisOutputVersion_12012
swAcisOutputVersion_13013
swAcisOutputVersion_14014
swAcisOutputVersion_15015
swAcisOutputVersion_160
swAcisOutputVersion_16016
swAcisOutputVersion_171
swAcisOutputVersion_17017
swAcisOutputVersion_18018
swAcisOutputVersion_19019 
swAcisOutputVersion_20
swAcisOutputVersion_20020
swAcisOutputVersion_21
swAcisOutputVersion_21021 
swAcisOutputVersion_22022
swAcisOutputVersion_27027
swAcisOutputVersion_30
swAcisOutputVersion_40
swAcisOutputVersion_506
swAcisOutputVersion_607
swAcisOutputVersion_70
swAcisOutputVersion_80

(2)第二个为swAnnotationType_e,这个枚举为注释类型,下面是具体的枚举值:

MemberDescription
swBlock12 
swCenterLine15 
swCenterMarkSym13 
swCThread
swCustomSymbol
swDatumOrigin16 
swDatumTag
swDatumTargetSym
swDisplayDimension
swDowelSym10 
swGTol
swLeader11 
swNote
swPMIOnly19
swRevisionCloud18
swSFSymbol
swTableAnnotation14 
swWeldBeadSymbol17 
swWeldSymbol

(3)第三个为swArrowPosition,这个枚举为气泡工具提示的箭头位置,下面是具体的枚举值:

MemberDescription
swArrowDownBottomLeft6 = Down and on the bottom-left edge of bubble
swArrowDownBottomRight7 = Down and on the bottom-right edge of bubble
swArrowLeftBottom1 = Left and at bottom corner of bubble
swArrowLeftOrRight10 = Left or right; code decides if arrow on top or bottom corner
swArrowLeftOrRightBottom9 = Left or right and in one of the bottom corners of bubble
swArrowLeftOrRightTop8 = Left or right and in one of the top corners of bubble
swArrowLeftTop0 = Left and at top corner of bubble
swArrowNone14 = No arrow used; instead, a floating
swArrowRightBottom

3 = Right and at bottom corner of bubble

swArrowRightTop2 = Right and at top corner of bubble
swArrowUnknown15 = Do not know where to put the arrow; instead, ActiveX control decides where to put arrow or its default position is used
swArrowUpOrDown13 = Upward or downward; code decides if arrow left or right of the bubble
swArrowUpOrDownLeft11 = Upward or downward and on left side of bubble
swArrowUpOrDownRight12 = Upward or downward and on right side of bubble
swArrowUpTopLeft4 = Upward and on the top-left edge of bubble
swArrowUpTopRight5 = Upward and on the top-right edge of bubble

(4)第四个枚举为swAppNOtify_e,这个枚举为应用程序的通知,下面是具体的枚举值:

MemberDescription
swAppActiveDocChangeNotify4 = ActiveDocChangeNotify
swAppActiveModelDocChangeNotify5 = ActiveModelDocChangeNotify
swAppBackgroundProcessingEndNotify34 = BackgroundProcessingEndNotify
swAppBackgroundProcessingStartNotify33 = BackgroundProcessingStartNotify
swAppBegin3DInterconnectTranslationNotify37 = Begin3DInterconnectTranslationNotify
swAppBeginRecordNotify24 = Not used.
swAppBeginTranslationNotify16 = BeginTranslationNotify
swAppCommandCloseNotify29 = CommandCloseNotify
swAppCommandOpenPreNotify31 = CommandOpenPreNotify
swAppDestroyNotify3 = DestroyNotify
swAppDocumentConversionNotify9 = DocumentConversionNotify
swAppDocumentLoadNotify27 = Obsolete
swAppDocumentLoadNotify228 = DocumentLoadNotify2
swAppEnd3DInterconnectTranslationNotify38 = End3DInterconnectTranslationNotify
swAppEndRecordNotify25 = Not used.
swAppEndTranslationNotify16 = EndTranslationNotify
swAppFileCloseNotify32 = FileCloseNotify
swAppFileNewNotify2 = Obsolete
swAppFileNewNotify2

12 = FileNewNotify2

NOTE: Because it is possible to have a NULL active document when an add-in is notified using swAppFileOpenNotify2, use ISldWorks::IGetOpenDocumentByName2 instead of ISldWorks::IActiveDoc2.

swAppFileNewPreNotify26 = FileNewPreNotify
swAppFileOpenNotify1 = Obsolete
swAppFileOpenNotify213 = FileOpenNotify2
swAppFileOpenPostNotify22 = FileOpenPostNotify
swAppFileOpenPreNotify21 = FileOpenPreNotify
swAppInterfaceBrightnessThemeChangeNotify35 = InterfaceBrightnessThemeChangeNotify
swAppJournalWriteNotify27 = Not used.
swAppLightPMCreateNotifyNot used.
swAppLightSheetCreateNotify18 = LightSheetCreateNotify
swAppLightweightComponentOpenNotify10 = Not used.
swAppNonNativeFileOpenNotify7 = NonNativeFileOpenNotify
swAppOnIdleNotify20 = OnIdleNotify
swAppPromptForFilenameNotify15 = PromptForFilenameNotify
swAppPromptForMultipleFilenamesNotify30 = PromptForMultipleFileNamesNotify
swAppPropertySheetCreateNotify6 = PropertySheetCreateNotify
swAppReferencedFilePreNotify23 = ReferencedFilePreNotify
swAppReferencedFilePreNotify236 = ReferencedFilePreNotify2
swAppReferenceNotFoundNotify14 = ReferenceNotFoundNotify
swAppStandardsDatabaseChangeNotify19 = Not used.

这就是本篇文章要介绍的全部内容,我们下篇文章再见。


http://www.ppmy.cn/ops/14122.html

相关文章

表单插件——jquery.form.js

表单插件——jquery.form.js 表单插件(Form Plugin) 下载地址 :http://plugins.jquery.com/form/ 文件名:jquery.form.js version: 3.50.0-2014.02.05(最新版本) 功能:提供表单数据、重置表单项目、使用Ajax提交数据等 获取表单数据: 对于表单而言&#xff0c…

python爬虫之xpath4

1 最终项目实现的代码 仙剑 #!/usr/bin/env python ​ import logging import requests import re from urllib.parse import urljoin import pymongo import multiprocessing ​ mongo_client pymongo.MongoClient("mongodb://192.168.135.131:27017/") db mong…

[Swift]单元测试

编写单元测试是确保你的代码质量和功能正确性的重要步骤 一、编写单元测试的详细流程 1. 创建一个新的Xcode项目 如果你尚未创建一个项目,首先你需要在Xcode中创建一个新的iOS项目: 打开Xcode,选择“File” > “New” > “Project”…

【Interconnection Networks 互连网络】Dragonfly Topology 蜻蜓网络拓扑

蜻蜓拓扑 Dragonfly Topology 1. 拓扑参数2. Topology Description 拓扑描述3. Topology Variations 拓扑变体 蜻蜓拓扑 Dragonfly Topology 1. 拓扑参数 Dragonfly拓扑参数: N N N: 网络中终端(terminal)的总数量 p p p: 连接到每个路由器的终端数量 a a a: 每…

ArcGIS无法开始编辑TIN!开始编辑TIN显示灰色

ArcGIS无法开始编辑TIN!开始编辑TIN显示灰色? 解决方案! 1、确认自定义——扩展模块中空间分析、3D分析模块勾选。 2、确认以上后,还是不能编辑的话,我们可以调出 3D分析分析工具条,你就会发现。TIN编辑工…

Spring Gateway的入门概述简介

1. 为什么要有网关 在微服务中,一般都会把相对独立的业务或者功能划分成一个独立的服务,做到业务或者功能之间的隔离,分开部署。但是在请求到这些正式的服务的时候一般会有一些预前的处理,比如:权限校验,流…

自建zerotier服务——实现更快速安全的远程连接

zerotier介绍 ZeroTier 是地球上智能可编程的以太网交换机。它允许所有网络设备、虚拟机 (VMs)、容器和应用程序通信,就好像它们都位于同一个物理数据中心或云区域中一样。 功能简介: 全球虚拟网络: ZeroTierOne 可以创建一个全球虚拟的软件…

AI作画算法原理详解

人工智能绘画(AI绘画)算法通常基于深度学习框架,尤其是生成对抗网络(GANs)。这些算法通过训练大量的艺术作品数据,学会生成新的图像,这些图像在风格和内容上与训练数据相似。 生成对抗网络&…