Click or drag to resize

Part Class

返回用户文档首页
零件基类
Inheritance Hierarchy

Namespace: LoongCAD.STC.Friendly.Scene
Assembly: LoongSDKSTC (in LoongSDKSTC.dll) Version: 2025.0.9.7 (2025.0.9.7)
Syntax
C#
public class Part : Cutter

The Part type exposes the following members.

Properties
 NameDescription
Public propertyAssemblyNumber 构件编号信息
Public propertyClass 零件等级
Public propertyCutTarget 切割目标
(Inherited from Cutter)
Public propertyEnabled 对象是否启用
(Inherited from ModelObject)
Public propertyExactCutMode 作为切割体时是否应用与截面完全一致的切割(若为false, 则有空截面作为切割体时不会保留孔内部分)
(Inherited from Cutter)
Public propertyFinish 抛光
Public propertyGuid 对象GUID
(Inherited from ModelObject)
Public propertyId 同Identifier, 缩写
(Inherited from ModelObject)
Public propertyIdentifier 对象ID
(Inherited from ModelObject)
Public propertyIsWeldGroove 是否开启焊接准备
(Inherited from Cutter)
Public propertyLabel 对象标签, 标签用于插件中识别每次刷新修改的物体
(Inherited from ModelObject)
Public propertyLocked 对象是否锁定
(Inherited from ModelObject)
Public propertyMaterial 材质对象
Public propertyName 用户属性
Public propertyParent 父对象
(Inherited from ModelObject)
Public propertyPartNumber 零件编号信息
Public propertyPhase 阶段号
(Inherited from ModelObject)
Public propertyPosition 构件编号信息
Public propertyPreBuilt 所属构件
Public propertyProfile 截面对象
Public propertyScene
(Inherited from ModelObject)
Public propertyType 核心对象类型
(Inherited from ModelObject)
Public propertyUserAttributes 用户属性
Top
Methods
 NameDescription
Public methodDelete 从场景删除对象
(Inherited from ModelObject)
Public methodGetAssembly 所属构件
Public methodGetBolts 获取当前零件上的所有螺栓
Public methodGetBoundingBox 获取对象在世界空间的包围盒
(Inherited from ModelObject)
Public methodGetBoundPlane 获取指定边界面
Public methodGetCenterLine 获取零件中心线
Public methodGetCentroid 获取零件重心,此坐标受GlobalTransform影响
Public methodGetCoordinateSystem 获取对象在场景空间的坐标系
(Inherited from ModelObject)
Public methodGetCutters 获取当前零件上的所有切割体
Public methodGetGrossWeight 获取零件毛重
Public methodGetLabel 获取对象标签, 标签用于插件中识别每次刷新修改的物体
(Inherited from ModelObject)
Public methodGetLength 获取零件长度
Public methodGetNetWeight 获取零件净重
Public methodGetPhase 获取阶段号
(Inherited from ModelObject)
Public methodGetReferanceLine 获取零件参考线
Public methodGetReportProperty(String, Point)
(Inherited from ModelObject)
Public methodGetReportProperty(String, Vector)
(Inherited from ModelObject)
Public methodGetReportProperty(String, Double)
(Inherited from ModelObject)
Public methodGetReportProperty(String, Int32)
(Inherited from ModelObject)
Public methodGetReportProperty(String, Int64)
(Inherited from ModelObject)
Public methodGetReportProperty(String, String)
(Inherited from ModelObject)
Public methodGetSolid 获取零件几何体
Public methodGetSolid(SolidSolidCreationTypeEnum) 获取指定形式的零件几何体
Public methodGetSurfaceArea 获取零件表面积
Public methodGetVolume 获取零件体积
Public methodGetWelds 获取当前零件上的所有焊缝
Public methodInsert
(Inherited from TFObject)
Public methodModify
(Inherited from TFObject)
Public methodPickGeoFarPlane 基于参考坐标面捕捉零件的最远几何面,朝着目标方向寻找最远的几何面
Public methodPickGeoNearPlane 基于参考坐标面捕捉零件的最靠近几何面
Public methodPickGeoPlane 基于参考坐标面捕捉零件的几何面
Public methodPickPlanes 选择指定零件面
Public methodRefresh
(Inherited from TFObject)
Public methodSelect 同Sync, 将场景中数据同步到对象
(Inherited from ModelObject)
Public methodSetLabel 设置对象标签, 标签用于插件中识别每次刷新修改的物体
(Inherited from ModelObject)
Public methodSetPhase 设置阶段号
(Inherited from ModelObject)
Public methodSync
(Inherited from TFObject)
Top
See Also