[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: Attributes
Hi Stefan (and all),
>Ooopss sorry, you have a policy? ;-) Ok this time it's no segfault thing
>then. What should Attributes Attach do?? I have an attribute 'uref'
Ummm... I think it's used to attach attributes. :->
>attached. I run Attributes Attach and gschem compilains:
> Attribute [uref=U103] already attached
Yeah, you can only attach an attribute to one place once.
>
>Humm, but I want to attach an _other_ attribute. Noops. Ok I detach
>'uref'. Works perfectly. The attribute gets red. Perfect! I can see that
>the attribute isn't attached.
If you select the object which has the attributes attached to
(like the component which has uref attached to it), and then pick
Attributes/Detach, then all selected attributes associated with that
component will be detached (attributes which aren't selected, but are
attached to that component will not be detached). Normally when you
select a component all the attached attributes are selected as well.
>
>Ok I select the part now and runs Attribute Attach. Nothing
>happens! Nothing! So it doesn´t segfault anymore, it does...nothing but
>complaining.
Would you rather it core dump? <grin>
>
>But... if you select the old uref and (by pressing down Ctrl) then also
>select the component and finally selects Attribute Attach I get
> You cannot attach non text items as attributes!
You've got the order of the selection backwards. If you select
the component first, then any attributes (text items), and then pick
Attributes/Attach, the attributes will be attached (turn yellow).
The error message above is telling you that you can't attach a component
(or for that matter any non-text item) as an attribute.
>If you select the old uref and the component by using a square (press
>mouse button, move, release mouse button) and selects Attribute Attach it
>still complains but ... voila package got an attribute again.
Chances are the selection box found the component first and
then the text item, so that is why it works. Order is important.
>
>Confused? Sorry, but at least it wasn't a segfault this time ;-)
>
Makes perfect sense. Now, why is this implemented this way?
Well, because it is easy and once you get used to it, it's a really fast
way to attach/detach attributes (text items) to various places. If
there's a better way, which doesn't involve more clicks/keystrokes or
popup dialog boxes, I'm all ears.
Hope that helps. I'll look at your other bug (nets not being
saved with the right color) later tonight.
-Ales