亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? utils.lsp

?? Autocad-2005-簡體中文-解密版.zip
?? LSP
字號:
;;;                                                                    ;
;;;  UTILS.LSP                                                         ;
;;;                                                                    ;
;;;  Copyright 1987, 1988, 1990, 1992, 1994, 1996, 1997, 1998          ;
;;;  by Autodesk, Inc. All Rights Reserved.                            ;
;;;                                                                    ;
;;;  You are hereby granted permission to use, copy and modify this    ;
;;;  software without charge, provided you do so exclusively for       ;
;;;  your own use or for use by others in your organization in the     ;
;;;  performance of their normal duties, and provided further that     ;
;;;  the above copyright notice appears in all copies and both that    ;
;;;  copyright notice and the limited warranty and restricted rights   ;
;;;  notice below appear in all supporting documentation.              ;
;;;                                                                    ;
;;;  Incorporation of any part of this software into other software,   ;
;;;  except when such incorporation is exclusively for your own use    ;
;;;  or for use by others in your organization in the performance of   ;
;;;  their normal duties, is prohibited without the prior written      ;
;;;  consent of Autodesk, Inc.                                         ;
;;;                                                                    ;
;;;  Copying, modification and distribution of this software or any    ;
;;;  part thereof in any form except as expressly provided herein is   ;
;;;  prohibited without the prior written consent of Autodesk, Inc.    ;
;;;                                                                    ;
;;;  AUTODESK PROVIDES THIS SOFTWARE "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 SOFTWARE          ;
;;;  WILL BE UNINTERRUPTED OR ERROR FREE.                              ;
;;;                                                                    ;
;;;  Restricted Rights for US Government Users.  This software         ;
;;;  and Documentation are provided with RESTRICTED RIGHTS for US      ;
;;;  US Government users.  Use, duplication, or disclosure by the      ;
;;;  Government is subject to restrictions as set forth in FAR         ;
;;;  12.212 (Commercial Computer Software-Restricted Rights) and       ;
;;;  DFAR 227.7202 (Rights in Technical Data and Computer Software),   ;
;;;  as applicable.  Manufacturer is Autodesk, Inc., 111 McInnis       ;
;;;  Parkway, San Rafael, California 94903.                            ;
;;;                                                                    ;

;;;--------------------------------------------------------------------;
;;;  This file is from the Garden Path tutorial, and represents the    ;
;;;  final state of the application at the end of Lesson 7. Use this   ;
;;;  file to check your work.                                          ;
;;;--------------------------------------------------------------------;


;;;--------------------------------------------------------------------;
;;;  First step is to load ActiveX functionality.  If ActiveX support  ;
;;;  already exists in document (can occur when Bonus tools have been  ;
;;;  loaded into AutoCAD), nothing happens.                            ;
;;;--------------------------------------------------------------------;

(progn
    (vl-load-com)
    (vl-load-reactors)
)

;;;--------------------------------------------------------------------;
;;;  For ActiveX functions, we need to define a global variable which  ;
;;;  "points" to the Model Space portion of the active drawing.  This  ;
;;;  variable, named *ModelSpace* will be created at load time.        ;
;;;--------------------------------------------------------------------;
(setq *ModelSpace*
       (vla-get-ModelSpace
	 (vla-get-ActiveDocument (vlax-get-acad-object))
       ) ;_ end of vla-get-ModelSpace
) ;_ end of setq



;;;--------------------------------------------------------------------;
;;;     Function: Degrees->Radians                                     ;
;;;--------------------------------------------------------------------;
;;;  Description: This function converts a number representing an      ;
;;;               angular measurement in degrees, into its radian      ;
;;;               equivalent.  There is no error checking done on the  ;
;;;               numberOfDegrees parameter -- it is always expected   ;
;;;               to be a valid number.                                ;
;;;--------------------------------------------------------------------;
(defun Degrees->Radians	(numberOfDegrees)
  (* pi (/ numberOfDegrees 180.0))
) ;_ end of defun


;;;--------------------------------------------------------------------;
;;;     Function: 3dPoint->2dPoint                                     ;
;;;--------------------------------------------------------------------;
;;;  Description: This function takes one parameter representing a     ;
;;;               3D point (a list of three integers or reals), and    ;
;;;               converts it into a 2D point (a list of two reals).   ;
;;;               There is no error checking done on the 3dpt          ;
;;;               parameter --  it is always expected to be a valid    ;
;;;               point.                                               ;
;;;--------------------------------------------------------------------;
;;;   Work to do: Add some kind of parameter checking so that this     ;
;;;               function won't crash a program if it is passed a     ;
;;;               null value, or some other kind of data type than a   ;
;;;               3D point.                                            ;
;;;--------------------------------------------------------------------;
(defun 3dPoint->2dPoint	(3dpt)
  (list (float(car 3dpt)) (float(cadr 3dpt)))
) ;_ end of defun

