Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Geert Bellekens

Pages: 1 ... 477 478 [479] 480 481 ... 572
7171
Mitch,

I haven't done it myself yet, but it shouldn't be too hard.
You just have to mimic whatever EA is doing when it calls a function in an add-in.

So you'll have to create (or get a hold of) an instance of their add-in class. (SVGExport.EAPlugin)
That class should be registered in COM, so somewhere in the windows libraries there must be a function to create an object based from a COM registration.

Then on this object you will be able to call EA_MenuClick() just like EA does when you choose the option to export the diagram to SVG.

I've done something similar in my add-in tester tool https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/tree/master/EAAddinTester with the difference that this tool can only test add-ins that inherit my own add-in base class.

But in that tool I also play the role of EA in order to test my add-ins without them being loaded into EA (allowing me to compile the code without having to shut down EA).

Geert

7172
Mitch,

Someone from Siemens recently published a free add-in to export a diagram to SVG.
http://community.sparxsystems.com/community-resources/706-svg-diagram-export-add-in
As the SVG format is vector graphics, you should be able to read it and then figure you the position of the most topleft element. From that position, and the general dimensions, you should be able to calculate a conversion factor to apply to each of your diagramobjects co÷rdinates.

And as a plus, you get a far better image (scalable) with a much smaller size.

Geert

7173
Quote
IsComposite is Read/Write. áMaybe you are getting confused with CompositeDiagram, which is read only.
http://www.sparxsystems.com/enterprise_architect_user_guide/10/automation_and_scripting/element2.html

True, by [highlight]my[/highlight] bad :-[

Geert

7174
Aaron,

IsComposite is documented as being read-only  :-/

Is the documentation wrong?

Geert

7175
There are a few post from a long time ago that explain how to do it.
Use the top left search button and search for "composite".

Geert

7176
Automation Interface, Add-Ins and Tools / Re: Attribute values
« on: June 27, 2013, 07:32:39 pm »
In case mean the Intitial Value, you can use Attribute.Default

Geert

7177
Automation Interface, Add-Ins and Tools / Re: Edit TabPane Name
« on: June 27, 2013, 05:24:23 pm »
Code: [Select]
Repository.AddTab (string TabName, string ControlID)
Geert

7178
I don't think you can.

Geert

7179
I guess you'll have to query the users security rights and act accordingly in your add-in.

You'll have to use SQL I'm afraid because I don't think there direct API access to security rights.

Geert

7180
Etienne,

I don't think you can.

If you really want it embedded in EA you could put the browser of your liking into a user control, and then show that user control in EA using Repository.AddWindow or Repository.AddTab

Geert

7181
Filip,

It's not really a workaround. You have to choose between archimate versions. Both can't be active at the same time because of various conflicts.

Geert

7182
In that case I don't have a clue.
If I were you I'd contact sparx support.

Geert

7183
are you sure you need this?
Code: [Select]
connector.Direction = Source -> DestinationThat doesn't seem valid. (does it even compile?)

Geert

7184
Ok, I think I understand.
If you want to create a new class diagram you'll need to add one to the element or package you want to create it under.
You'll need something like Package.Diagrams.AddNew()
Then you need to add elements to your diagram using the DiagramObjects collection, so Diagram.DiagramObjects.AddNew().

Make sure you link the diagramObject to the element in your model you want to show.

Then you can indeed play with the Style field to change color etc..

Regards

Geert

7185
Its still not clear to me what you are trying to achieve.

Please explain in more detail.

Geert

Pages: 1 ... 477 478 [479] 480 481 ... 572