Book a Demo

Author Topic: Printed text from Shapescript not copied from diagram  (Read 3149 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Printed text from Shapescript not copied from diagram
« on: August 31, 2018, 09:54:05 am »
We implemented a Datastore element and wanted to be able to handle multiple types of datastores: RDBMS, DocumentStore, Cache, CSV etc.  So we created a tagged value DatastoreType to manage this.
Normally we create a conditional shapescript which uses the tagged value to change the shape and or icon of the element controlled by the tagged value.  Time and resources didn't permit (at this time) so we jury-rigged an interim solution where we just print the tagged value below the SW corner of the item with the following code.
Code: [Select]
setorigin("SW",20,0);`addsubshape("datastoretype", "SW");
shape datastoretype
{
v_align="top";
h_align="center";
print("(#TAG:DatastoreType#)");
}
Works fine on the diagram, but when I select the item on the diagram and paste it into (say) an email, the datastoretype is NOT copied.

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!