Book a Demo

Author Topic: Resizing objects  (Read 4849 times)

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Resizing objects
« on: October 31, 2008, 02:50:17 am »
Hi there.

I've made an add-in that can read method info from a type in an assembly and create activities and activity parameters for the methods of this type.

All is working fine, except for one small problem:

I am using a custom stereotype for the parameters, with shapescript, and when I drag the activity into a diagram, the parameters are huge!

I tried to set the _sizeX and _sizeY, but to no use... is there something that needs to be set on the metaclass in order to correct this?

This is not a big deal, since as soon as I click them, they go back to the normal size, but I'd like to be able to create them with the right size.

Also, once I add objects to the diagram, is thre a way for me to tell the diagram to execute the Auto Layout command?

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Resizing objects
« Reply #1 on: November 07, 2008, 06:03:10 am »
One more thing:

Just opened an old project with stereotypes for ports and, as soon as I click them, they blow up to about 100x100 in size, and just won't resize back!

This project was created with 7.0 or 7.1, I don't remember.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Resizing objects
« Reply #2 on: November 07, 2008, 11:11:42 pm »
Which version and build are you using now?
No, you can't have it!

Sygnus

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Resizing objects
« Reply #3 on: November 08, 2008, 03:41:31 am »
7.1.831

The old project was developed under 7.0 (don't know the build).

Has this behavior been corrected on the last build?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Resizing objects
« Reply #4 on: November 08, 2008, 11:42:47 pm »
I'm not sure. There have been two 'large' builds since 831. Build 832 did have a lot of reported issues, but it also introduced many positive updates and repairs. Build 833 is still new, and also resolved many issues (thankfully including many of the reported 832 problems).

Why not update to Build 833 and try again. Keep your 831 kit handy in case anything goes awry.

To be better informed, you might want to browse the release notes on the EA History Page before you make the change.

HTH, David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Resizing objects
« Reply #5 on: November 10, 2008, 08:16:19 am »
Somewhere along the line, the ability for a profile to specify the size of ports, activity parameters etc. was added.

Unfortunately, prior to then most profiles would have specified a large size, and it would have been ignored.  This is still the default if no size is specified.

I don't know why setting the size wouldn't be working, but if you don't get a satisfactory answer today fill in a bug report and someone here who knows this area better than me should answer your question.