• 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 Scripting - Skill
  3. Why axlShell not same as script

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 18
  • Views 1110
  • Members are here 0
More Content

Why axlShell not same as script

Uri Chaplin
Uri Chaplin over 1 year ago

When I run this code 

; create script
;-------------------
Script_File=outfile("./kbg.scr" "w")
fprintf(Script_File "setwindow pcb\n")
fprintf(Script_File "zcopy shape\n")
fprintf(Script_File "trapsize 272\n")
fprintf(Script_File "setwindow form.mini\n")
fprintf(Script_File "FORM mini class_name %s\n" class)
fprintf(Script_File "FORM mini subclass_name %s\n" subclass)
fprintf(Script_File "FORM mini dynamic_shape YES\n")
fprintf(Script_File "FORM mini expand YES\n")
fprintf(Script_File "FORM mini offset %s\n" gap)
fprintf(Script_File "setwindow pcb\n")
fprintf(Script_File "pick %g %g\n" xCoord(snappedPoint) yCoord(snappedPoint))
fprintf(Script_File "pop Done\n")
close(Script_File)
; run script
;-------------------
axlShell("replay kbg.scr")

I receive errors :


\i (00:00:47) replay kbg.scr
\i (00:00:47) setwindow pcb
\i (00:00:47) zcopy shape
\i (00:00:47) trapsize 272
\i (00:00:47) setwindow form.mini
\i (00:00:47) FORM mini class_name ETCH
\e (00:00:47) Form field label not found
\i (00:00:47) FORM mini subclass_name TOP
\e (00:00:47) Form field label not found
\i (00:00:47) FORM mini dynamic_shape YES
\e (00:00:47) Form field label not found
\i (00:00:47) FORM mini expand YES
\e (00:00:47) Form field label not found
\i (00:00:47) FORM mini offset 10
\e (00:00:47) Form field label not found
\i (00:00:47) setwindow pcb
\i (00:00:47) pick 2735 1800
\t (00:00:47) last pick: 2735.00 1800.00
\e (00:00:47) Command not found: pop Done

But if I replay created script it's work without any warnings !!!

(00:00:06) trapsize 265
\i (00:00:11) script
\i (00:00:16) fillin "kbg.scr"
\i (00:00:18) replay kbg.scr
\i (00:00:18) setwindow pcb
\i (00:00:18) zcopy shape
\t (00:00:18) Select cline, cline segment, shape, rectangle or closed polygon.
(00:00:18) Loading cmds.cxt
\i (00:00:18) trapsize 272
\i (00:00:18) setwindow form.mini
\i (00:00:18) FORM mini class_name ETCH
\i (00:00:18) FORM mini subclass_name TOP
\i (00:00:19) FORM mini dynamic_shape YES
\i (00:00:19) FORM mini expand YES
\i (00:00:19) FORM mini offset 10
\i (00:00:19) setwindow pcb
\i (00:00:19) pick 2730 1805
\t (00:00:19) last pick: 2730.00 1805.00
\i (00:00:19) pop Done
\i (00:00:19) trapsize 265

What a problem ? Why is it not the same as manual script run ?

  • Cancel
  • Sign in to reply
Parents
  • JuanCR
    0 JuanCR over 1 year ago

    Hi Uri,

    I've tested your script and I'm getting the same results in both cases. I will contact you directly via email such we can exchange data and work on your specific case. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • JuanCR
    0 JuanCR over 1 year ago

    Hi Uri,

    I've tested your script and I'm getting the same results in both cases. I will contact you directly via email such we can exchange data and work on your specific case. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Uri Chaplin
    0 Uri Chaplin over 1 year ago in reply to JuanCR

    ok. chaplin.u@gmail.com

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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