几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » ObjectARX(C++)
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-18, 03:58 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】有谁发一下acutbuildlist的函数定义,说明

有谁发一下acutbuildlist的函数定义,说明
有谁发一下acutbuildlist的函数定义,说明
有谁发一下acutbuildlist的函数定义,说明,谢谢
下面是liub1979说的,包含了数据个数确定和不确定时的用法:
当数据个数确定时,用acutbuildlist也很方便
struct resbuf *pointlist;
ads_point pt;
for(int i=1; i < n; i++){
pt=xxx;
pointlist= acutbuildlist(rtresbuf, pointlist, rtpoint, pt, 0);
}
struct resbuf *
acutbuildlist(
int rtype,
... unnamed);
rtypedescription to come
unnameddescription to come
creates a linked list of result buffers.
builds a result-buffer list from individual data items by allocating result buffers, assigning them the values specified by the acutbuildlist() arguments, and linking the buffers together. the acutbuildlist() function has a variable-length argument list. most arguments to acutbuildlist() are treated as pairs. the first of each pair identifies the type of the argument that follows, and the second contains the actual data. the exceptions are rtlb, rtle, rtdote, and the -3 that is used to indicate the start of xdata. the type code (rtype) arguments must be result type codes as defined in adscodes.h (for example, rtpoint), or valid drawing interchange format (dxf) group codes (for example, 10). in lists that employ dxf codes, group 0 must be represented by the result type code rtdxf0. the final argument in the list must be a single argument whose value is 0 or rtnone.
warning entity definitions begin with a 0 group that describes the type of the entity. because lists passed to acutbuildlist() can be terminated with 0 or null (as well as rtnone), this creates a conflict. the special result type code rtdxf0 resolves this conflict. construct the 0 group in dxf lists passed to acutbuildlist() with rtdxf0. if you attempt to substitute a literal 0 for rtdxf0, acutbuildlist() truncates the list. the rtdxf0 code should only be used with the rtype parameter, use a real zero (0) with the remaining parameters.
if acutbuildlist() succeeds, it returns a pointer to the newly created list. if 0, rtnone, or null is the only argument passed to acutbuildlist(), or if it fails because it lacks memory or includes incorrect arguments, it returns a null pointer.
include file
acutads.h
其中int rtype 定义如下: (列举常用的)
acdb:: kdxfxdasciistring = 1000,
kdxfregappname = 1001,
kdxfxdcontrolstring = 1002,
kdxfxdlayername = 1003,
kdxfxdbinarychunk = 1004,
kdxfxdhandle = 1005,
kdxfxdxcoord = 1010,
kdxfxdycoord = 1020,
kdxfxdzcoord = 1030,
kdxfxdworldxcoord = 1011,
kdxfxdworldycoord = 1021,
kdxfxdworldzcoord = 1031,
kdxfxdworldxdisp = 1012,
kdxfxdworldydisp = 1022,
kdxfxdworldzdisp = 1032,
kdxfxdworldxdir = 1013,
kdxfxdworldydir = 1023,
kdxfxdworldzdir = 1033,
kdxfxdreal = 1040,
kdxfxddist = 1041,
kdxfxdscale = 1042,
kdxfxdinteger16 = 1070,
kdxfxdinteger32 = 1071
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 10:25 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多