明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 947|回复: 2

[提问] 请问如何用entmake生成hatch?

[复制链接]
发表于 2016-2-25 18:30:50 | 显示全部楼层 |阅读模式
Command生成hatch速度不行,谢谢各位了!
发表于 2016-2-25 19:48:31 | 显示全部楼层
高,这个真的还有
发表于 2016-2-25 20:09:01 | 显示全部楼层
本帖最后由 Gu_xl 于 2016-2-25 20:16 编辑

你可以使用vla方法:
To create a hatch, first create the Hatch object using the AddHatch method. After the Hatch object has been created, add the outer loop using the AppendOuterLoop method. 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 AppendInnerLoop method.

WARNING! Once the Hatch object has been created, you must add the outer loop to the Hatch object for it to become a valid AutoCAD object. If you attempt any operation other than calling the AppendOuterLoop method, AutoCAD will enter an unpredictable state.

具体参数可查阅帮助文件!
加载XLRX_API,可使用如下函数调用创建填充图案:
(xlrx-make "hatch"
  Loops(Ename/SS/EntList/Points)
  patType(0-UserDefined,1-PreDefined,2-CustomDefined)
  patName
  [Associativity T or nil]
  [HatchObjectType(0-HatchObject,1-GradientObject)]
)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-20 20:13 , Processed in 0.169846 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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