1
Bugs and Issues / Sparx EA. Custom bitmap on node in diagram
« on: September 18, 2013, 12:22:21 am »
I have created a new stereotype 'Node_VE' based on metaclass Node, with new metatype name 'Node_VISA16x16'. I have also created a 16 x 16 bitmap file named 'visa_16x16_map_01.bmp'. I am trying to make this bitmap appear in the top right corner of my node (stereotype 'Node_VE') in the diagram, in much the same ways as a bitmap appears in the top right corner of metaclass Component.
When I create an element with this new stereotype, I can see the new bitmap in the project browser but not in the diagram.
How do I make the new bitmap appear in the diagram?
In my stereotype profile, I have used the Profile helper to define new stereotype 'Node_VE' with the following fields:
Name: Node_VE
Type: Element Extension
Extension: Node
General Properties:
Metatype: Node_VISA16x16
Display Options:
Size X: 100
Size Y: 100
Icon F:\visa_16x16_map_01.bmp
In my stereotype profile, stereotype Node_VE has an Extension connector to metaclass Node.
In my toolbox profile, I have used the Profile helper to define new toolbox page 'VE Sandpit' containing 'Node_VE' with the following fields:
Alias: Node_VE
Stereotype: VE Infra Architecture and Design::Node_VE(UML::Node)
Toolbox Icon: F:\visa_16x16_map_01.bmp
I have saved each profile diagram as a profile XML and built an MDG technology using these XML files.
The result is as follows:
My pretty new bitmap appears correctly in the VE Sandpit toolbox page.
I click and drag my new element onto a diagram.
In the project browser, the new bitmap is successfully displayed next to «Node_VE» Node_VISA16x16 Test.
The element («Node_VE» Node_VISA16x16 Test) looks just like a Node with no sign of the pretty new bitmap on the diagram.
When I create an element with this new stereotype, I can see the new bitmap in the project browser but not in the diagram.
How do I make the new bitmap appear in the diagram?
In my stereotype profile, I have used the Profile helper to define new stereotype 'Node_VE' with the following fields:
Name: Node_VE
Type: Element Extension
Extension: Node
General Properties:
Metatype: Node_VISA16x16
Display Options:
Size X: 100
Size Y: 100
Icon F:\visa_16x16_map_01.bmp
In my stereotype profile, stereotype Node_VE has an Extension connector to metaclass Node.
In my toolbox profile, I have used the Profile helper to define new toolbox page 'VE Sandpit' containing 'Node_VE' with the following fields:
Alias: Node_VE
Stereotype: VE Infra Architecture and Design::Node_VE(UML::Node)
Toolbox Icon: F:\visa_16x16_map_01.bmp
I have saved each profile diagram as a profile XML and built an MDG technology using these XML files.
The result is as follows:
My pretty new bitmap appears correctly in the VE Sandpit toolbox page.
I click and drag my new element onto a diagram.
In the project browser, the new bitmap is successfully displayed next to «Node_VE» Node_VISA16x16 Test.
The element («Node_VE» Node_VISA16x16 Test) looks just like a Node with no sign of the pretty new bitmap on the diagram.