A question about SKILL
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
A question about SKILL

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Guest






Posted: Fri Oct 08, 2004 1:26 pm    Post subject: A question about SKILL Reply with quote

Hello,
I am a jackeroo on creating programs by using SKILL language.
When I try to run a SKILL example called "axlform.il" which is in the
Allegro 14.2 installation path, Allegro lists an error by using a
string like the following:
"E-*Error* axlFormDisplay: argument #1 should be an "other" atom (type
template = "o")-nil".
I can not understand what this error message means. Please experts help
me. Thanks a lot!

Tom

Back to top
David Cuthbert
Guest





Posted: Thu Oct 14, 2004 7:29 pm    Post subject: Re: A question about SKILL Reply with quote

Tom_Ding@hotmail.com wrote:
Quote:
I am a jackeroo on creating programs by using SKILL language.
When I try to run a SKILL example called "axlform.il" which is in the
Allegro 14.2 installation path, Allegro lists an error by using a
string like the following:
"E-*Error* axlFormDisplay: argument #1 should be an "other" atom (type
template = "o")-nil".
I can not understand what this error message means. Please experts help
me. Thanks a lot!

Hi Tom,

This message means that axlFormDisplay is expecting something other than
a standard SKILL type -- these types are listed on page 20 of the
(PDFized) SKILL language reference. (Unfortunately, SKILL itself
doesn't know about most GUI elements, so you get this rather ambiguous
message.)

I'm not familiar with Allegro (I'm over in CIC), but if you search on
SourceLink for axlFormDisplay, it will direct you to the Allegro/APD
Design Guide: SKILL Reference Manual, in the Form Interface Functions
chapter (11). It gives the following example on how to use these functions:

-----
; User-callable function to set up and
; display the Extract Selector form
(defun myExtract ()
fileList = (cdr (cdr (getDirFiles
cadr( parseString( axlGetVariable("TEXTPATH"))))))
form = axlFormCreate( (gensym)
"extract_selector.form" `("E" "OUTER")
`_formAction t)
axlFormTitle( form "Extract Selector")
axlFormSetField( form "view_file" (car fileList))
selectedFile = (car fileList)
foreach( fileName fileList
axlFormSetField( form "file_list" fileName))
axlFormDisplay( form)
); defun myExtract
-----

So axlFormDisplay() is expecting a form created by axlFormCreate().

Hope this helps.

--
David Cuthbert (dacut@cadence.com) Tel: (412) 599-1820
Cadence Design Systems R&D
Back to top
Guest






Posted: Mon Oct 18, 2004 8:10 am    Post subject: Re: A question about SKILL Reply with quote

I get it! Thank you very much!

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB