Re: Can one easily add connection points to shapes?



Le 14 janvier 2018 04:39:53 GMT+01:00, Andrey Repin <anrdaemon yandex ru> a écrit :
Greetings, Chris Green!

Can one add connection points to shapes using the GUI or does one
need
to edit the shape to do it?  I want a rectangle with more than one
connection point on each side.

Shape is "a rectangle"

It needs manual edition of the shape, but it's not hard enough to be
afraid
of.
If you show us a shape and explain connection points you want to add,
we can
show you a step-by-step example so you can do it yourself for other
shapes.

That works with "custom shapes", which are defined by a xml "dia" file format (which encapsulate a subset of 
svg 1.1 xml - scalable vector graphics).

"Dynamic" shapes are defined programmatically, and that's the case of "standard box".

So, for that purpose, you should stat from "Assorted forms / perfect square" where you'll change 
"aspectratio" element "type" attribute from "fixed" to "free".
(copy from /usr/share/dia/shapes/Assorted/ the .shape file, note the png file is for ui and could mess you).


IMHO that's definitely not practical.

If you are nessed up with mathematics, you could also " snap to grid " a polyline, with convenient connection 
points as "physical" ones, then export it as something.shape.

That's an heavy process too.

In both case use File / shape & sheets menu to record it (create a sheet first). Everything will be recorded 
in your $HOME/.dia.

******
That would be great to have a "shape" design mode, but any advanced user with C capability have already his 
own workarounds ^^


-- 
Je suis née pour partager, non la haine, mais l'amour.
         Sophocle, Antigone, 442 av. J.C.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]