Mailing list archives : pcb-rnd

ID:4802
From:Majenko Technologies <ma...@majenko.co.uk>
Date:Mon, 12 Apr 2021 11:03:40 +0100
Subject:Re: [pcb-rnd] [TIL] the SetSame() action
in-reply-to:4801 from rn...@igor2.repo.hu
replies: 4804 from rn...@igor2.repo.hu , 4812 from rn...@igor2.repo.hu
--00000000000071811905bfc3a15b
Content-Type: text/plain; charset="UTF-8"
 
Nice. Is there an inverse to that operation? To apply your current pen to
either the object under the cursor or to the set of selected objects?
 
That way you can copy the style from one object (or select it as a route
style) and then select a bunch of imported objects and set them all to be
your standard route styles.
 
Or is that tomorrow's [TIL]? ;)
 
On Mon, Apr 12, 2021 at 10:15 AM <rnd2@igor2.repo.hu> wrote:
 
> Hi all,
>
> I am starting to tag these kind of mail with [TIL], "Today I Learned".
> With this tag I write about a feature that already existed in pcb-rnd for
> long, potentially useful for many users with many different use cases but
> is generally not known by most users. I plan to write [TIL] posts
> before announcing related new features or upgrades.
>
> The SetSame() action is an old one of ours. There's a "pen" in pcb-rnd,
> this is a set of config nodes (in the design/ subtree) that remembers what
> line width, clearance, text size, etc. your tools are drawing with. When
> you select a routing style, it copies these fields from the routing style
> to the "pen". Whenever you draw anything interactively on the GUI, new
> objects inherit "pen" properties. If your current pen doesn't match any
> routing style, the checkboxes for routing styles remain empty. (This can
> happen if you change your pen, e.g. using the Mode menu, Drawing, text
> and line tool size tweaks).
>
> If course once you finished drawing an object, you can change its
> properties (using old style direct geometry change hotkeys/menus or the
> property editor). Plus you can import objects (e.g. loading through
> buffer). In these cases it is very easy to end up with a line, arc or text
> object that doesn't match any style.
>
> Now, let's say you have a board with a few objects not drawn with any of
> your existing routing styles. Let's say you want to draw a few more of
> them, e.g. extending or rerouting a sectin of a trace. That's where
> SetSame() can be handy:
>
> 1. hover the mouse cursor above the object with the properties you want to
> copy
>
> 2.a. either press {e s s}
>
> 2.b. or press colon (':') to get the command line and type setsame and
> press enter
>
>
> 3. if you were about a suitable object (line, arc, poly at the moment),
> your "pen" is loaded with the properties of that object and your tool is
> switched to draw a similar object (line tool, arc tool or polygon tool).
> Since these are all layer objects, the current layer is set to the layer
> of the object too.
>
> 4. if the new "pen" happens to match any of your routing style, that
> routing style is activated, else it's just an off-routing-style pen
>
> I hope you find the SetSame() action useful.
>
> Best regards,
>
> Igor2
>
>
>
 
-- 
*Matt Jenkins*
Majenko Technologies
https://majenko.co.uk
 
--00000000000071811905bfc3a15b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 
<div dir=3D"ltr"><div>Nice. Is there an inverse to that operation? To apply=
 your current pen to either the object under the cursor or to the set of se=
lected objects?</div><div><br></div><div>That way you can copy the style fr=
om one object (or select it as a route style) and then select a bunch of im=
ported objects and set them all to be your standard route styles.</div><div=
><br></div><div>Or is that tomorrow&#39;s [TIL]? ;)<br></div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Apr 12=
, 2021 at 10:15 AM &lt;<a href=3D"mailto:rnd2@igor2.repo.hu">rnd2@igor2.rep=
o.hu</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">Hi all,<br>
<br>
I am starting to tag these kind of mail with [TIL], &quot;Today I Learned&q=
uot;. <br>
With this tag I write about a feature that already existed in pcb-rnd for <=
br>
long, potentially useful for many users with many different use cases but <=
br>
is generally not known by most users. I plan to write [TIL] posts <br>
before announcing related new features or upgrades.<br>
<br>
The SetSame() action is an old one of ours. There&#39;s a &quot;pen&quot; i=
n pcb-rnd, <br>
this is a set of config nodes (in the design/ subtree) that remembers what =
<br>
line width, clearance, text size, etc. your tools are drawing with. When <b=
r>
you select a routing style, it copies these fields from the routing style <=
br>
to the &quot;pen&quot;. Whenever you draw anything interactively on the GUI=
, new <br>
objects inherit &quot;pen&quot; properties. If your current pen doesn&#39;t=
 match any <br>
routing style, the checkboxes for routing styles remain empty. (This can <b=
r>
happen if you change your pen, e.g. using the Mode menu, Drawing, text <br>
and line tool size tweaks).<br>
<br>
If course once you finished drawing an object, you can change its <br>
properties (using old style direct geometry change hotkeys/menus or the <br=
>
property editor). Plus you can import objects (e.g. loading through <br>
buffer). In these cases it is very easy to end up with a line, arc or text =
<br>
object that doesn&#39;t match any style.<br>
<br>
Now, let&#39;s say you have a board with a few objects not drawn with any o=
f <br>
your existing routing styles. Let&#39;s say you want to draw a few more of =
<br>
them, e.g. extending or rerouting a sectin of a trace. That&#39;s where <br=
>
SetSame() can be handy: <br>
<br>
1. hover the mouse cursor above the object with the properties you want to =
<br>
copy<br>
<br>
2.a. either press {e s s}<br>
<br>
2.b. or press colon (&#39;:&#39;) to get the command line and type setsame =
and <br>
press enter<br>
<br>
<br>
3. if you were about a suitable object (line, arc, poly at the moment), <br=
>
your &quot;pen&quot; is loaded with the properties of that object and your =
tool is <br>
switched to draw a similar object (line tool, arc tool or polygon tool). <b=
r>
Since these are all layer objects, the current layer is set to the layer <b=
r>
of the object too.<br>
<br>
4. if the new &quot;pen&quot; happens to match any of your routing style, t=
hat <br>
routing style is activated, else it&#39;s just an off-routing-style pen<br>
<br>
I hope you find the SetSame() action useful.<br>
<br>
Best regards,<br>
<br>
Igor2<br>
<br>
<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><b>Matt Jenkins</b><=
div>Majenko Technologies</div><div><a href=3D"https://majenko.co.uk" target=
=3D"_blank">https://majenko.co.uk</a></div></div></div></div></div>
 
--00000000000071811905bfc3a15b--
 

Reply subtree:
4802 Re: [pcb-rnd] [TIL] the SetSame() action from Majenko Technologies <ma...@majenko.co.uk>
  4804 Re: [pcb-rnd] [TIL] the SetSame() action from rn...@igor2.repo.hu
  4812 Re: [pcb-rnd] [TIL] the SetSame() action from rn...@igor2.repo.hu
    4813 Re: [pcb-rnd] [TIL] the SetSame() action from Majenko Technologies <ma...@majenko.co.uk>