;;;--------------------------------------------------------------------;
;;;     Function: list->variantArray                                   ;
;;;--------------------------------------------------------------------;
;;;  Description: This function takes one parameter representing a     ;
;;;               list of double values, e.g. a list of 2D points:     ;
;;;               '(p1.X p1.Y p2.X p2.Y p3.X p3.Y p4.X p4.Y).          ;
;;;		  The list is converted into an ActiveX                ;
;;;		  variant based on a safearray.                        ;
;;;               No error checking is performed on the parameter --   ;
;;;               it is assumed to consist of a list of doubles.       ;
;;;------------------------------------------------------------------- ;
(defun gp:list->variantArray (ptsList / arraySpace sArray)
					; allocate space for an array of 2d points stored as doubles
  (setq	arraySpace
	 (vlax-make-safearray
	   vlax-vbdouble		; element type
	   (cons 0
		 (- (length ptsList) 1)
	   )				; array dimension
	 )

  )
  (setq sArray (vlax-safearray-fill arraySpace ptsList))
					; return array variant
  (vlax-make-variant sArray)
)


;;;--------------------------------------------------------------------;
;;;     Function: xyzList->ListOfPoints                                ;
;;;--------------------------------------------------------------------;
;;;  Description: This function extracts and formats 3D point lists    ;
;;;               from one big list of reals, in the form:             ;
;;;                   (x y z x y z x y z ...)                          ;
;;;               This is the format of the data returned by the       ;
;;;               vla-get-coordinates function when applied to a       ;
;;;               standard polyline object.                            ;
;;;--------------------------------------------------------------------;
;;;               The return value will be a list in the format:       ;
;;;                    ((x y z) (x y z) (x y z) ... )                  ;
;;;--------------------------------------------------------------------;
(defun xyzList->ListOfPoints (coordList / ptlist)
  (while coordList
    (setq ptlist (append ptlist
			 (list (list (car coordList) (cadr coordList) (caddr coordList)))
		 ) ;_ end of append
	  coordList	 (cdddr coordList)
    ) ;_ end of setq
  ) ;_ end of while
  ptlist
  ;;; (setq ptlist ptlist)
) ;_ end of defun


;;;--------------------------------------------------------------------;
;;;     Function: xyList->ListOfPoints                                 ;
;;;--------------------------------------------------------------------;
;;;  Description: This function extracts and formats 2D point lists    ;
;;;               from one big list of reals, in the form:             ;
;;;                   (x y x y x y ...)                                ;
;;;               This is the format of the data returned by the       ;
;;;               vla-get-coordinates function when applied to a       ;
;;;               lightweight polyline object.                         ;
;;;--------------------------------------------------------------------;
;;;               The return value will be a list in the format:       ;
;;;                    ((x y) (x y) (x y) ... )                        ;
;;;--------------------------------------------------------------------;
(defun xyList->ListOfPoints (coordList / ptlist)
  (while coordList
    (setq ptlist (append ptlist
			 (list (list (car coordList) (cadr coordList)))
		 ) ;_ end of append
	  coordList	 (cddr coordList)
    ) ;_ end of setq
  ) ;_ end of while
    ptlist
  ;;; (setq ptlist ptlist)
) ;_ end of defun


;;;--------------------------------------------------------------------;
;;;     Function: CleanReactors                                        ;
;;;--------------------------------------------------------------------;
;;;  Description: This is a general utility function used for cleaning ;
;;;               up reactors. It can be used during debugging, as     ;
;;;               well as cleaning up any open reactors before a       ;
;;;               drawing is closed.                                   ;
;;;--------------------------------------------------------------------;
(defun CleanReactors ()
  (setq	*commandReactor* nil		; clear the variable
	*DrawingReactor* nil		; clear the variable
	)

  (mapcar 'vlr-remove-all
	  '(:VLR-AcDb-reactor		 :VLR-Editor-reactor
	    :VLR-Linker-reactor		 :VLR-Object-reactor
	    :VLR-Command-Reactor	 :VLR-DeepClone-Reactor
	    :VLR-DocManager-Reactor	 :VLR-DWG-Reactor
	    :VLR-DXF-Reactor		 :VLR-Editor-reactor
	    :VLR-Insert-Reactor		 :VLR-Linker-Reactor
	    :VLR-Lisp-Reactor		 :VLR-Miscellaneous-Reactor
	    :VLR-Mouse-Reactor		 :VLR-Object-Reactor
	    :VLR-SysVar-Reactor		 :VLR-Toolbar-Reactor
	    :VLR-Undo-Reactor		 :VLR-Wblock-Reactor
	    :VLR-Window-Reactor		 :VLR-XREF-Reactor
	    )
	  ) ;_ end of mapcar
  ) ;_ end of defun


