- UID
- 5280
- 积分
- 9539
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-5-18
- 最后登录
- 1970-1-1
|
发表于 2018-9-7 12:59:08
|
显示全部楼层
本帖最后由 newer 于 2018-9-7 13:01 编辑
XDRX API 的 xdrx_entity_list 函数实现了命令LIST,可以两种结果,
1、是屏幕显示转成字符串
2、是和LIST命令一样,屏幕列表实体信息
命令: (xdrx_entity_list (entlast))
" LWPOLYLINE图层: 0\n 空间: 模型空间\n
句柄 = fe8\n 打开 \n 固定宽度 0.0000\n 面积
1489.9760\n 长度 110.8045 \n\n 于端点 X=2165.4742 Y=
729.0689 Z= 0.0000\n 于端点 X=2188.4463 Y= 729.0689 Z= 0.0000\n
于端点 X=2188.4463 Y= 793.9292 Z= 0.0000\n 于端点 X=2165.4742
Y= 793.9292 Z= 0.0000\n"
命令: (xdrx_entity_list (entlast) t)
LWPOLYLINE图层: 0
空间: 模型空间
句柄 = fe8
打开
固定宽度 0.0000
面积 1489.9760
长度 110.8045
于端点 X=2165.4742 Y= 729.0689 Z= 0.0000
于端点 X=2188.4463 Y= 729.0689 Z= 0.0000
于端点 X=2188.4463 Y= 793.9292 Z= 0.0000
于端点 X=2165.4742 Y= 793.9292 Z= 0.0000
=======================================================================
c++用AcDbHostApplicationServices,不知道C#有没
[code=cpp]
class MyHostAppServices : public AcDbHostApplicationServices
{
public:
MyHostAppServices();
virtual ~MyHostAppServices();
virtual Acad::ErrorStatus findFile(
ACHAR * pcFullPathOut,
int nBufferLength,
const ACHAR * pcFilename,
AcDbDatabase * pDb = NULL, // When this search
// is related to a db
AcDbHostApplicationServices::FindFileHint hint = kDefault);
virtual AcadInternalServices* acadInternalServices();
virtual const ProdIdCode prodcode();
virtual void displayChar(ACHAR c) const;
virtual void displayString(const ACHAR* string, int count) const;
CString getOutput() const;
private:
AcDbHostApplicationServices *m_pOldHostServices;
};
[/cpp]
|
|