C# Solidworks二次开发:枚举在solidworks中的使用详解

大家好,今天要介绍的是一些枚举,这些枚举在solidworks中还是非常重要的。

下面直接开始介绍枚举:

(1)第一个要介绍的是swDrawingNotify_e,这个枚举值的含义是工程图操作中的通知,下面是官方的枚举值:

MemberDescription
swDrawingActivateSheetPostNotify53 = ActivateSheetPostNotify
swDrawingActivateSheetPreNotify52 = ActivateSheetPreNotify
swDrawingAddCustomPropertyNotify20 = AddCustomPropertyNotify
swDrawingAddDvePagePreNotify40 = Not used.
swDrawingAddItemNotify15 = AddItemNotify
swDrawingAutoSaveNotify10 = AutoSaveNotify
swDrawingAutoSaveToStorageNotify11 = AutoSaveToStorageNotify
swDrawingAutoSaveToStorageStoreNotify48 = AutoSaveToStorageStoreNotify
swDrawingChangeCustomPropertyNotify21 = ChangeCustomPropertyNotify
swDrawingClearSelectionsNotify37 = ClearSelectionsNotify
swDrawingCommandManagerTabActivatedPreNotify54 = CommandManagerTabActivatedPreNotify
swDrawingConfigChangeNotify12 = ActiveConfigChangeNotify
swDrawingConfigChangePostNotify13 = ActiveConfigChangePostNotify
swDrawingDeleteCustomPropertyNotify22 = DeleteCustomPropertyNotify
swDrawingDeleteItemNotify17 = DeleteItemNotify
swDrawingDeleteItemPreNotify36 = DeleteItemPreNotify
swDrawingDeleteSelectionPreNotify24 = DeleteSelectonPreNotify
swDrawingDestroyNotify2 = Obsolete
swDrawingDestroyNotify242 = DestroyNotify2
swDrawingDimensionChangeNotify32 = DimensionChangeNotify
swDrawingDynamicHighlightNotify31 = DynamicHighlightNotify
swDrawingEquationEditorPostNotify39 = EquationEditorPostNotify
swDrawingEquationEditorPreNotify38 = EquationEditorPreNotify
swDrawingFeatureManagerTabActivatedNotify56 = FeatureManagerTabActivatedNotify
swDrawingFeatureManagerTabActivatedPreNotify55 = FeatureManagerTabActivatedPreNotify
swDrawingFeatureManagerTreeRebuildNotify29 = FeatureManagerTreeRebuildNotify
swDrawingFileReloadCancelNotify33 = Not used.
swDrawingFileReloadNotify19 = Not used.
swDrawingFileReloadPreNotify25 = Not used.
swDrawingFileSaveAsNotify7 = Obsolete
swDrawingFileSaveAsNotify223 = FileSaveAsNotify2
swDrawingFileSaveNotify6 = FileSaveNotify
swDrawingFileSavePostCancelNotify34 = FileSavePostCancelNotify
swDrawingFileSavePostNotify26 = FileSavePostNotify
swDrawingInsertTableNotify49 = InsertTableNotify
swDrawingLoadFromStorageNotify8 = LoadFromStorageNotify
swDrawingLoadFromStorageStoreNotify27 = LoadFromStorageStoreNotify
swDrawingModifyNotify18 = ModifyNotify
swDrawingModifyTableNotify50 = ModifyTableNotify
swDrawingNewSelectionNotify5 = NewSelectionNotify
swDrawingRedoPostNotify45 = RedoPostNotify
swDrawingRedoPreNotify46 = RedoPreNotify
swDrawingRegenNotify1 = RegenNotify
swDrawingRegenPostNotify3 = RegenPostNotify
swDrawingRenameDisplayTitleNotify57 = RenameDisplayTitleNotify
swDrawingRenameItemNotify16 = RenameItemNotify
swDrawingSaveToStorageNotify9 = SaveToStorageNotify
swDrawingSaveToStorageStoreNotify28 = SaveToStorageStoreNotify
swDrawingSketchSolveNotify35 = SketchSolveNotify
swDrawingUndoPostNotify43 = UndoPostNotify
swDrawingUndoPreNotify47 = UndoPreNotify
swDrawingUnitsChangeNotify41 = UnitsChangeNotify
swDrawingUserSelectionPostNotify51 = UserSelectionPostNotify
swDrawingUserSelectionPreNotify44 = UserSelectionPreNotify
swDrawingViewCreatePreNotify30 = ViewCreatePreNotify
swDrawingViewNewNotify4 = Obsolete
swDrawingViewNewNotify214 = ViewNewNotify2

