EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.support.eng » How to Unlock components from the command line (or script).
How to Unlock components from the command line (or script). [message #170898] Mon, 03 July 2017 22:13 Go to next message
Chuck Huber
Messages: 601
Registered: October 2004
Senior Member
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Eagle 7.7.0<br>
<br>
It's clear how one can lock the position of components from the
command line:<br>
<blockquote><tt>Lock LED1 LED2 LED3;</tt><br>
</blockquote>
But what is not clear is to how to unlock it.  Thus far, I have
tried:<br>
<blockquote><tt>Lock -LED1      # Unkown element: -</tt><tt><br>
</tt><tt>Lock S LED1     # Unknown element: S</tt><tt><br>
</tt><tt>Lock (S) LED1   # Invalid point: (S) LED1<br>
Lock (S LED1)   # Invalid point: (S LED1)<br>
</tt></blockquote>
What I'd like to see is:<br>
<blockquote><tt>Unlock LED1 LED2 LED3;<br>
</tt></blockquote>
Ideas? Suggestions?<br>
<br>
Thanks for the help.<br>
<br>
    - Chuck<br>
</body>
</html>
Re: How to Unlock components from the command line (or script). [message #170899 is a reply to message #170898] Mon, 03 July 2017 22:34 Go to previous messageGo to next message
rachaelp
Messages: 604
Registered: March 2015
Location: UK
Senior Member
Hi Chuck,

You could use ULP and write an unlock function to retrieve the X and Y coordinates of each refdes passed as a parameter and then exit with LOCK (S X Y) for each one but I don't know of an existing command.

Best Regards,

Rachael

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/225094
Re: How to Unlock components from the command line (or script). [message #170903 is a reply to message #170899] Tue, 04 July 2017 08:24 Go to previous messageGo to next message
rachaelp
Messages: 604
Registered: March 2015
Location: UK
Senior Member
Hi Chuck,

I expect you've got this sorted now anyway but I've added another ULP to my library to create an unlock command. The usage is:

{code:class=jive_macro_code _jivemacro_uid_14991566319179456 jive_text_macro|data-renderedposition=92_8_1385_16|jivemacro_uid=_149915663 19179456}RUN unlock LED1 LED2 LED3{code}

You can find the detail here if you would like it:

There is a link to the GIT repository containing my library near the top, the usage for all my released library utilities are documented on that page.

Best Regards,

Rachael

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/225103
Re: How to Unlock components from the command line (or script). [message #170906 is a reply to message #170903] Tue, 04 July 2017 13:46 Go to previous message
rachaelp
Messages: 604
Registered: March 2015
Location: UK
Senior Member
rachaelp wrote on Tue, 04 July 2017 09:24
Hi Chuck,

I expect you've got this sorted now anyway but I've added another ULP to my library to create an unlock command.

Snip.....



Ugggh, the Element14 -> NNTP bridge really mangled that one very badly, sorry about that....

You can find the documentation for my EAGLE ULP library here:

https:// www.element14.com/community/people/rachaelp/blog/2017/03/03/eagle-ulp-utili ties-library

And the GIT repository is here:

https://gitlab.com/rachaelp/eagle-utils

Best Regards,

Rachael
Previous Topic: How to select all items
Next Topic: How can I delete one device from one library?
Goto Forum:
  


Current Time: Fri Sep 22 06:02:33 GMT 2017