Book a Demo

Author Topic: Visio Toolbox  (Read 4357 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Visio Toolbox
« on: April 01, 2015, 12:12:25 am »
Hello,

I would like to create a custom toolbox of Visio elements within Enterprise Architect.

Using the profile helper, I found it is quite complex to set the shape of custom element with a shape script.

Is there a better way to set the shape (e.g. from image file)?

Thanks in advance.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Visio Toolbox
« Reply #1 on: April 01, 2015, 12:22:25 am »
You can use the Image function of shape script.

q.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Visio Toolbox
« Reply #2 on: April 01, 2015, 01:03:22 am »
Quote
You can use the Image function of shape script.

q.


Thanks.
Any example / link?
I couldn't find such in the sample scripts.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Visio Toolbox
« Reply #3 on: April 01, 2015, 04:05:26 am »
You can use Image(imageName,left,top,right,bottom) where imageName is the name of the image you have imported in the reference data and the rest are the coordinates. The image will be scaled with the element.

(You might also have a look in my Shape Script book)

q.