;;;--------------------------------------------------------------------;
;;;     Function: square                                               ;
;;;--------------------------------------------------------------------;
;;;  Description: This function returns the square of a number         ;
;;;               example:  (square 7) returns 49                      ;
;;;--------------------------------------------------------------------;
(defun square (aNumber)
  (* aNumber aNumber)
) ;_ end of defun


;;;--------------------------------------------------------------------;
;;;     Function: getPerp-Distance-and-Angle                           ;
;;;--------------------------------------------------------------------;
;;;  Description: This function returns a list with the distance and   ;
;;;               perpendicular angle to user pt3, and is determined   ;
;;;               by supplied points pt1 pt2.  Pt3 is "user input"     ;
;;;               and need not be at right angles.  This allows us to  ;
;;;               solve for cases where ortho mode is off.             ;
;;;  Example usage:                                                    ;
;;;        (setq Data  (getPerp-Distance-and-Angle pt1 pt2 pt3) )      ;
;;;--------------------------------------------------------------------;
;;;      Arguments:                                                    ;
;;;          pt1  seed point                                           ;
;;;          pt2  seed point                                           ;
;;;      Note:  pt1 and pt2 denote a "line" segment                    ;
;;;          pt3  "user point" (point to solve for)                    ;
;;;--------------------------------------------------------------------;
(defun getPerp-Distance-and-Angle (linept1 linept2 userpt3 / dist:pt1->pt2
				   dist:pt1->pt3 dist:pt2->pt3
				   dist:pt2->ToPerpPt)
  (setq	dist:pt1->pt2    (distance linept1 linept2)
	dist:pt1->pt3    (distance linept1 userpt3)
	dist:pt2->pt3    (distance linept2 userpt3)
	dist:pt2->ToPerpPt  (/ (- (+ (SQUARE dist:pt2->pt3)
				  (SQUARE dist:pt1->pt2))
			       (SQUARE dist:pt1->pt3))
			    (* 2.0 dist:pt1->pt2))  
  ) ;_ end of setq

  ;; return a list of the point perpendicular from userpt3
  ;; on line segment between linept1 and linept2, as well
  ;; as the angle & distance between userpt3 and perpPt
  (list
    (setq perpPt(polar linept2 (angle linept2 linept1) dist:pt2->ToPerpPt))
    (distance userpt3 perpPt)
    (angle userpt3 perpPt)
  ) ;_ end of list
) ;_end of defun


