mxcad API 文档 / MxCppType
Class: MxCppType
MxCppType 类
Table of contents
Constructors
Properties
Methods
- decodeFromGb2312
- encodeToGb2312
- getCallResult
- getCurrentDatabase
- getCurrentMxCAD
- newMcGePoint3d
- newMcGeVector3d
Constructors
constructor
• new MxCppType()
Properties
Ai
• Ai: MxAI
Mx AI实例
App
• App: McAppType
McAppType 实例
PropertiesWindow
• PropertiesWindow: MxPropertiesWindowCustom
PropertiesWindow 属必窗口功能调用实例
mxcadassemblyimp
• Optional
mxcadassemblyimp: any
MxCpp 程序集
Methods
decodeFromGb2312
▸ decodeFromGb2312(strHex
): string
把hex格式的Gb2312编码的转成utf8
Parameters
Name | Type |
---|---|
strHex | string |
Returns
string
encodeToGb2312
▸ encodeToGb2312(str
): string
把utf8转成hex格式的Gb2312编码
Parameters
Name | Type |
---|---|
str | string |
Returns
string
getCallResult
▸ getCallResult(): number
获取上一次调用的结果
Returns
number
调用结果
getCurrentDatabase
▸ getCurrentDatabase(): McDbDatabase
返回当前活动的CAD对象的数据库对象.
Returns
getCurrentMxCAD
▸ getCurrentMxCAD(): McObject
返回当前活动的CAD对象
Returns
newMcGePoint3d
▸ newMcGePoint3d(pt?
): McGePoint3d
创建新的 McGePoint3d 实例
Parameters
Name | Type | Description |
---|---|---|
pt? | any | 点坐标 |
Returns
McGePoint3d 实例
newMcGeVector3d
▸ newMcGeVector3d(pt?
): McGeVector3d
创建新的 McGeVector3d 实例
Parameters
Name | Type | Description |
---|---|---|
pt? | any | 点坐标 |
Returns
McGePoint3d 实例