• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. E- *Error* axlDBCreateText: argument #1 should be a str...

Stats

  • Replies 3
  • Subscribers 160
  • Views 3301
  • Members are here 0
More Content

E- *Error* axlDBCreateText: argument #1 should be a string

Kot13
Kot13 over 12 years ago

 

Hi All,

 I'm fairly new to SKILL. I've spent a day trying to figure out an issue with my code but i've had no luck.

What I'm trying to do is write code to automatically set up a board file. The code creates a FORM that the user fills in. If i run the code from the command line i get the following error :  "E- *Error* axlDBCreateText: argument #1 should be a string (type template = "tlggg") - nil" but if I execute the code one line at a time i do not encounter thiws error.

The variable (pn) is filled in by the user in a FORM. Here is the code from the FORM:

;board pn

fprintf(form "TEXT \"BOARD P/N: \"\n")

fprintf(form "TLOC 6 10\n")

fprintf(form "ENDTEXT\n")

fprintf(form "FIELD pn\n")

fprintf(form "FLOC 25 10\n")

fprintf(form "STRFILLIN 25 25\n")

fprintf(form "ENDFIELD\n")

 

In a different function I place a layer block symbol and then use user entered information to populate all the information into the symbol. Everything works until I hit this section of code:

TB = make_axlTextOrientation(?textBlock "5", ?rotation 0, ?mirrored nil, ?justify "center")

axlDBCreateText(pn, LineX:LineY, TB, "board geometry/logo", nil)

At this point I get the error mentioned above. I have gone as far as to test to make sure that pn is a string (stringp(pn)). I've even parsed pn and recreated the string. In either case I get the same error. If I comment this line out the script finishes without any errors. Also as i mentioned before if I execute the code one line at a time in the skill window I do not encounter the error.

FYI pn is set to "B7E45-80501"

Any help would be appreciated.

Thanks in advance,

Konstantin

  • Sign in to reply
  • Cancel
Parents
  • Yann00
    Yann00 over 12 years ago

    Hi Kot13,

     

    Could I see your work because I have exactly the same thing to do. The user come and fills in User.txt

    Then my SKILL code automatize the fills in of my board outline. I get you the two attachments.

    Tanks a lot.

    Yann

    Attachment.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Yann00
    Yann00 over 12 years ago

    Hi Kot13,

     

    Could I see your work because I have exactly the same thing to do. The user come and fills in User.txt

    Then my SKILL code automatize the fills in of my board outline. I get you the two attachments.

    Tanks a lot.

    Yann

    Attachment.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information