使用时候有一个注意事项:

要接收通知,DLL应用程序必须按对象类型注册通知。这种注册必须针对特定对象的每个实例进行。

(2)第二个为swFeatureError_e,这个枚举的意思是特征的错误代码,下面是官方的枚举值:

MemberDescription
swFeatureErrorExtrusionBadGeometricConditions32 = Unable to create this extruded feature due to geometric conditions
swFeatureErrorExtrusionBossContourInvalid37 = Bosses require one or more closed contours that do not self-intersect
swFeatureErrorExtrusionBossContourOpenAndClosed36 = Bosses cannot have both open and closed contours
swFeatureErrorExtrusionCutContourInvalid34 = Extruded cuts require at least one closed or open contour that does not self-intersect
swFeatureErrorExtrusionCutContourOpenAndClosed33 = Extruded cuts cannot have both open and closed contours
swFeatureErrorExtrusionDisjoint30 = Feature would create a disjoint body; direction may be wrong
swFeatureErrorExtrusionNoEndFound31 = Cannot locate end of feature
swFeatureErrorExtrusionOpenCutContourInvalid35 = Open extruded cuts require a single open contour that does not self-intersect
swFeatureErrorFeatureDeprecated49 
swFeatureErrorFeatureObsolete50 
swFeatureErrorFilletCannotExtend16 = Selected elements cannot be extended to intersect
swFeatureErrorFilletInvalidRadius12 = Invalid fillet radius or a face blend fillet recommended
swFeatureErrorFilletModelGeometry14 = Failed to create fillet due to model geometry
swFeatureErrorFilletNoEdge13 = Edge for fillet/chamfer does not exist
swFeatureErrorFilletNoFace11 = Face for fillet/chamfer does not exist
swFeatureErrorFilletNoLoop10 = Loop for fillet/chamfer does not exist
swFeatureErrorFilletRadiusEliminateElement17 = Specified radius would eliminate one of the elements
swFeatureErrorFilletRadiusTooBig18 = Radius is too big or the elements are tangent or nearly tangent
swFeatureErrorFilletRadiusTooBig219 = Not used
swFeatureErrorFilletRadiusTooSmall15 = Radius too small
swFeatureErrorMateBroken48 = One or more mate entities were suppressed
swFeatureErrorMateDanglingGeometry43 = Mate points to dangling geometry
swFeatureErrorMateEntityFailed45 = Mating is not supported for one of the components or one of the components cannot currently be modified
swFeatureErrorMateEntityNotLinear44 = Non-linear edges cannot be used for mating
swFeatureErrorMateFailedCreatingSurface40 = Mating surface type is not supported
swFeatureErrorMateIlldefined47 = This mate cannot be solved. Consider:
  • Deleting this mate.

  • Moving the assembly closer to the desired solution with dragging. 

  • Adding more mates to further define the assembly.

  • Changing the mating scheme

swFeatureErrorMateInvalidEdge38 = One of the edges of this mate is suppressed, invalid, or no longer present
swFeatureErrorMateInvalidEntity41 = One of the entities of this mate is suppressed, invalid, or no longer present
swFeatureErrorMateInvalidFace39 = One of the faces of this mate is suppressed, invalid, or no longer present
swFeatureErrorMateOverdefined46 = This mate is over-defining the assembly; consider deleting some of the over-defining mates
swFeatureErrorMateUnknownTangent42 = Tangent not satisfied
swFeatureErrorNone0 = No error
swFeatureErrorPartialEdgeFilletCrossOverEndCondition62 = End points cross over and result in a zero thickness fillet
swFeatureErrorPartialEdgeFilletFailedToRepair68 = There are no references to repair
swFeatureErrorPartialEdgeFilletInvalidOffsetValue61 = Total offset from start point and end point must be less than 100%
swFeatureErrorPartialEdgeFilletInvalidReferenceEntity64 = Reference entity is invalid
swFeatureErrorPartialEdgeFilletMissingReferenceEntity63 = Reference entity is missing
swFeatureErrorPartialEdgeFilletMultiProjectionPoint67 = Failed to find a unique point for projection of reference offset
swFeatureErrorPartialEdgeFilletNoEndEdge56 = Failed to find end edge
swFeatureErrorPartialEdgeFilletNoIntersection52 = No intersection between reference entity and fillet edge
swFeatureErrorPartialEdgeFilletNoMainEdge57 = Failed to find the fillet/chamfer edge
swFeatureErrorPartialEdgeFilletNoPropagateEdges54 = Failed to find propagate edges
swFeatureErrorPartialEdgeFilletNoReferenceEntity59 = Select a sketch point, reference point, reference plane, or planar face
swFeatureErrorPartialEdgeFilletNoStartEdge55 = Failed to find a start edge
swFeatureErrorPartialEdgeFilletNotSupported65 = Partial edge fillet is not supported
swFeatureErrorPartialEdgeFilletNotSupportedForClosedLoop66 = Some edges form closed loops; partial edge fillet does not support closed loops
swFeatureErrorPartialEdgeFilletOffsetTooBig58 = The fillet offset is too large
swFeatureErrorPartialEdgeFilletTooManyRefEntities60 = Too many reference entities selected
swFeatureErrorPartialEdgeFilletUpdateFailed53 = Failed to update the partial edge data
swFeatureErrorUnknown1 = Unknown error
swSketchErrorExtRefFail51 = Sketch error

(3)第三个为swFeatureNameID_e,这个枚举的含义为特征的名称ID,下面是官方的具体枚举值:

MemberDescription
swFmAbsoluteViewAbsolute view
swFmAEM3DContact3D contact
swFmAEMGravityGravity
swFmAEMLinearDamperLinear damper
swFmAEMLinearForceLinear force
swFmAEMLinearMotionSpringLinear motion spring
swFmAEMLinearMotorLinear motor
swFmAEMLinearSpringLinear spring
swFmAEMRotationalMotorRotational motor
swFmAEMTorqueTorque
swFmAEMTorsionalDamperTorsional damper
swFmAEMTorsionalMotionSpringTorsional motion spring
swFmAEMTorsionalSpringTorsional spring
swFmAttributeAttribute
swFmAuxiliaryViewAuxiliary view
swFmBaseBodyBase body
swFmBaseFlangeBase flange
swFmBlendBlend
swFmBlendCutBlend cut
swFmBomTableFeatureBOM table feature
swFmBossBoss
swFmBoundingBoxBoundingBox
swFmBreakCornerBreak corner
swFmCavityCavity
swFmCenterMarkCenter mark
swFmChamferChamfer
swFmCirPatternCircular pattern
swFmCoordinateSystemCoordinate system
swFmCornerTrimCorner trim
swFmCosmeticThreadCosmetic thread
swFmCrossBreakCross break
swFmCurvePatternCurvePattern
swFmCutCut
swFmDerivedLPatternDerived pattern
swFmDetailCircleDetail circle
swFmDetailViewDetail view
swFmDimPatternDimPattern
swFmDraftDraft
swFmDrSectionLineSection line
swFmDrSheetDrawing sheet
swFmEdgeFlangeEdge flange
swFmExtrusionExtrusion
swFmFeatureFolderFeature folder
swFmFilletFillet
swFmFillPatternAPattern
swFmFlatPatternFlat pattern
swFmFlattenBendsFlatten bends
swFmFormToolInstanceForm tool instance
swFmGroundPlaneGroundPlane
swFmHoleTableFeatureHole table feature
swFmHoleWzdHole wizard
swFmImportedImported
swFmLibraryFeatureLibrary feature
swFmLocalChainPatternLocalChainPattern
swFmLocalCirPatternLocalCirPattern
swFmLocalCurvePatternLocalCurvePattern
swFmLocalLPatternLocalLPattern
swFmLocalSketchPatternLocalSketchPattern
swFmLPatternLinear pattern
swFmMateCamTangentTangent mate
swFmMateCoincidentCoincident mate
swFmMateConcentricConcentric mate
swFmMateDistanceDimDistance mate
swFmMateGearDimGear mate
swFmMateHingeHinge mate
swFmMateLinearCouplerLinear coupler mate
swFmMateLockLock mate
swFmMateParallelParallel mate
swFmMatePerpendicularPerpendicular mate
swFmMatePlanarAngleDimAngle mate
swFmMateProfileCenterProfile center mate
swFmMateRackPinionDimRack and pinion mate
swFmMateScrewScrew mate
swFmMateSlotSlot mate
swFmMateSymmetricSymmetric mate
swFmMateTangentTangent mate
swFmMateUniversalJointUniversal joint mate
swFmMateWidthWidth mate
swFmMirrorComponentMirror component
swFmMirrorPatternMirror pattern
swFmMirrorSolidMirror solid
swFmNormalCutSheet metal normal cut
swFmOneBendOne bend
swFmProcessBendsProcess bends
swFmProfileFeatureProfile feature
swFmRefAxisReference axis
swFmRefCurveReference curve
swFmReferenceReference
swFmReferenceCurveReference curve
swFmRefPlaneReference plane
swFmRefSurfaceReference or sweep surface
swFmRelativeViewRelative view
swFmRevCutReference cut
swFmRevisionTableFeatureRevision table feature
swFmRevolutionRevolve
swFmSectionAssemViewSection view of assembly
swFmSectionPartViewSection view of part
swFmSheetMetalSheet metal
swFmShellShell
swFmSketchBendSketch bend
swFmSketchHoleSketch hole
swFmSketchPatternSketchPattern
swFmSM3dBendSheet metal 3D bend
swFmSolidBodyFolderSolid body folder
swFmStockStock
swFmSurfaceBodyFolderSurface body folder
swFmSurfCutSurface cut
swFmSweepSweep boss
swFmSweepCutSweep cut
swFmSweepThreadSweep thread
swFmTabAndSlotTab and Slot
swFmTablePatternTablePattern
swFmThickenThicken
swFmThickenCutThicken cut
swFmUnfoldedViewUnfolded view
swFmVarFilletVariable fillet
swFmWeldMemberFeatWeldment feature

