• 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. Top to Bottom Mirror.

Stats

  • Replies 5
  • Subscribers 17
  • Views 10756
  • Members are here 0
More Content

Top to Bottom Mirror.

karthikeyan123
karthikeyan123 over 6 years ago

Hai,

I want to flip the selected part form Top to Bottom i attached the sample images that i want to do by skill code can you help me how to do it if any body knows share me the skill code please iam new to skill.

NORMAL IMAGE:

MIRROR IMAGE:

  • Cancel
  • Sign in to reply
  • eDave
    eDave over 6 years ago

    Take a look at axlTransformObject

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 6 years ago in reply to eDave

    hai dave

    I seen this  axlTransformObject but i did't get how to do it because i am new to skill so please share me the skill code through that i will learn so please share me the code.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 6 years ago in reply to karthikeyan123

    axlTransformObject(symDBID, ?mirror t)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 6 years ago in reply to eDave

    Hai dave,

    Thanks for your reply this gives some idea about it  but i don't know how to implement it so please share me the full skill program that will very helpfull to me.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 6 years ago in reply to eDave

    Hai dave,

    axlCmdRegister("mirror_box" 'mirror_box ?cmdType "interactive")
    mirror_objs = nil
    procedure(mirror_box()
    let( (mirror_objs UC_mbMark UC_mbPopup notdone)

    axlSetFindFilter(?enabled '("NOALL" "SYMBOLS" "VIAS" "CLINES" "LINES" "SHAPES" "TEXT")
                           ?onButtons '("SYMBOLS" "VIAS" "CLINES" "LINES" "SHAPES" "TEXT"))
    ;; Set the Control Panel to the Find tab
    axlControlRaise('find)   

        UC_mbMark = axlDBTransactionStart()


    UC_mbPopup = axlUIPopupDefine( nil (list
         (list "Oops" 'UC_mbOops)
        (list "Mirror" 'UC_mbMirror)
            (list "Done" 'UC_mbDone)
          (list "Cancel" 'UC_mbCancel)
         ))
        axlUIPopupSet(UC_mbPopup)

        notdone = t
        while(notdone
              mirror_objs = axlGetSelSet(axlSelect(?prompt "Select objects to mirror"))
            axlDBTransactionMark(UC_mbMark)
              if(mirror_objs then
                axlTransformObject(mirror_objs, ?mirror t ?angle 0 ?allOrNone nil)
              ); endif
        ); end while   

     

    )); let and procedure


    procedure(UC_mbMirror()      
        axlTransformObject(mirror_objs, ?mirror t ?angle 0 ?allOrNone nil)
        axlClearSelSet()
    );end procedure


    procedure(UC_mbOops()
        axlDBTransactionOops(UC_mbMark)
        axlClearSelSet()
    ); end procedure

    procedure(UC_mbCancel()
          axlUIWPrint(nil "** All changes Cancelled ! **")
          axlDBTransactionRollback(UC_mbMark)
          notdone = nil
          axlClearSelSet()
          axlCancelEnterFun()
        axlUIPopupSet( nil)
    ); end procedure

    procedure(UC_mbDone()
         axlUIWPrint(nil "Done")
         axlDBTransactionCommit(UC_mbMark)
         notdone = nil
          axlClearSelSet()
         axlFinishEnterFun()
        axlUIPopupSet( nil)

    ); end procedure

    This code i used for left to right mirror but i don't know how to do in top to bottom so please recorrect the code and send me. Thanking you.

    • 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