Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Paolo F Cantoni on July 23, 2021, 10:02:22 am

Title: v15.2 – setlinestyle(“NONE”)
Post by: Paolo F Cantoni on July 23, 2021, 10:02:22 am
We have found a need to be able to suppress the borders of certain items on diagrams (by means of USDPs).  We have a potential jury-rigged solution but it is unsatisfactory for a number of reasons.  Would it be possible to have a setlinestyle(“NONE”) variant of the function to suppress the pen?

Thoughts?
Reported,
Paolo
Title: Re: v15.2 – setlinestyle(“NONE”)
Post by: qwerty on July 23, 2021, 06:19:46 pm
All I know is that using DrawNativeShape ignores all pen settings. it's always the default 1px black border. The fill is respected, though. Well, another bug not getting fixed.

I would think that setting a px = 0 would be drawing "null" but that's ignored as well. Else we set the color of the border to that of the filing. Would do what you expect as well.

q.
Title: Re: v15.2 – setlinestyle(“NONE”)
Post by: Paolo F Cantoni on July 23, 2021, 08:24:10 pm
All I know is that using DrawNativeShape ignores all pen settings. it's always the default 1px black border. The fill is respected, though. Well, another bug not getting fixed.

I would think that setting a px = 0 would be drawing "null" but that's ignored as well. Else we set the color of the border to that of the filing. Would do what you expect as well.

q.
Forgot to mention it's not in Rectangular (Compartment) mode, so drawnativeshape is not involved.
The USDPs already allow the selection of the border type, this is just another option.

PAolo
Title: Re: v15.2 – setlinestyle(“NONE”)
Post by: qwerty on July 23, 2021, 10:44:48 pm
So if you're drawing it all by yourself then why draw a null line? Just don't draw it...

q.
Title: Re: v15.2 – setlinestyle(“NONE”)
Post by: Paolo F Cantoni on July 24, 2021, 12:05:53 am
So if you're drawing it all by yourself then why draw a null line? Just don't draw it...

q.
The way the USDPs interact, it's more efficient (and consistent with the internal architecture of the shapescript) to set the line style to none.

Paolo