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,
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 ))
Great thank you very much David :)