CadToolChest FREE

for AutoCAD    

 

 

<Back





Download:

T%Is-It-
A-Point

T%IS-IT-A-POINT.LSP
Version: 2006-10-11
AutoCAD 2002 through 2007

Description

T%IS-IT-A-POINT is an AutoLisp Sub-Function, by CadToolChest, which functions within AutoCAD 2002, and later (possibly earlier).  It determines if a list is a 2d or a 3d point. That is, is a list a 2 or 3 element list of reals or integers?  Returns T if true, or nil otherwise.



Syntax:



(T%IS-IT-A-POINT LIST)



Where:


LIST=A list of 2 or 3 reals or integers.  If anything else, nil is returned.



Example 1:


(t%Is-It-A-Point (list 1 2 3.3 ))

Returns:     T



Example 2:


(t%Is-It-A-Point (list 1 2 3.3 "abc"))

Returns:     nil



Example 3:


(t%Is-It-A-Point (list 1 nil 3.3 ))

Returns:     nil

<Back



This program is distributed, by CadToolChest, as Freeware without guarantee or warranty of any type.  You may freely use, modify and/or distribute this program for personal or commercial use, but you may not sell or charge for it or any portion of it.  If bundled with a product that is sold, you must make this program available for free.  As customary, acknowledge the original author's contribution if you build upon or distribute this work.

The author of CadToolChest retains all copyrights other than described above.



  C O N T A C T       C A D T O O L C H E S T  
Feedback Form
 (e-Mail address not required)
ani-email-at.gif

Visitors since 2006/10/06

Free Hit Counter
USA-ani-Flag.gif

   USA

Visitors Web Counter