本篇文章介绍的就是这三种枚举,更多的枚举介绍,我们下篇文章再见。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/559733.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

线上真实案例之执行一段逻辑后报错Communications link failure

1.问题发现 在开发某个项目的一个定时任务计算经销商返利的功能时,有一个返利监测的调度,如果某一天返利计算调度失败了,需要重新计算,这个监测的调度就会重新计算某天的数据。 在UAT测试通过,发布生产后&#xff0c…

NVIDIA安装程序失败-Nsight Visual Studio Edition失败解决办法

博主是要升级cuda版本,那么在安装新版本之前需要卸载以前的版本。 博主一溜卸载下去,最后有这么个东西卸载不掉,Nsight Visual Studio Edition 不管是电脑系统卸载还是360卸载,都卸载不掉。 此时安装新的cuda也遇到了这个问题 由…

PLC存储器分类及西门子SIMATIC S7-1200存储器参数

存储器用来储存程序和数据,分为系统存储器和用户存储器。 系统存储器存放由PLC生产厂商编写好的系统程序,并固化在只读存储器(ROM)内,用户不能修改。用户存储器存放用户根据控制要求编写的应用程序。目前大多数PLC采用…

面试经典150题——从中序与后序遍历序列构造二叉树

1. 题目描述 2. 题目分析与解析 其实这个题目和昨天那个很相似,思考思路如下: 解决从中序(inorder)与后序(postorder)遍历序列构造二叉树的问题时,考虑到这两个遍历序列为我们提供了树结构中…

解决方案 SHUTDOWN_STATE xmlrpclib.py line: 794 ERROR: supervisor shutting down

Supervisor操作命令 重新加载 Supervisor 配置: sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl restart all这将重新读取 Supervisor 的配置文件,更新进程组,然后重启所有进程。 查看 Supervisor 日志&#xff1…

尺取法知识点讲解

一、固定长度的情况: 最小和(sum) 输入N个数的数列,所有相邻的M个数的和共有N-M1个,求其中的最小值。 输入格式 第1行,2个整数N,M,范围在[3…100000],N>M。 第2行,有N个正…

R语言入门:“Hellinger“转化和“normalize“转化(弦转化)的公式表示与R代码实现

1、写在前面 vegan包中的decostand()函数为群落生态学研究提供了一些流行的(和有效的)标准化方法。有关decostand()函数标准化的一些标准化方法可以看我的另一篇笔记:R语言入门:vegan包使用decostand()函数标准化方法 由于在网络上没有找到关于这两个转…

Redis-键值设计

