• 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. How to Rotate a placed symbol with skill

Stats

  • Replies 2
  • Subscribers 160
  • Views 13803
  • Members are here 0
More Content

How to Rotate a placed symbol with skill

HighFive
HighFive over 4 years ago

I'm having a devil of a time trying to figure this one out. 

I have a script that I want to "correct" the rotation of symbols placed in the BRD. For instance if the designer used the "spin" command instead of rotate, and the symbol was placed at an odd angle... like 89.15 deg, or 191.32 degrees- close to 90 degree rotations but not exactly. So the objective is to correct the rotation of symbols that are +-1 degree of a 90 degree rotation. That being said, I cant find a way to implement it. I've tried modifying the symbol rotation by setting the symbol->rotation member variable, with no effect. 

After looking at the RotateSilkAssyTop script that Dave did, I see he had to delete the text and then create new text to perform the rotation. Perhaps thats what needs to be done, unplace the symbol, then place it again with the correct rotation. I am unable to find any skill functions that will place a symbol either. Anyone have any tips? Thanks so much,

Cheers

  • Sign in to reply
  • Cancel
  • DavidJHutchins
    DavidJHutchins over 4 years ago

    you need to look at the documentation for axlTransformObject()
    below are a couple of examples from some code I have:

    (Value = axlTransformObject(component->symbol ?move list(DeltaX DeltaY)))

    (Value = axlTransformObject(component->symbol ?mirror Pin->component->symbol->isMirrored ?angle Pin->component->symbol->rotation ?origin New ))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • HighFive
    HighFive over 4 years ago in reply to DavidJHutchins

    Great thank you very much David :)

    • 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