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

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

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

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

帮忙呀

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

开发文档里的说明:<br/>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.<p>在DXF组码里面 -3 为 kDxfXDataStart,要过滤扩展数据 extended data(XData),必须以-3 开始,后面是 app name,1000~2000之间的dxf组码是不能识别的,只能根据app name 来过滤:<br/></p><pre class="prog_in_0">(ssget "X" '((0 . "CIRCLE") (-3 ("APP"))))                 过滤一个 app name</pre><pre class="prog_in_end_0">(ssget "X" '((0 . "CIRCLE") (-3 ("APP1,APP2"))))        过滤两个 app name 用逗号分隔<br/><br/>在文档里面搜索 Filtering for extended data,以及acedSSGet,里面有跟详细的说明。<br/></pre>

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

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