• Home
  • :
  • Community
  • :
  • Forums
  • :
  • PCB SKILL
  • :
  • How to Rotate a placed symbol with skill

PCB SKILL Forums

How to Rotate a placed symbol with skill

HighFive
HighFive 3 months 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

  • Reply
  • Cancel
  • Cancel
  • DavidJHutchins
    DavidJHutchins 3 months 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
    • Up 0 Down
    • Reply
    • Cancel
  • HighFive
    HighFive 3 months ago in reply to DavidJHutchins

    Great thank you very much David :)

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel

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.