Hi
For my custom element I need an ellipse within a rectangle. This is relatively easy but when dragged onto a diagram the size of the element is wrong - there is an additional section at the bottom that means connectors drawn to the bottom of the shape appear disconnected.
Shape script is shown below, can anyone advise on a fix
Thanks
shape main
{
noShadow=true;
DefSize(100,70);
setfillcolor(255,255,255); // default is white
// Draw a transparent rectangle to contain the shape
StartPath();
Rectangle(0,0,100,70);
EndPath();
FillAndStrokePath();
if (HasTag('GSN Status','Completed'))
{
setfillcolor(0,176,80);
}
if (HasTag('GSN Status','Work In Progress'))
{
setfillcolor(255,192,0);
}
if (HasTag('GSN Status','Behind Schedule'))
{
setfillcolor(255,0,0);
}
if (HasTag('GSN Status','Not Required Now'))
{
setfillcolor(0,176,240);
}
Ellipse(5,5,95,65);
}