Re: Fixed line width in SADT



Bleck said:
Hi,

I'd like to use the SADT/IDEF0 sheet. But I can't change the line width of
activities (boxes) and flows (arrows). Let's be clear, I have no problem
changing width of common objects (boxes ou lines).

Is there a trick to change arrows/boxes line widths settings in SADT/IDEF0
?
Better if there is a functionnality I did not found. Good if it's
soft-coded (in a script or so). I'm not a programmer but I can also change
things in the source code and compile (make) dia, if necessary and if i'm
told where/what to do ;-)

You want to look in objects/SADT/box.c and arrow.c, where you'd need to
introduce new properties (look in object/standard/box.c for the linewidth
property) and use them instead of the constant line width.  Problems to
watch out for: The bounding box must include half the line width, and it
should still be possible to load old objects.  There are macros defined in
lib/properties.h to deal with the latter.

There's also another bug in the implementation of SADT/IDEF0 arrows. The
zig-zag lines bug described in the FAQ (Q-13) which is said to be solved
since version 0.93 still applies to SADT arrows. Fortunately, the trick
explained in the FAQ works on these arrows.

That's because it is based on the neworthconn class (a failed attempt at
improving the orthconn), which doesn't have autorouting.  I haven't had
the time to work out if it can be replaced with the normal orthconn.

-Lars




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