;;;--------------------------------------------------------------------;
;;;     Function: midPoint                                             ;
;;;--------------------------------------------------------------------;
;;;  Description: This function returns the point at the middle        ;
;;;               between two give points                              ;
;;;--------------------------------------------------------------------;
(defun midPoint	(pt1 pt2)
  (polar pt1 (angle pt1 pt2) (/ (distance pt1 pt2) 2.00))
) ;_ end of defun
;|玍isual LISP

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲动漫精品| 91精品啪在线观看国产60岁| 亚洲18女电影在线观看| 久久久久久久性| 欧美日韩性生活| aaa欧美色吧激情视频| 老色鬼精品视频在线观看播放| 亚洲图片欧美激情| 欧美videossexotv100| 欧美视频日韩视频在线观看| 国产午夜亚洲精品羞羞网站| 久久精品一级爱片| 欧美日韩中文字幕精品| 成人久久18免费网站麻豆 | 亚洲精品精品亚洲| 精品对白一区国产伦| 欧美日韩中文另类| 色婷婷综合视频在线观看| 国产一本一道久久香蕉| 蜜桃在线一区二区三区| 亚洲成人久久影院| 亚洲欧美日韩一区二区| 亚洲国产高清aⅴ视频| 日韩精品专区在线影院重磅| 欧美日产国产精品| 欧美伊人精品成人久久综合97| 波多野结衣在线aⅴ中文字幕不卡| 国内精品伊人久久久久av影院 | 婷婷成人激情在线网| 亚洲欧美另类小说视频| 中文字幕在线观看一区二区| 欧美婷婷六月丁香综合色| 暴力调教一区二区三区| 国产不卡在线一区| 精品欧美一区二区三区精品久久| 在线观看网站黄不卡| 91啪在线观看| 91国产视频在线观看| 99精品偷自拍| 91国在线观看| 欧美午夜电影一区| 9191久久久久久久久久久| 欧美另类一区二区三区| 91.成人天堂一区| 日韩一区二区精品葵司在线| 91精品国产一区二区人妖| 91精品国产免费| 精品日本一线二线三线不卡| 久久综合丝袜日本网| 国产午夜精品在线观看| 国产精品色噜噜| 国产精品久久三| 亚洲女厕所小便bbb| 亚洲乱码国产乱码精品精小说 | 亚洲欧美日韩国产一区二区三区| 中文字幕日韩一区| 亚洲精品国产高清久久伦理二区| 亚洲精品视频一区| 视频在线观看一区| 美女一区二区三区| 国产成人综合亚洲91猫咪| 成人免费av在线| 在线一区二区三区四区五区| 欧美日韩小视频| 精品99久久久久久| 中文字幕一区二区三| 亚洲国产另类av| 六月丁香婷婷久久| 大尺度一区二区| 在线观看国产一区二区| 91精品国产综合久久香蕉麻豆| 精品国产91九色蝌蚪| 欧美激情在线一区二区三区| 一本到不卡精品视频在线观看| 一本到一区二区三区| 欧美日韩免费一区二区三区视频| 日韩免费视频一区二区| 亚洲国产精品国自产拍av| 亚洲一区在线播放| 久久国产成人午夜av影院| www.色精品| 欧美一级欧美三级| 国产精品免费观看视频| 五月天中文字幕一区二区| 国产精品一二三四区| 在线观看成人小视频| 久久久综合九色合综国产精品| 亚洲精品高清在线| 国产在线精品免费| 欧美在线免费观看亚洲| 久久久久久99精品| 午夜电影一区二区| 成人va在线观看| 日韩精品在线一区| 亚洲精品老司机| 粉嫩欧美一区二区三区高清影视| 欧美日韩国产综合一区二区| 欧美激情一区在线观看| 丝袜诱惑亚洲看片| 日本欧美韩国一区三区| 97超碰欧美中文字幕| 欧美日韩三级视频| 国产精品天天摸av网| 五月天欧美精品| 94色蜜桃网一区二区三区| 久久这里只有精品视频网| 亚洲欧美经典视频| 国产精品1区2区| 日韩写真欧美这视频| 亚洲一线二线三线视频| 成人一区二区三区中文字幕| 日韩欧美一级在线播放| 亚洲综合免费观看高清完整版 | 日韩一级精品视频在线观看| 亚洲欧美一区二区久久| 国产成人综合在线| www日韩大片| 日产国产欧美视频一区精品| 色吧成人激情小说| 国产精品久久久久婷婷二区次| 日本va欧美va精品| 国产精品2024| 色婷婷综合在线| 精品国产精品网麻豆系列| 亚洲香肠在线观看| 91网站在线播放| 国产精品网站一区| 韩国视频一区二区| 精品日韩一区二区三区免费视频| 午夜精品在线视频一区| 欧美日韩精品专区| 亚洲另类中文字| 91久久精品一区二区三区| 亚洲视频在线一区| 91亚洲国产成人精品一区二三| 国产精品理论片在线观看| thepron国产精品| 综合中文字幕亚洲| 91麻豆免费在线观看| 亚洲另类春色国产| 欧美伊人久久久久久久久影院| 亚洲午夜久久久久久久久久久 | 亚洲精品免费在线观看| 色综合久久中文综合久久牛| 亚洲视频一二区| 中文字幕在线播放不卡一区| 色香蕉久久蜜桃| 亚洲激情校园春色| 欧美体内she精高潮| 亚洲成人av在线电影| 欧美日韩精品一区二区| 日韩高清不卡一区二区三区| 日韩欧美综合在线| 国产精品996| 亚洲视频综合在线| 欧美美女黄视频| 另类小说欧美激情| 国产精品狼人久久影院观看方式| 91亚洲资源网| 调教+趴+乳夹+国产+精品| 精品国产乱码久久久久久老虎| 成人一区二区三区视频| 亚洲精品一二三四区| 欧美日韩成人高清| 国产一区二区电影| 亚洲视频狠狠干| 4438x亚洲最大成人网| 国产一区二区三区免费播放| 国产精品家庭影院| 欧美三级中文字| 国产一区不卡精品| 一区二区三区国产豹纹内裤在线| 91精品麻豆日日躁夜夜躁| 国产精品一二三四| 亚洲国产日日夜夜| 26uuu国产日韩综合| 91小视频免费看| 久久99精品久久只有精品| 久久久久久久一区| 欧美私模裸体表演在线观看| 国产原创一区二区三区| 亚洲综合色成人| 久久精品人人做人人爽97| 欧美在线不卡一区| 国产乱码精品一区二区三区av| 亚洲精品写真福利| 久久久久综合网| 欧美日韩aaaaaa| 99久久精品99国产精品| 免费在线观看一区| 亚洲精品视频自拍| 久久精品一区二区| 欧美一区二区私人影院日本| 91亚洲精品乱码久久久久久蜜桃| 六月丁香综合在线视频| 亚洲永久免费av| 欧美国产国产综合| 欧美v国产在线一区二区三区| 91激情五月电影| 成人午夜激情片|