Redis-键值设计 1.设置key的规范 遵循基本格式:【业务名称】:【数据名】:【id】 可读性强,在客户端的情况下使用:如果前缀相同会分目录层级长度不超过44字节 string数据结构的三种类型,在44字节之内是embstring 内存…

鸿蒙应用开发之Web组件3

前面学习了从网上加载网页的显示,本文将要学习加载本地的网页。比如很多显示的内容,可以制作网页的文件格式,然后直接使用它来显示,就可以减少界面的制作。另外,当手机没有网络的时候,如果想从网络上获取内容就会失败,这时候可以使用本地的网页内容来代替。这样不会导致…

Python的Logging模块高级用法-日志处理

👽发现宝藏 前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。【点击进入巨牛的人工智能学习网站】。 探索Python中的日志处理:Logging模块的高级用法 在Python应用程序中&#xff0…

lementui el-menu侧边栏占满高度且不超出视口

做了几次老是忘记,这次整理好逻辑做个笔记方便重复利用; 问题:elementui的侧边栏是占不满高度的;但是使用100vh又会超出视口高度不美观; 解决办法: 1.获取到侧边栏底部到视口顶部的距离 2.获取到视口的高…

【动态规划】dp 路径问题(不同路径、路径最小和、地下城游戏...)

文章目录 1. 前言 - 理解动态规划算法1.5 关于dp路径问题2. 例题2.1_不同路径Warning. 关于状态表示 3. 算法题3.1_不同路径II3.2_珠宝的最高价值3.3_下降路径最小和3.4_最小路径和3.5_地下城游戏关于状态表示的两种选法: 1. 前言 - 理解动态规划算法 关于 动态规划…

Pytorch 之torch.nn初探 池化--Pooling Layers

任务描述 本关任务:本关提供了一个Variable 类型的变量x,要求按照条件创建一个Conv2d变量conv,一个MaxPool2d变量pool,对x应用卷积和最大池化操作并赋值给变量outpout_pool,并输出outpout_pool 的大小。 相关知识 P…

Blerden4.1基础操作方法

软件安装 下载软件地址 中文文档 偏好设置 编辑——》偏好设置——》界面——》设置分辨率缩放 1.20 方便观看字体 设置快捷键 是为了方便几个3d软件都变成同一种操作方式 这样就不会自己搞混了 编辑——》偏好设置——》键位映射——》3D视图——》3D视图(全局…

将windows作为网关

开启转发 reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v IPEnableRouter /D 1 /f开启routing and remote access服务 这样局域网里面别的设备能通过windows进行上网 参考:https://www.cnblogs.com/chrishg/articles/12861053.html

Springboot+Vue项目-基于Java+MySQL的房屋租赁系统(附源码+演示视频+LW)

大家好!我是程序猿老A,感谢您阅读本文,欢迎一键三连哦。 💞当前专栏:Java毕业设计 精彩专栏推荐👇🏻👇🏻👇🏻 🎀 Python毕业设计 &…

OceanBase V4.2特性解析:用 Show Trace 快速定位数据库性能瓶颈

在数据库日常运维中,当遇到慢SQL问题时,若无法迅速查明原因,将极大地影响用户的使用感受,甚至可能引发业务或服务的中断。相较于单机数据库,分布式数据库系统因其涉及多个节点和多组件的协同工作,集群规模可…

短视频流媒体平台的系统设计

1. 功能需求: 我们的系统有两类参与者 内容创作者 •上传任何类型的视频(格式编解码器)•视频可以被删除•视频元数据•必填项: 标题,作者,描述•选填项: 分类/标签列表•可以随时更新•当视频对观众可用时,向内容创作…

怎么把相机储存卡里的照片导出来?介绍两种方法

随着摄影技术的不断发展和普及,相机已成为我们记录生活、捕捉美好瞬间的设备。然而,对于许多摄影爱好者来说,如何将相机储存卡里的照片安全、高效地导出到电脑或其他设备中,却成为了一个令人头疼的问题。本文将为您详细介绍从相机…

17.C++常用的算法_集合算法

文章目录 遍历算法1. set_intersection()代码工程运行结果 2. set_union()代码工程运行结果 3. set_difference()代码工程运行结果 遍历算法 1. set_intersection() 代码工程 /*1.求交集的两个集合必须是有序序列*/ /*2.目标容器开辟空间需要从两个容器中取较小值*/ /*3.set…
最新文章