2026-10-04 00:04:20 +08:00
|
|
|
#ifndef __TGRIPDATA_H__
|
2026-09-28 15:28:50 +08:00
|
|
|
#define __TGRIPDATA_H__
|
|
|
|
|
|
2026-10-04 00:04:20 +08:00
|
|
|
typedef struct TWT_GripAppData //夹点应用程序定义
|
2026-09-28 15:28:50 +08:00
|
|
|
{
|
2026-10-04 00:04:20 +08:00
|
|
|
int nIndex; //夹点索引
|
|
|
|
|
CString sGripTip; //夹点提示
|
|
|
|
|
AcDbObjectId id; //实体id
|
|
|
|
|
bool bCmd; //是否为命令夹点
|
|
|
|
|
AcGePoint3d ptGrip; //夹点位置
|
2026-09-28 15:28:50 +08:00
|
|
|
}TWT_GRIPAPPDATA;
|
|
|
|
|
|
2026-10-04 00:04:20 +08:00
|
|
|
typedef struct TWT_GripCmdData // 通过夹点启动绘制命令时,需要的数据
|
2026-09-28 15:28:50 +08:00
|
|
|
{
|
2026-10-04 00:04:20 +08:00
|
|
|
AcGePoint3d ptGrip; // 夹点
|
|
|
|
|
AcDbObjectId id; // 夹点所属实体
|
2026-09-28 15:28:50 +08:00
|
|
|
}TWT_GRIPCMDDATA;
|
|
|
|
|
|
2026-10-04 00:04:20 +08:00
|
|
|
// 设置夹点命令数据
|
2026-09-28 15:28:50 +08:00
|
|
|
void SetGripCmdData(const AcGePoint3d &ptGrip, const AcDbObjectId &id);
|
|
|
|
|
|
|
|
|
|
#endif
|