找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 908|回复: 4

[LISP程序]:请求POLYLINE转变为LWPOLYLINE的函数

[复制链接]
发表于 2003-6-19 20:14:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
将所选择的POLYLINE转变为LWPOLYLINE,适用于R14,先谢谢了。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 593个

财富等级: 财运亨通

发表于 2003-6-19 23:01:12 | 显示全部楼层

Re: [LISP程序]:请求POLYLINE转变为LWPOLYLINE的函数

最初由 心梦相随 发布
[B]将所选择的POLYLINE转变为LWPOLYLINE,适用于R14,先谢谢了。 [/B]

不用编程,CAD有标准命令的。

  1. Converts 2D polylines and associative hatches to the optimized Release 14 format
  2. 2D polylines and associative hatches are created in Release 14 using an optimized format that saves memory and disk space.
  3. Use CONVERT to update hatches or polylines created in previous versions of AutoCAD.

  4. Command line: convert

  5. Hatch / Polyline / < All >: Enter h for hatches, p for polylines, or a for both
  6. Select / < All >:  Enter s to select objects or a to convert
  7. all objects in the drawing

  8. AutoCAD displays one or both of the following messages.

  9. number hatch objects converted
  10. number 2d polyline objects converted

  11. Hatches do not update automatically when a drawing from a previous release is opened in Release 14. Hatch pattern rotation
  12. information may not update properly if the UCS has changed since the hatch was created. When updating hatches with
  13. CONVERT, it is recommended that you use the Select option so you can check your results.
  14. In most cases, polylines do not need to be updated with CONVERT. By default, the PLINETYPE system variable specifies that
  15. polylines update automatically when an older drawing is opened. Polylines might be created in the old format by
  16. third-party applications,
  17. and they might be contained in an older drawing that was inserted as a block and then exploded.

  18. Note: Polylines containing curve-fit or splined segments always retain the old format, as do polylines that store extended entity
  19. data on their vertices. AutoCAD's editing commands make no distinction between the two formats.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2003-6-25 16:39:30 | 显示全部楼层
Command: CONVERTPOLY
Convert to Heavy/Light<Light>:

Select objects: 1 found

Select objects:
1 polylines converted.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2003-6-27 08:49:33 | 显示全部楼层
能解释一下POLYLINE 与LWPOLYLINE的区别吗?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2003-6-27 08:56:51 | 显示全部楼层
(setq ss (ssget "x" '((0 . "polyline")))
         n 0)
   (if (/= nil ss)
      (progn
         (xdrx_pbarbegin "&Otilde;&yacute;&Ocirc;&Uacute;&acute;&brvbar;&Agrave;íPolyline:" (sslength ss))
         (repeat (sslength ss)
            (xdrx_pbarsetpos n)
            (setq ename (ssname ss n)
                  elist (entget ename)
                  n (1+ n)
                  )
            (xdrx_polyline_ConvertFrom ename))
           (xdrx_pbarend))
    )
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2025-9-26 11:14 , Processed in 0.167313 second(s), 40 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表