指南
- 开始
- 指南
- 基础绘图
- 交互绘图
- 图纸编辑
- 数据库
- 最佳实践
MxCAD API 文档
- 类
- 2d.Color
- 2d.McAppType
- 2d.McCmColor
- 2d.McDbAlignedDimension
- 2d.McDbArc
- 2d.McDbAttribute
- 2d.McDbAttributeDefinition
- 2d.McDbBlockReference
- 2d.McDbBlockTable
- 2d.McDbBlockTableRecord
- 2d.McDbCircle
- 2d.McDbCurve
- 2d.McDbDatabase
- 2d.McDbDimension
- 2d.McDbEllipse
- 2d.McDbEntity
- 2d.McDbHatch
- 2d.McDbLayerTable
- 2d.McDbLayerTableRecord
- 2d.McDbLine
- 2d.McDbLinetypeTable
- 2d.McDbLinetypeTableRecord
- 2d.McDbMText
- 2d.McDbObject
- 2d.McDbObjectArray
- 2d.McDbPoint
- 2d.McDbPolyline
- 2d.McDbProxyEntity
- 2d.McDbRasterImage
- 2d.McDbRasterImageDef
- 2d.McDbRotatedDimension
- 2d.McDbText
- 2d.McDbTextStyleTable
- 2d.McDbTextStyleTableRecord
- 2d.McGeLongArray
- 2d.McGeMatrix3d
- 2d.McGePoint3d
- 2d.McGePoint3dArray
- 2d.McGeStringArray
- 2d.McGeVector3d
- 2d.McObject
- 2d.McObjectId
- 2d.McRxObject
- 2d.MdGeDoubleArray
- 2d.MxCADResbuf
- 2d.MxCADSelectionSet
- 2d.MxCADUiPrAngle
- 2d.MxCADUiPrBase
- 2d.MxCADUiPrDist
- 2d.MxCADUiPrEntity
- 2d.MxCADUiPrInt
- 2d.MxCADUiPrKeyWord
- 2d.MxCADUiPrPoint
- 2d.MxCADUiPrString
- 2d.MxCADUtilityClass
- 2d.MxCppType
- 2d.MxPropertiesWindowCustom
- 2d.MxPropertiesWindowCustomValue
- 2d.ObjectInheritance
- 3d.MdGeAngleDim
- 3d.MdGeArray1OfInteger
- 3d.MdGeArray1OfPnt
- 3d.MdGeArray1OfReal
- 3d.MdGeArray2OfPnt
- 3d.MdGeArray2OfReal
- 3d.MdGeArrowAspect
- 3d.MdGeAxis
- 3d.MdGeBezierCurve
- 3d.MdGeBezierSurface
- 3d.MdGeBox
- 3d.MdGeBRep
- 3d.MdGeBSplineCurve
- 3d.MdGeBSplineSurface
- 3d.MdGeChamfer
- 3d.MdGeCircle
- 3d.MdGeColor
- 3d.MdGeCompound
- 3d.MdGeCompSolid
- 3d.MdGeCone
- 3d.MdGeCSYS
- 3d.MdGeCSYSR
- 3d.MdGeCylinder
- 3d.MdGeDiameterDim
- 3d.MdGeDimAspect
- 3d.MdGeDir
- 3d.MdGeEdge
- 3d.MdGeEllipse
- 3d.MdGeExplorer
- 3d.MdGeFace
- 3d.MdGeFillet
- 3d.MdGeHGeomPlane
- 3d.MdGeHGeomSurface
- 3d.MdGeHypr
- 3d.MdGeInterpolateBSpl
- 3d.MdGeLengthDim
- 3d.MdGeLight
- 3d.MdGeLine
- 3d.MdGeLineAspect
- 3d.MdGeListIteratorOfListOfShape
- 3d.MdGeListOfShape
- 3d.MdGeLoft
- 3d.MdGeMakeArcOfCircle
- 3d.MdGeMakeFace
- 3d.MdGeMakeThickSolid
- 3d.MdGeMakeWires
- 3d.MdGeMat
- 3d.MdGeMaterialAspect
- 3d.MdGeObject
- 3d.MdGeParab
- 3d.MdGePipe
- 3d.MdGePlane
- 3d.MdGePoint
- 3d.MdGePointsToBSpl
- 3d.MdGePointsToBSplSurface
- 3d.MdGePrism
- 3d.MdGeRadiusDim
- 3d.MdGeRect
- 3d.MdGeRevol
- 3d.MdGeSequenceIteratorOfSequenceOfShape
- 3d.MdGeSequenceOfShape
- 3d.MdGeShape
- 3d.MdGeShell
- 3d.MdGeSolid
- 3d.MdGeSphere
- 3d.MdGeText
- 3d.MdGeTextAspect
- 3d.MdGeTextLabel
- 3d.MdGeTopo
- 3d.MdGeTorus
- 3d.MdGeTransform
- 3d.MdGeTrsf
- 3d.MdGeVec
- 3d.MdGeVertex
- 3d.MdGeWedge
- 3d.MdGeWire
- 3d.MdGeXYZ
- 3d.MxDraw3d
- Color
- McAppType
- McCmColor
- McDbAlignedDimension
- McDbArc
- McDbAttribute
- McDbAttributeDefinition
- McDbBlockReference
- McDbBlockTable
- McDbBlockTableRecord
- McDbCircle
- McDbCurve
- McDbDatabase
- McDbDimension
- McDbEllipse
- McDbEntity
- McDbHatch
- McDbLayerTable
- McDbLayerTableRecord
- McDbLine
- McDbLinetypeTable
- McDbLinetypeTableRecord
- McDbMText
- McDbObject
- McDbObjectArray
- McDbPoint
- McDbPolyline
- McDbProxyEntity
- McDbRasterImage
- McDbRasterImageDef
- McDbRotatedDimension
- McDbText
- McDbTextStyleTable
- McDbTextStyleTableRecord
- McGeLongArray
- McGeMatrix3d
- McGePoint3d
- McGePoint3dArray
- McGeStringArray
- McGeVector3d
- McObject
- McObjectId
- McRxObject
- MdGeAngleDim
- MdGeArray1OfInteger
- MdGeArray1OfPnt
- MdGeArray1OfReal
- MdGeArray2OfPnt
- MdGeArray2OfReal
- MdGeArrowAspect
- MdGeAxis
- MdGeBezierCurve
- MdGeBezierSurface
- MdGeBox
- MdGeBRep
- MdGeBSplineCurve
- MdGeBSplineSurface
- MdGeChamfer
- MdGeCircle
- MdGeColor
- MdGeCompound
- MdGeCompSolid
- MdGeCone
- MdGeCSYS
- MdGeCSYSR
- MdGeCylinder
- MdGeDiameterDim
- MdGeDimAspect
- MdGeDir
- MdGeDoubleArray
- MdGeEdge
- MdGeEllipse
- MdGeExplorer
- MdGeFace
- MdGeFillet
- MdGeHGeomPlane
- MdGeHGeomSurface
- MdGeHypr
- MdGeInterpolateBSpl
- MdGeLengthDim
- MdGeLight
- MdGeLine
- MdGeLineAspect
- MdGeListIteratorOfListOfShape
- MdGeListOfShape
- MdGeLoft
- MdGeMakeArcOfCircle
- MdGeMakeFace
- MdGeMakeThickSolid
- MdGeMakeWires
- MdGeMat
- MdGeMaterialAspect
- MdGeObject
- MdGeParab
- MdGePipe
- MdGePlane
- MdGePoint
- MdGePointsToBSpl
- MdGePointsToBSplSurface
- MdGePrism
- MdGeRadiusDim
- MdGeRect
- MdGeRevol
- MdGeSequenceIteratorOfSequenceOfShape
- MdGeSequenceOfShape
- MdGeShape
- MdGeShell
- MdGeSolid
- MdGeSphere
- MdGeText
- MdGeTextAspect
- MdGeTextLabel
- MdGeTopo
- MdGeTorus
- MdGeTransform
- MdGeTrsf
- MdGeVec
- MdGeVertex
- MdGeWedge
- MdGeWire
- MdGeXYZ
- MxCADResbuf
- MxCADSelectionSet
- MxCADUiPrAngle
- MxCADUiPrBase
- MxCADUiPrDist
- MxCADUiPrEntity
- MxCADUiPrInt
- MxCADUiPrKeyWord
- MxCADUiPrPoint
- MxCADUiPrString
- MxCADUtilityClass
- MxCppType
- MxDraw3d
- MxPropertiesWindowCustom
- MxPropertiesWindowCustomValue
- ObjectInheritance
- 2d.ColorIndexType
- 2d.ColorMethod
- 2d.FetchAttributes
- 2d.McDb.AttachmentPoint
- 2d.McDb.ClipBoundaryType
- 2d.McDb.HatchEdgeType
- 2d.McDb.HatchLoopType
- 2d.McDb.HatchPatternType
- 2d.McDb.HatchStyle
- 2d.McDb.Intersect
- 2d.McDb.LineWeight
- 2d.McDb.TextHorzMode
- 2d.McDb.TextVertMode
- 2d.McObjectIdType
- 2d.MxCADResbufDataType
- 2d.MxCADSelectionSetStatus
- 2d.MxPropertiesWindowCustomValueType
- 3d.MdGe.MxCameraProjection
- 3d.MdGe.MxCF3dFilletShapeEnum
- 3d.MdGe.MxCFDSChamfMode
- 3d.MdGe.MxDimensionArrowOrientation
- 3d.MdGe.MxDimensionTextHorizontalPosition
- 3d.MdGe.MxDimensionTextVerticalPosition
- 3d.MdGe.MxDisplayMode
- 3d.MdGe.MxFontAspect
- 3d.MdGe.MxGAJoinTypeEnum
- 3d.MdGe.MxGAShapeEnum
- 3d.MdGe.MxGFTrihedron
- 3d.MdGe.MxHorizontalTextAlignment
- 3d.MdGe.MxKindOfDimension
- 3d.MdGe.MxNameOfColor
- 3d.MdGe.MxNameOfMaterial
- 3d.MdGe.MxOffsetModeEnum
- 3d.MdGe.MxShapeEnum
- 3d.MdGe.MxTextPath
- 3d.MdGe.MxTypeOfAngle
- 3d.MdGe.MxTypeOfAngleArrowVisibility
- 3d.MdGe.MxTypeOfColor
- 3d.MdGe.MxTypeOfDisplayText
- 3d.MdGe.MxTypeOfLightSource
- 3d.MdGe.MxTypeOfLine
- 3d.MdGe.MxTypeOfMaterial
- 3d.MdGe.MxTypeOfReflection
- 3d.MdGe.MxV3dTypeOfOrientation
- 3d.MdGe.MxVerticalTextAlignment
- 枚举
- ColorIndexType
- ColorMethod
- FetchAttributes
- McDb.AttachmentPoint
- McDb.ClipBoundaryType
- McDb.HatchEdgeType
- McDb.HatchLoopType
- McDb.HatchPatternType
- McDb.HatchStyle
- McDb.Intersect
- McDb.LineWeight
- McDb.TextHorzMode
- McDb.TextVertMode
- McObjectIdType
- MdGe.MxCameraProjection
- MdGe.MxCF3dFilletShapeEnum
- MdGe.MxCFDSChamfMode
- MdGe.MxDimensionArrowOrientation
- MdGe.MxDimensionTextHorizontalPosition
- MdGe.MxDimensionTextVerticalPosition
- MdGe.MxDisplayMode
- MdGe.MxFontAspect
- MdGe.MxGAJoinTypeEnum
- MdGe.MxGAShapeEnum
- MdGe.MxGFTrihedron
- MdGe.MxHorizontalTextAlignment
- MdGe.MxKindOfDimension
- MdGe.MxNameOfColor
- MdGe.MxNameOfMaterial
- MdGe.MxOffsetModeEnum
- MdGe.MxShapeEnum
- MdGe.MxTextPath
- MdGe.MxTypeOfAngle
- MdGe.MxTypeOfAngleArrowVisibility
- MdGe.MxTypeOfColor
- MdGe.MxTypeOfDisplayText
- MdGe.MxTypeOfLightSource
- MdGe.MxTypeOfLine
- MdGe.MxTypeOfMaterial
- MdGe.MxTypeOfReflection
- MdGe.MxV3dTypeOfOrientation
- MdGe.MxVerticalTextAlignment
- MxCADResbufDataType
- MxCADSelectionSetStatus
- MxPropertiesWindowCustomValueType
- 2d.MxCadConfig
- 2d.MxCADUI
- 3d.MxDraw3dConfig
- 3d.WasmConfig
- 接口
- 模块
McDbCircle
mxcad API 文档 / McDbCircle
Class: McDbCircle
表示一个圆形。
Hierarchy
↳
McDbCircle
Table of contents
Constructors
Properties
Accessors
- center
- colorIndex
- dxf0
- layer
- layerId
- linetype
- linetypeId
- linetypeScale
- lineweight
- objectName
- radius
- textStyle
- textStyleId
- trueColor
- visible
Methods
- IntersectWith
- clone
- deleteXData
- disableDisplay
- erase
- explode
- getAllAppName
- getArea
- getBoundingBox
- getClosestPointTo
- getDatabase
- getDistAtParam
- getDistAtPoint
- getEndParam
- getEndPoint
- getFirstDeriv
- getFirstDerivFromParam
- getHandle
- getImp
- getJson
- getLength
- getObjectID
- getOwnerID
- getParamAtDist
- getParamAtPoint
- getPointAtDist
- getPointAtParam
- getSamplePoints
- getStartParam
- getStartPoint
- getxData
- getxDataDouble
- getxDataLong
- getxDataPoint
- getxDataString
- highlight
- initTempObject
- isErased
- isKindOf
- isNull
- mirror
- move
- offsetCurves
- rotate
- scaleEntity
- setCenter
- setJson
- setxData
- setxDataDouble
- setxDataLong
- setxDataPoint
- setxDataString
- splitCurves
- splitCurvesFromParam
- transformBy
- unErase
Constructors
constructor
• new McDbCircle(x?
, y?
, z?
, radius?
)
构造函数。
Parameters
Name | Type | |
---|---|---|
x? | number \ | object |
y? | number | |
z? | number | |
radius? | number |
Overrides
Properties
imp
• Protected
imp: any
= 0
内部实现对象。
Inherited from
Accessors
center
• get
center(): McGePoint3d
获取圆心坐标。
Returns
• set
center(pt
): void
设置圆心坐标。
Parameters
Name | Type | Description |
---|---|---|
pt | McGePoint3d | 圆心坐标。 |
Returns
void
colorIndex
• get
colorIndex(): number
得到对象颜色索引
Returns
number
Inherited from
McDbCurve.colorIndex
• set
colorIndex(val
): void
设置对象颜色索引
Parameters
Name | Type |
---|---|
val | number |
Returns
void
Inherited from
McDbCurve.colorIndex
dxf0
• get
dxf0(): string
获取 DXF 代码 0 的值。
Returns
string
Inherited from
McDbCurve.dxf0
layer
• get
layer(): string
得到对象图层名
Returns
string
Inherited from
McDbCurve.layer
• set
layer(val
): void
设置对象图层名
Parameters
Name | Type |
---|---|
val | string |
Returns
void
Inherited from
McDbCurve.layer
layerId
• get
layerId(): McObjectId
Returns
Inherited from
McDbCurve.layerId
• set
layerId(id
): void
Parameters
Name | Type |
---|---|
id | McObjectId |
Returns
void
Inherited from
McDbCurve.layerId
linetype
• get
linetype(): string
得到对象线型名
Returns
string
Inherited from
McDbCurve.linetype
• set
linetype(val
): void
设置对象线型名
Parameters
Name | Type |
---|---|
val | string |
Returns
void
Inherited from
McDbCurve.linetype
linetypeId
• get
linetypeId(): McObjectId
Returns
Inherited from
McDbCurve.linetypeId
• set
linetypeId(id
): void
Parameters
Name | Type |
---|---|
id | McObjectId |
Returns
void
Inherited from
McDbCurve.linetypeId
linetypeScale
• get
linetypeScale(): number
得到对象线型比例
Returns
number
Inherited from
McDbCurve.linetypeScale
• set
linetypeScale(val
): void
设置对象线型比例
Parameters
Name | Type |
---|---|
val | number |
Returns
void
Inherited from
McDbCurve.linetypeScale
lineweight
• get
lineweight(): number
得到对象线重
Returns
number
Inherited from
McDbCurve.lineweight
• set
lineweight(val
): void
设置对象线重
Parameters
Name | Type |
---|---|
val | number |
Returns
void
Inherited from
McDbCurve.lineweight
objectName
• get
objectName(): string
获取对象名称。
Returns
string
Inherited from
McDbCurve.objectName
radius
• get
radius(): number
获取圆半径。
Returns
number
• set
radius(r
): void
设置圆半径。
Parameters
Name | Type | Description |
---|---|---|
r | number | 圆半径。 |
Returns
void
textStyle
• get
textStyle(): string
得到对象文字样式
Returns
string
Inherited from
McDbCurve.textStyle
• set
textStyle(val
): void
设置对象文字样式
Parameters
Name | Type |
---|---|
val | string |
Returns
void
Inherited from
McDbCurve.textStyle
textStyleId
• get
textStyleId(): McObjectId
Returns
Inherited from
McDbCurve.textStyleId
• set
textStyleId(id
): void
Parameters
Name | Type |
---|---|
id | McObjectId |
Returns
void
Inherited from
McDbCurve.textStyleId
trueColor
• get
trueColor(): McCmColor
得到对象颜色
Returns
Inherited from
McDbCurve.trueColor
• set
trueColor(val
): void
设置对象颜色
Parameters
Name | Type |
---|---|
val | McCmColor |
Returns
void
Inherited from
McDbCurve.trueColor
visible
• get
visible(): boolean
对象是否可见
Returns
boolean
Inherited from
McDbCurve.visible
• set
visible(val
): void
设置是否可见
Parameters
Name | Type |
---|---|
val | boolean |
Returns
void
Inherited from
McDbCurve.visible
Methods
IntersectWith
▸ IntersectWith(intersectObject
, exOption
): McGePoint3dArray
Parameters
Name | Type |
---|---|
intersectObject | McDbEntity |
exOption | Intersect |
Returns
Inherited from
clone
▸ clone(): null
| McDbObject
克隆对象。
Returns
null
| McDbObject
克隆出的对象。
Inherited from
deleteXData
▸ deleteXData(appName
): boolean
Parameters
Name | Type |
---|---|
appName | string |
Returns
boolean
Inherited from
disableDisplay
▸ disableDisplay(isDisable
): void
暂时禁用对象的自动更新显示.
Parameters
Name | Type |
---|---|
isDisable | boolean |
Returns
void
Inherited from
erase
▸ erase(): boolean
删除对象。
Returns
boolean
是否删除成功。
Inherited from
explode
▸ explode(): MxCADResbuf
打碎对象,返回打后对象数据链表
Returns
Inherited from
getAllAppName
▸ getAllAppName(): McGeStringArray
Returns
Inherited from
getArea
▸ getArea(): Object
计算面积
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getBoundingBox
▸ getBoundingBox(): Object
得到对象的最小外包
Returns
Object
Name | Type |
---|---|
maxPt | McGePoint3d |
minPt | McGePoint3d |
ret | boolean |
Inherited from
getClosestPointTo
▸ getClosestPointTo(givenPnt
, isExtend
): Object
得到一个点到曲线的最近点
Parameters
Name | Type |
---|---|
givenPnt | McGePoint3d |
isExtend | boolean |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGePoint3d |
Inherited from
getDatabase
▸ getDatabase(): McDbDatabase
得到对象所在的数据库
Returns
Inherited from
getDistAtParam
▸ getDistAtParam(param
): Object
获取参数位置上的距离。
Parameters
Name | Type | Description |
---|---|---|
param | number | 参数位置。 |
Returns
Object
距离及执行结果。
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getDistAtPoint
▸ getDistAtPoint(pt
): Object
获取距离位置上的点。
Parameters
Name | Type | Description |
---|---|---|
pt | McGePoint3d | 距离位置。 |
Returns
Object
点及执行结果。
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getEndParam
▸ getEndParam(): Object
获取结束参数。
Returns
Object
结束参数及执行结果。
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getEndPoint
▸ getEndPoint(): Object
得到曲线的结束点
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGePoint3d |
Inherited from
getFirstDeriv
▸ getFirstDeriv(pt
): Object
通过曲线上某点得到曲线的一阶导数
Parameters
Name | Type |
---|---|
pt | McGePoint3d |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGeVector3d |
Inherited from
getFirstDerivFromParam
▸ getFirstDerivFromParam(param
): Object
通过曲线参数得到曲线的一阶导数
Parameters
Name | Type |
---|---|
param | number |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGeVector3d |
Inherited from
McDbCurve.getFirstDerivFromParam
getHandle
▸ getHandle(): string
得到对象句柄
Returns
string
Inherited from
getImp
▸ getImp(): any
获取内部实现对象。
Returns
any
内部实现对象。
Inherited from
getJson
▸ getJson(): string
获取 JSON 格式的字符串。
Returns
string
JSON 格式的字符串。
Inherited from
getLength
▸ getLength(): Object
得到曲线长度
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getObjectID
▸ getObjectID(): McObjectId
获取对象 ID。
Returns
对象 ID。
Inherited from
getOwnerID
▸ getOwnerID(): number
得到对象拥用者的id
Returns
number
Inherited from
getParamAtDist
▸ getParamAtDist(dist
): Object
获取距离位置上的参数。
Parameters
Name | Type | Description |
---|---|---|
dist | number | 距离位置。 |
Returns
Object
参数及执行结果。
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getParamAtPoint
▸ getParamAtPoint(pt
): Object
得到曲线某点位置的曲线参数
Parameters
Name | Type |
---|---|
pt | McGePoint3d |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getPointAtDist
▸ getPointAtDist(dist
): Object
获取距离位置上的点。
Parameters
Name | Type | Description |
---|---|---|
dist | number | 距离位置。 |
Returns
Object
点及执行结果。
Name | Type |
---|---|
ret | boolean |
val | McGePoint3d |
Inherited from
getPointAtParam
▸ getPointAtParam(param
): Object
得到曲线参数所在的点坐标
Parameters
Name | Type |
---|---|
param | number |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGePoint3d |
Inherited from
getSamplePoints
▸ getSamplePoints(dApproxEps
): MxCADResbuf
把曲线离散成一堆点
Parameters
Name | Type |
---|---|
dApproxEps | number |
Returns
Inherited from
getStartParam
▸ getStartParam(): Object
获取起始参数。
Returns
Object
起始参数及执行结果。
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getStartPoint
▸ getStartPoint(): Object
得到曲线的开始点
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGePoint3d |
Inherited from
getxData
▸ getxData(appName?
): MxCADResbuf
得到对象的扩展数据
Parameters
Name | Type | Default value |
---|---|---|
appName | string | "" |
Returns
Inherited from
getxDataDouble
▸ getxDataDouble(appName
): Object
Parameters
Name | Type |
---|---|
appName | string |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getxDataLong
▸ getxDataLong(appName
): Object
Parameters
Name | Type |
---|---|
appName | string |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | number |
Inherited from
getxDataPoint
▸ getxDataPoint(appName
): Object
Parameters
Name | Type |
---|---|
appName | string |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | McGePoint3d |
Inherited from
getxDataString
▸ getxDataString(appName
): Object
Parameters
Name | Type |
---|---|
appName | string |
Returns
Object
Name | Type |
---|---|
ret | boolean |
val | string |
Inherited from
highlight
▸ highlight(isHighlight
): void
设置对象是否高亮
Parameters
Name | Type |
---|---|
isHighlight | boolean |
Returns
void
Inherited from
initTempObject
▸ initTempObject(imp
): void
初始化临时对象。
Parameters
Name | Type | Description |
---|---|---|
imp | any | 内部实现对象。 |
Returns
void
Inherited from
isErased
▸ isErased(): boolean
对象是否已经删除
Returns
boolean
Inherited from
isKindOf
▸ isKindOf(sObjectName
): boolean
Parameters
Name | Type |
---|---|
sObjectName | string |
Returns
boolean
Inherited from
isNull
▸ isNull(): any
Returns
any
Inherited from
mirror
▸ mirror(point1
, point2
): boolean
镜向对象
Parameters
Name | Type |
---|---|
point1 | McGePoint3d |
point2 | McGePoint3d |
Returns
boolean
Inherited from
move
▸ move(fromPoint
, toPoint
): boolean
移动对象
Parameters
Name | Type |
---|---|
fromPoint | McGePoint3d |
toPoint | McGePoint3d |
Returns
boolean
Inherited from
offsetCurves
▸ offsetCurves(dOffsetDist
, ptOffsetRef
): McDbObjectArray
得到偏移曲线
Parameters
Name | Type |
---|---|
dOffsetDist | number |
ptOffsetRef | McGePoint3d |
Returns
Inherited from
rotate
▸ rotate(basePoint
, dRotationAngle
): boolean
旋转对象
Parameters
Name | Type |
---|---|
basePoint | McGePoint3d |
dRotationAngle | number |
Returns
boolean
Inherited from
scaleEntity
▸ scaleEntity(basePoint
, dScaleFactor
): boolean
缩放对象
Parameters
Name | Type |
---|---|
basePoint | McGePoint3d |
dScaleFactor | number |
Returns
boolean
Inherited from
setCenter
▸ setCenter(x
, y
, z?
): void
设置圆心坐标。
Parameters
Name | Type | Description |
---|---|---|
x | number | 圆心 x 坐标。 |
y | number | 圆心 y 坐标。 |
z? | number | 圆心 z 坐标。 |
Returns
void
setJson
▸ setJson(str
): boolean
设置 JSON 格式的字符串。
Parameters
Name | Type | Description |
---|---|---|
str | string | JSON 格式的字符串。 |
Returns
boolean
是否设置成功。
Inherited from
setxData
▸ setxData(xdata
): boolean
设置对象的扩展数据
Parameters
Name | Type |
---|---|
xdata | MxCADResbuf |
Returns
boolean
Inherited from
setxDataDouble
▸ setxDataDouble(appName
, val
): boolean
Parameters
Name | Type |
---|---|
appName | string |
val | number |
Returns
boolean
Inherited from
setxDataLong
▸ setxDataLong(appName
, val
): boolean
Parameters
Name | Type |
---|---|
appName | string |
val | number |
Returns
boolean
Inherited from
setxDataPoint
▸ setxDataPoint(appName
, val
): boolean
Parameters
Name | Type |
---|---|
appName | string |
val | McGePoint3d |
Returns
boolean
Inherited from
setxDataString
▸ setxDataString(appName
, val
): boolean
Parameters
Name | Type |
---|---|
appName | string |
val | string |
Returns
boolean
Inherited from
splitCurves
▸ splitCurves(pts
): McDbObjectArray
打断曲线
Parameters
Name | Type |
---|---|
pts | McGePoint3d [] |
Returns
Inherited from
splitCurvesFromParam
▸ splitCurvesFromParam(params
): McDbObjectArray
Parameters
Name | Type |
---|---|
params | number [] |
Returns
Inherited from
McDbCurve.splitCurvesFromParam
transformBy
▸ transformBy(transformationMatrix
): boolean
变换对象
Parameters
Name | Type |
---|---|
transformationMatrix | McGeMatrix3d |
Returns
boolean
Inherited from
unErase
▸ unErase(): boolean
反删除对象。
Returns
boolean
Inherited from
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论