Home > Community > Forums > PCB SKILL > Mantaining dynamic rotatation graphics

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Mantaining dynamic rotatation graphics 

Last post Fri, Feb 15 2013 9:11 AM by aCraig. 1 replies.
Started by aCraig 15 Feb 2013 08:16 AM. Topic has 1 replies and 651 views
Page 1 of 1 (2 items)
Sort Posts:
  • Fri, Feb 15 2013 8:16 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 132
    • Points 2,070
    Mantaining dynamic rotatation graphics Reply

    Hi,

    I'm writing a "copy" application.  I use axlSelect to select the object. Then axlSelect to get a reference pin and put the objects on the cursor using axlDynamicsObject. At this point both rotate and mirror are supported. When rotating I use axlEnterAngle to get the the angle, say 270, and then set axlSetDynamicsRotation to 270. Everything looks fine. Now I select the new origin (pin) for the rotated objects, using axlSelect.

    The objects are placed correctly but the dynamic objects on the cursor pop back to the original 0 degree rotation. But they are only visually rotated back to 0. If I place them again they are placed at the 270 degree rotation.

     Anybody understands what's going on?

    Thanks,

    Craig

    • Post Points: 5
  • Fri, Feb 15 2013 9:11 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 132
    • Points 2,070
    Re: Mantaining dynamic rotatation graphics Reply

    Never mind. I figured out why it's happening, seems there might be a bug with the command. In other to understand the state of the objects at various pieces of the code I was printing the status of things like mirror, angle, xy etc. In the copy function I had a print statement with axlSetDynamicsRotation (axlMsgPut "angle %L" (axlSetDynamicsRotation nil)). This should simply return the dynamic angle, but apparently it is resetting the angle as well.

    Regards,

    Craig

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by aCraig at 15 Feb 2013 08:16 AM. Topic has 1 replies.