明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3559|回复: 11

新手请教一个CAD2002中画剖面线的问题

  [复制链接]
发表于 2004-4-23 13:21:00 | 显示全部楼层 |阅读模式
请问各位高手,我用VB6.0开发CAD2002,不知道怎么对一个轴的剖面进行ANSI31图形填充呢?就是机械设计中画剖面线!先谢了!
发表于 2004-4-23 13:25:00 | 显示全部楼层
可以直接用SendCommand调用填充命令
 楼主| 发表于 2004-4-23 13:52:00 | 显示全部楼层
具体的不会用啊!我想用选择集的,可是调试不出来!~~~~~~~~
发表于 2004-4-23 14:14:00 | 显示全部楼层
RetVal = object.AddHatch(PatternType, PatternName, Associativity [, HatchObjectType])

After the Hatch object has been created using the MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_addhatch.htm" target="_blank" >AddHatch method, add the outer loop using MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_appendouterloop.htm" target="_blank" >AppendOuterLoop. The outer loop must be closed and must be created before any inner loops can be added.

After the Hatch object has been created using the MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_addhatch.htm" target="_blank" >AddHatch method, add the outer loop. The outer loop must be closed and must be created before any inner loops can be added. After a valid outer loop has been created, add any inner loops, one at a time, using the MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_appendinnerloop.htm" target="_blank" >AppendInnerLoop method.

Once you have finished defining the boundaries for the hatch, use the MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_evaluate.htm" target="_blank" >Evaluate method to calculate the hatch lines or fill for the boundaries, then use the MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_regen.htm" target="_blank" >Regen method to update the display of the hatch.

 楼主| 发表于 2004-4-23 14:31:00 | 显示全部楼层
我的是一个圆弧,用“         |_|         ”连接起来,就是轴有键槽处的剖面,我用的是appendouterloop,没有用内边界!实体是一个圆弧,三条直线,不知道怎么回事,调试的不到结果!我觉得关键是后面addhatch命令处错误,烦你赐教!
发表于 2004-4-23 14:35:00 | 显示全部楼层
把代码传上来
 楼主| 发表于 2004-4-23 14:45:00 | 显示全部楼层
不好意思啊!我在网吧上的,没软区,传不了,火死了!~~~


能不能帮我传一个的啊!我抄下来回去调试一下!我是学生,在做毕业设计!谢了!
发表于 2004-4-23 14:56:00 | 显示全部楼层
appendouterloop必须保证是封闭的
 楼主| 发表于 2004-4-23 15:08:00 | 显示全部楼层



哦!好的,好象是的封闭的


我回去在看看吧,下次我把代码传上来。谢谢你
 楼主| 发表于 2004-4-27 18:26:00 | 显示全部楼层



我回去看了,我画的图是圆弧和直线是相交的,就是说直线的端点不是圆弧的端点,我不知道这叫不叫封闭啊!??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-28 06:36 , Processed in 0.171292 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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