• 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. Automating Assembly Drawing

Stats

  • Replies 4
  • Subscribers 160
  • Views 13582
  • Members are here 0
More Content

Automating Assembly Drawing

vramanan
vramanan over 16 years ago

Hi I have uploaded a skill script

Which will basically create a detail on Manufacturing/assy_details1 after turning ON silktop/outline/refdes

 (it will calculate the scaling ratio, detail origin, so on and soforth)

The issue is I am able to run the commands one by one but when I execute it, nothing happens

I also included another function to create a allegro SCR file which when I run gives the following error

Command >  replay "foobar.scr"
Script version: 16.01
No element found.
Select elements to copy. Pick two points to define the selection window.
last pick:  -393.70  -285.43
Enter second point
last pick:  10129.92  3316.93
E- *Error* eval: undefined function - _dtl_saveDetail
E- <<< Stack Trace >>>
E- (... in _dtl_main ...)
E-     box = ((-393.7 -285.43) (10129.92 3316.93))
E-     popup = (("Done" "_dtl_doneCallback") ("Cancel" "_dtl_cancelCallback"))
E-     boxId = (dbid:143351352 nil)
E-     objList = (dbid:144299608 dbid:138533440 dbid:138533512 dbid:137628664 dbid:137626936 ... )
E-     tempFileName = "c:/Temp/#Taaaaab07972.tmp"
E-     t_layer = "MANUFACTURING/ASSY_DETAILS2"
E- _dtl_main()
E- No command active
E- Command not found: pop Done

 

Any Help/insight on this will be great

 regards

Venkata

 

 

text7.zip
  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 16 years ago

     Get the lastest 16.2 ISR to resolve this problem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vramanan
    vramanan over 16 years ago

     Hi I installed the latest ISR but this is were I am stuck

    (defun fGenAssy ()
        sstatus(stacktrace 30)
        sstatus(stacktraceDump t)
    lv.p = axlVisibleGet()
    axlVisibleDesign(nil)
    axlVisibleUpdate(nil)
    axlVisibleLayer("BOARD GEOMETRY/OUTLINE"  t)
    axlVisibleLayer("BOARD GEOMETRY/SILKSCREEN_TOP"  t)
    axlVisibleLayer("PACKAGE GEOMETRY/SILKSCREEN_TOP"  t)
    axlVisibleLayer("REF DES/SILKSCREEN_TOP"  t)
    axlVisibleLayer("PIN/SOLDERMASK_TOP"  t)
    axlVisibleUpdate(nil)

    sprintf(startp "pick %0.4L %0.4L", lv.LowerBrdX-200, lv.LowerBrdY-200)
    sprintf(endpt "pick %0.4L %0.4L", lv.UpperBrdX+200, lv.UpperBrdY+200)
    sprintf(Vscale "FORM mini scale_factor %0.2L", lv.ScaleFac)
    sprintf(detailpt "pick %0.4L %0.4L", lv.LowerAsyX, lv.LowerAsyY)
    axlShell("noappmode")
    axlShell("setwindow pcb")
    axlShell("create detail")
    axlShell("generaledit")
    axlShell("setwindow form.mini; FORM mini subclass ASSY_DETAILS1")
    axlShell(Vscale)
    axlShell("setwindow pcb")


    ;#### Stuck Here

    axlShell(startp)
    axlShell(endpt)
    sprintf(detailpt "pick %0.4L %0.4L", lv.LowerAsyX, lv.LowerAsyY)
    axlShell(detailpt)
    axlShell("prepopup 0 0")
    axlShell("pop Done")
    axlVisibleSet(lv.p)
    )

     The code runs fine if I enter one by one on the skill shell

    But when I run the function, the script gets stuck where I have mentioned ";#### Stuck Here"

    The  axlshell that passes the start point and end point is not working

     I tried different things and still stuck

     I appreciate any help on this regard

     

    Venkata

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • aCraig
    aCraig over 16 years ago

    Have you tried recording a script to make sure you are getting ALL the mouse clicks? For instance I don't see "pop Group" or "pop Complete" within the "create detail" command.

    - Craig

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vramanan
    vramanan over 16 years ago
    Hi Craig

    I tried the following variation, still the same issue it gets stuck at the same location

     

    It won’t go through the pick location

     

    (defun fGenAssy ()

                    sstatus(stacktrace 30)

                    sstatus(stacktraceDump t)

    lv.p = axlVisibleGet()

    axlVisibleDesign(nil)

    axlVisibleUpdate(nil)

    axlVisibleLayer("BOARD GEOMETRY/OUTLINE"  t)

    axlVisibleLayer("BOARD GEOMETRY/SILKSCREEN_TOP"  t)

    axlVisibleLayer("PACKAGE GEOMETRY/SILKSCREEN_TOP"  t)

    axlVisibleLayer("REF DES/SILKSCREEN_TOP"  t)

    axlVisibleLayer("PIN/SOLDERMASK_TOP"  t)

    axlVisibleUpdate(nil)

     

    sprintf(startp "pick %0.4L %0.4L", lv.LowerBrdX-200, lv.LowerBrdY-200)

    sprintf(endpt "pick %0.4L %0.4L", lv.UpperBrdX+200, lv.UpperBrdY+200)

    sprintf(Vscale "FORM mini scale_factor %0.2L", lv.ScaleFac)

    sprintf(detailpt "pick %0.4L %0.4L", lv.LowerAsyX, lv.LowerAsyY)

    axlShell("noappmode")

    axlShell("setwindow pcb")

    axlShell("create detail")

    axlShell("generaledit")

    axlShell("setwindow form.mini; FORM mini subclass ASSY_DETAILS1")

    axlShell(Vscale)

    axlShell("setwindow pcb")

    ;axlShell("prepopup 0 0")

    axlShell("pop Group")

    ;#### GETS Stuck Here asking for location 1 and 2

    axlShell(startp)

    axlShell(endpt)

    ;axlShell("prepopup 0 0")

    axlShell("pop Complete")

     

    sprintf(detailpt "pick %0.4L %0.4L", lv.LowerAsyX, lv.LowerAsyY)

    axlShell(detailpt)

    ;axlShell("prepopup 0 0")

    axlShell("pop Done")

    axlVisibleSet(lv.p)

    )

     

    Regards

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