1
Automation Interface, Add-Ins and Tools / Re: Anyone got a good example of displaying built-in & custom Compartments?
« on: August 28, 2018, 06:51:54 am »
The below is the test I am attempting unsuccessfully.
root type is class & has custom stereotype + shape script applied.
if only have ChildElement it reverts to the default class shape & "MyIDCompartment" is not an available in the visability list.
if I have main then ChildElement still does not display or available in visibility list.
Sorry, I'm having trouble getting my head around this.
root type is class & has custom stereotype + shape script applied.
if only have ChildElement it reverts to the default class shape & "MyIDCompartment" is not an available in the visability list.
if I have main then ChildElement still does not display or available in visibility list.
Code: [Select]
shape main {
setlinestyle("dash");
roundrect(0, 0, 100, 100,20,20);
println("TEST");
}
shape ChildElement {
SetCompartmentName("MyIDCompartment");
addsubshape("id",100,15);
addsubshape("name",100,15);
shape id {
scalable = "false";
println("#TAG:HEG::ID#.#version#");
}
shape name {
bold = "true";
println("#name#");
}
}
Sorry, I'm having trouble getting my head around this.
