element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) Moving Wires with ULP or SCR
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 188 subscribers
  • Views 740 views
  • Users 0 members are here
Related

Moving Wires with ULP or SCR

e14 Contributor
e14 Contributor over 13 years ago

Is this possible?

 

also, is it possible to set any of the attributes of the objects in the ULP api?

 

UL_WIRE x1,x2,y1,y2 for instance ?  - it seems like its not, and I cant see how to use the MOVE command to move a wire around.

 

Thanks

 

Rob.

  • Sign in to reply
  • Cancel
Parents
  • autodeskguest
    autodeskguest over 13 years ago

    Hi Rob

     

    No,unfortunately. You can only read them. When you exit the ULP you run

    commands directly in the editor from the final exit("commands string") or

    fire off a script you can build and save from within your ULP calling the

    script the same way i.e. exit(script 'MyScript'). The script will often

    have speed advantages.

    All the best with the Python approach. I'm interested to see what develops.

     

     

    Warren

     

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 13 years ago in reply to autodeskguest

    Hi, thanks for getting back,

     

    I currently do use the exit() to execute my scr, but I am unable to see how to move "wires" around with the scr. It seems only certain objects can be move with this command? or am I missing something?

     

    Rob.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 13 years ago in reply to e14 Contributor

    Hi, thanks for

    getting back,

     

    I currently do use the exit() to execute my scr, but I am unable to see

    how to move "wires" around with the scr. It seems only certain objects

    can be move with this command? or am I missing something?

     

    Rob.

     

    You need to think 'how do I do it when in the editor?' as that's the limit

    of your power.

    Trouble is, wires have no names so you cannot refer to them by name.

    In the editor you can MOVE a wire by clicking its ends or middle and drag

    it.

    You can put it into a group and move that group.

     

    So your ULP needs to be identify these same points and replicate the same

    actions. You can MOVE(current point)(new point)

    e.g MOVE (0 0)(1 1)

    Trouble is you need to be sure there is no other object at the pickup point

    as that may be picked up. Sometimes you may need to hide the other layers.

    Normally the precision of the specified points will assure that the desired

    object point snaps to the cursor.

     

    You have to remain aware that in the editor you cannot get at the wires in

    an element(package). You need to manipulate those in the library. That

    said, another option is to manipulate the XML of the board file.  You still

    have the challenge of identifying the wire.

     

    Something that may work for you is this:

    You could first put the wire of interest into a group by itself. you can

    then detect that wire in the ULP as it is ingroup()

     

    Eagle permits you to set up a context menu(right Click). See HELP >SET>

    Context Menus. Set that up for a wire and it will be the only object

    grouped at that time so you can detect the wire and discover its points. 

     

    Careful of routed traces as they look like wires but you cannot move the

    end attached to a pin.

    Again, practice what can be done manually in the editor to understand what

    you can automate.

     

    All the best

    Warren

     

     

     

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • autodeskguest
    autodeskguest over 13 years ago in reply to e14 Contributor

    Hi, thanks for

    getting back,

     

    I currently do use the exit() to execute my scr, but I am unable to see

    how to move "wires" around with the scr. It seems only certain objects

    can be move with this command? or am I missing something?

     

    Rob.

     

    You need to think 'how do I do it when in the editor?' as that's the limit

    of your power.

    Trouble is, wires have no names so you cannot refer to them by name.

    In the editor you can MOVE a wire by clicking its ends or middle and drag

    it.

    You can put it into a group and move that group.

     

    So your ULP needs to be identify these same points and replicate the same

    actions. You can MOVE(current point)(new point)

    e.g MOVE (0 0)(1 1)

    Trouble is you need to be sure there is no other object at the pickup point

    as that may be picked up. Sometimes you may need to hide the other layers.

    Normally the precision of the specified points will assure that the desired

    object point snaps to the cursor.

     

    You have to remain aware that in the editor you cannot get at the wires in

    an element(package). You need to manipulate those in the library. That

    said, another option is to manipulate the XML of the board file.  You still

    have the challenge of identifying the wire.

     

    Something that may work for you is this:

    You could first put the wire of interest into a group by itself. you can

    then detect that wire in the ULP as it is ingroup()

     

    Eagle permits you to set up a context menu(right Click). See HELP >SET>

    Context Menus. Set that up for a wire and it will be the only object

    grouped at that time so you can detect the wire and discover its points. 

     

    Careful of routed traces as they look like wires but you cannot move the

    end attached to a pin.

    Again, practice what can be done manually in the editor to understand what

    you can automate.

     

    All the best

    Warren

     

     

     

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube