Book a Demo

Author Topic: MDG shapescript base64 en/de code.  (Read 3556 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
MDG shapescript base64 en/de code.
« on: August 22, 2012, 11:14:46 pm »
Hi,

I've posted and had a reply to this before - but as the search on this forum doesn't seem to work (?) i need to respost.

I'm struggling with base 64 en/de code of the shapescript section of an mdg technology XML file. I suspect its because i'm using Windows...when i select the base64 encoded text in the xml file, copy to a seperate (new file) tab in notepad++ and select decode base 64 - i'm given some binary output, i save this to temp.zip. However when i try to open the zip it fails with an unexpected end of archive message...Any ideas what i'm doing wrong ???

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: MDG shapescript base64 en/de code.
« Reply #1 on: August 23, 2012, 02:01:48 am »
Hi,

Ill answer my own question here. Approach i adopted in the end was to import the MDG into sparx and view/edit the shape script via Settings->UML Types. I then created myself a simpel UML Profile in sparx (see help files for this, ie create a profile package and add a Class with a stereotype of stereotype). Then set Name attribute to _image on the profile stereotype class and paste my edited shape script into default value and finally save the package as a UML profile (right click on the package and select Save Package as UML Profile).

Regards,

Jon.