- 积分
- 92444
- 明经币
- 个
- 注册时间
- 2005-3-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)]
) |
|