CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoLISP 开发指南

了解 Gp:RedefinePolyBorder 函数(AutoLISP)

2023-1-5 06:17| 发布者: admin| 查看: 220| 评论: 0|来自: AutoCAD

以下伪代码显示了 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 )

GMT+8, 2024-5-19 13:10

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部