hongwei529 发表于 2008-6-18 16:43:00

text 加扩展字典后无法读取?

xdat1 = ads_buildlist(62,255,
-3,
1001, "my_tag",
1000, "BARTEXT",
1000, strbarcode,
0);
这样加的,成功了,并且查dxf代码有自己的查出来的结果
(71 . 0)
(72 . 0)
(11 0.0000 0.0000 0.0000)
(210 . 0)
(100 . "AcDbText")
(73 . 0)
(1001 . "my_tag")
(1000 . "BARTEXT")
(1000 . "STAPART-EJ-2.A")
但,struct resbuf *eb1 =ads_buildlist(1001,"my_tag",1000,"BARTEXT",0);
ads_ssget(NULL, NULL, NULL, eb1, ssname);   怎么都找不出来,奇怪了,别的都可以找出来,就TEXT找不出来

hongwei529 发表于 2008-6-18 16:44:00

帮忙呀

alfalfa 发表于 2008-6-18 20:16:00

开发文档里的说明:
Filtering for Extended Entity Data: You can filter for extended entity data that belongs to a particular
application or set of applications by specifying the -3 group code in filter. Separate multiple application names by commas.在DXF组码里面 -3 为 kDxfXDataStart,要过滤扩展数据 extended data(XData),必须以-3 开始,后面是 app name,1000~2000之间的dxf组码是不能识别的,只能根据app name 来过滤:
(ssget "X" '((0 . "CIRCLE") (-3 ("APP"))))                 过滤一个 app name(ssget "X" '((0 . "CIRCLE") (-3 ("APP1,APP2"))))        过滤两个 app name 用逗号分隔
在文档里面搜索 Filtering for extended data,以及acedSSGet,里面有跟详细的说明。

hongwei529 发表于 2008-6-19 10:00:00

请教一下,这种写法是不是很笨呀,通常是怎么写的
页: [1]
查看完整版本: text 加扩展字典后无法读取?