Thanks Geert, on v13 the code below works. Having the 'Show Namespace' option on the diagram selected does not appear to do anything. I find where "SetFillColor(210,210,210);" counter intuitive.
shape main
{
layouttype= "border";
v_align= "CENTER";
h_align= "CENTER";
if (hasproperty ("packagepath", ""))
{
SetFillColor(255,255,255);
}
else
{
SetFillColor(210,210,210);
}
rectangle (0, 0, 100, 100);
printwrapped ("#name#");
}
While this does not always work, it works on most entities but not in all.
shape main{
if (hasproperty ("packagepath", ""))
{
SetFillColor(255,255,255);
}
else
{
SetFillColor(210,210,210);
}
DrawParentShape();
}
I will try on v15 later this week.