月出青云 发表于 2016-2-25 18:30:50

请问如何用entmake生成hatch?

Command生成hatch速度不行,谢谢各位了!

haotaer 发表于 2016-2-25 19:48:31

高,这个真的还有

Gu_xl 发表于 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


)
页: [1]
查看完整版本: 请问如何用entmake生成hatch?