这可能会引起兴趣:
https://www.theswamp.org/index.php?topic=35254.msg404955#msg404955 谢谢你,罗伊。
Yes to go with bounding box应该比每个块的插入点要好一点,尽管我认为用我提供的代码进行OP已经足够了。 我没有看到原始代码,但如果我理解了请求,我相信可以编写函数:
(DEFUN PI:INSERT3DPOINTS (POINTSLIST POINTFORMAT / NODELAYERFORMAT POINTLIST mip map)
(SETQ NODELAYERFORMAT (PI:GETNODELAYERFORMAT POINTFORMAT))
(setq mip (caar POINTSLIST)
map (caar POINTSLIST)
)
(COMMAND "._undo" "_group")
(FOREACH POINTLIST POINTSLIST
(PI:MAKELAYER NODELAYERFORMAT POINTLIST POINTFORMAT)
(COMMAND "._point" (CAR POINTLIST))
(setq mip (mapcar 'min mip (CAR POINTLIST))
map (mapcar 'max map (CAR POINTLIST))
)
)
(command "_.zoom" "_w" "_non" mip "_non" map)
(COMMAND "._undo" "_end")
)
页:
1
[2]