明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1350|回复: 0

[ARX]如何将提取出的复线的点集变成acedSSGet “wp”项所需要的点集

[复制链接]
发表于 2005-3-8 16:07:00 | 显示全部楼层 |阅读模式
生手求助; 如何将提取出的复线的点集变成acedSSGet “wp””cp”项所需要的点集,不知要组成链表还是数组.,请指教.并给出一小段示例代码. 谢谢. 以下代码为什么不行? acedEntSel("\n请选共用件外形[封闭多义线]:",ent,pt);
struct resbuf *pointlist = NULL, *eb1;
ads_name ss;
acedSSAdd(NULL, NULL, ss);
pData=acdbEntGet(ent);
for(;pData!=NULL;pData=pData->rbnext)
{
if(pData->restype == 10)
{
eb1=new resbuf;
eb1->rbnext = NULL;
eb1->restype = RTPOINT;
eb1->resval.rpoint[X] = pData->resval.rpoint[X];
eb1->resval.rpoint[Y] = pData->resval.rpoint[Y];
eb1->resval.rpoint[Z] = 0;
//acutPrintf("\n%d,%f,%f",i,pData->resval.rpoint[X],pData->resval.rpoint[Y]);
pointlist->rbnext = eb1;
}
}
//pointlist->rbnext = NULL;
//ads_point pt1, pt2, pt3, pt4;
//pt1[X] = pt1[Y] = pt1[Z] = 0.0;
//pt2[X] = pt2[Y] = 500.0; pt2[Z] = 0.0;
//pt3[X] = 1000.0; pt3[Y] = 500.0; pt3[Z] = 0.0;
//pt4[X] = 500.0; pt4[Y] = pt4[Z] = 0.0;
//pointlist = acutBuildList(RTPOINT, pt1, RTPOINT, pt2, RTPOINT, pt3, RTPOINT, pt4, 0); acedSSGet("WP", pointlist, NULL, NULL, ss);
acutRelRb(eb1);
acutRelRb(pointlist);
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-26 08:49 , Processed in 0.165753 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表