找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 657|回复: 3

[LISP函数]:在cad2005 support里面发现的晓东lsp

[复制链接]
发表于 2004-6-15 19:54:04 | 显示全部楼层 |阅读模式

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

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

×
请问这个怎么用啊 谁能发一个动画演示
    ; MODULE_ID ACAD2005_LSP_
    ;;;    ACAD2005.LSP Version 1.0 for AutoCAD 2005
    ;;;
    ;;;    Copyright (C) 1994-2003 by Autodesk, Inc.
    ;;;
    ;;;    Permission to use, copy, modify, and distribute this software
    ;;;    for any purpose and without fee is hereby granted, provided
    ;;;    that the above copyright notice appears in all copies and
    ;;;    that both that copyright notice and the limited warranty and
    ;;;    restricted rights notice below appear in all supporting
    ;;;    documentation.
    ;;;
    ;;;    AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
    ;;;    AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
    ;;;    MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC.
    ;;;    DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
    ;;;    UNINTERRUPTED OR ERROR FREE.
    ;;;
    ;;;    Use, duplication, or disclosure by the U.S. Government is subject to
    ;;;    restrictions set forth in FAR 52.227-19 (Commercial Computer
    ;;;    Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
    ;;;    (Rights in Technical Data and Computer Software), as applicable.
    ;;;
    ;;;.
    ;;;
    ;;;    Note:
    ;;;            This file is normally loaded only once per AutoCAD session.
    ;;;            If you wish to have LISP code loaded into every document,
    ;;;            you should add your code to acaddoc.lsp.

    ;;;
    ;;;    Globalization Note:   
    ;;;            We do not support autoloading applications by the native
    ;;;            language command call (e.g. with the leading underscore
    ;;;            mechanism.)

    (if (not (=  (substr (ver) 1 11) "Visual LISP")) (load "acad2005doc.lsp"))

    ;; Silent load.
    (princ)
    (defun c:XDTB_CopyWithDoteInt ()
      (prompt "\n请选取要沿轴交点拷贝的实体<退出>:")
      (setq dote_lyr (xdrx_getlyrname "轴线"))
      (if (and
            (setq ss (ssget))
            (setq pj (xdrx_getpoint "\n请拾取基点<退出>:"))
            (setq e (xdrx_entsel "\n请拾取一条轴线作为路径<退出>:"))
          )
        (progn
          (xdrx_begin)
          (xdrx_sysvar_push "osmode" "cmdecho")
          (setvar "osmode" 0)
          (setvar "cmdecho" 0)
          (setq p1 (xdrx_getentdxf 10)
                p2 (xdrx_getentdxf 11)
                tf (xdrx_isptoffscr p1 p2)
          )
          (if tf
            (progn
              (xdrx_drawing_viewsave)
              (xdrx_drawing_zoomw p1 p2)
            )
          )
          (setq intl (xdrx_getinters
                       e
                       (ssget "f"
                              (list p1 p2)
                              (list
                                (cons 8 dote_lyr)
                                '
                                 (0 . "line")
                              )
                       )
                     )
          )
          (foreach n intl
            (if (not (equal n pj 1e-5))
              (command ".copy" ss "" pj n)
              (princ "ok")
            )
          )
          (xdrx_sysvar_pop)
          (xdrx_end)
        )
      )
      (princ)
    )


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

使用道具 举报

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

使用道具 举报

 楼主| 发表于 2004-6-28 18:56:57 | 显示全部楼层
怎么没人知道吗 我是菜鸟  谁能给个动画演示 谢谢
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-21 07:24 , Processed in 0.354288 second(s), 38 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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