OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on May 29, 2014, 02:49:05 AM

Title: Problem with new nomenclature
Post by: Emiliano on May 29, 2014, 02:49:05 AM
The new nomenclature seems to have a problem when the function name is too long:

If I copy-paste the following code in the lisp file:
c:MappaturaColori/DettaglioMapColori/ChiudiDettMapColori#OnClicked

when I load the lisp in AutoCAD issued the following error:
Comando: (LOAD "C:/Documents and Settings/Anonimo/Desktop/MappaturaColori.lsp") ; errore: ads_undef failed: <nome num cr>:
C:MAPPATURACOLORI/DETTAGLIOMAPCOLORI/CHIUDIDETTMAPCOLORI#ONCLICKED 2968 22


As if I rename the function:
(defun c:MappaturaColori/DettaglioMapColori/CDMColori#OnClicked (/)


the lisp is loaded correctly.
With the old nomenclature I've never had this problem.
Can be introduced in Openstudio a check that warns the user when the name of the function is too long?
It is very annoying to discover this only after trying to load the lisp in AutoCAD  :'(
Title: Re: Problem with new nomenclature
Post by: owenwengerd on May 29, 2014, 03:33:43 AM
There is a size limit for function name plus arguments when calling an event handler asynchronously, but the naming convention does not affect the length of the function name, so I don't think it would matter. Please attach working vs. non-working samples and detailed steps that I can use to reproduce the problem here.