Hey Sparkies,
I have a bit of a problem that despite researching the internet have not been able to resolve.
I am using MDG Shapescript to modify an embedded element - port.
I want to keep the shape, but simply move it to the edge of element I have built.
The edge of the element, as you would expect from a port, is not on the edge, but in the centre. I want the port square symbol to rest ON the edge, not be off set by -10 of whatever so the edge is in the centre of the port.
I have tried using bottomAnchorOffSet, left, right etc but no effect. Can anyone advise?
Thanks
shape main{
noshadow = "true";
bottomAnchorOffset= (0,0);
rectangle(0,0,100,100);
if (HasTag("Status","Future")) {
setfillcolor(0,255,0);
}
if (HasTag("Status","ToGo")) {
setfillcolor(255,0,0);
}
fillandstrokepath();
}