• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

multiple selection in the file ai_utils.lsp

  • Thread starter Thread starter Joseph
  • Start date Start date

Joseph

Guest
nel file "ai_utils.lsp" all'interno della cartella support di autocad ho trovato questa interessante osservazione che giro a voi:

integers in autolisp are 32-bit values. however, when integers
are transferred between autolisp and autocad, they are restricted
to 16-bit values (+32767 to -32768). (sslength) returns real
numbers when the number of entities exceeds 32767, and subsequent
use of a variable expected to contain an int that actually contains
a real causes those functions to fail ((ssname) for instance.)

this wrapper ensures that the returned number is an int.
(defun ai_sslength (ss)
(if ss
(fix (sslength ss))
0
)
)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top