CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2021 开发者帮助

了解 gp:RedefinePolyBorder 函数 (AutoLISP)

2024-5-18 18:30| 发布者: admin| 查看: 87| 评论: 0|原作者: admin|来自: AutoCAD

了解 gp:RedefinePolyBorder 函数 (AutoLISP)

以下伪代码显示了 main 函数背后的逻辑:gp:RedefinePolyBorder

Function gp:RedefinePolyBorder
   Extract the previous polyline corner points (12, 13, 14, and 15 
     key values).
   Find the moved corner point by comparing the previous 
     polyline corner points with the current corner points.
     (The one "misfit" point will be the point that moved.)
   Set the new corner points by recalculating the two points 
     adjacent to the moved point.
   Update the new corner points in the reactor data (that will
     be stored back in the reactor for the modified polyline).
   Update other information in the reactor data. (Start point,
      endpoint, width, and length of path need to be recalculated.)
End Function

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2024-12-15 12:53

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部