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 - Simon M

Pages: 1 ... 388 389 [390] 391 392 ... 433
Remove something from Diagram.DiagramObjects would be the only way.

Any chance you can get them as a spreadsheet?

Then you will be able to use the csv import functionality.

No, there isn't.

Then I don't think you can do it without writing an add-in and getting that to format your notes for you.

You may be able to use WRAP_LINES.

WRAP_LINES(<text>, <wrap_length>, <start_string>[, <end_string])

Wraps <text> as designated to be <wrap_length>, adding <start_string> to the beginning of every line and <end_string> to the end of the line if it is specified.

The documentation suggests that it should work.

ActivateDiagram (long DiagramID)
 Activates an already open diagram (that is, makes it the active tab) in the main Enterprise Architect user interface.

as opposed to

OpenDiagram (long DiagramID)
 Provides a method for an automation client or Add-In to open a diagram. The diagram is added to the tabbed list of open diagrams in the main Enterprise Architect view.


DiagramID: Long - the ID of the diagram to open.  

Okay, I'll got one step further with an option that may work but is a bit ugly.

Code: [Select]
CurrentID = Repository.GetCurrentDiagram().DiagramID
if(Repository.GetCurrentDiagram().DiagramID == DiagramID)
  IsOpen = True

On a diagram.
Copy (Ctrl+C)
On a diagram in the target package.
Paste as New (Ctrl+Shift+V)

Currently can't be done.

Automation Interface, Add-Ins and Tools / Re: Add-in in Java?
« on: November 19, 2010, 08:35:12 am »
The short answer is that we have written code to allow Java to call the EA COM objects by wrapping them with Java objects and JNI calls.  (Actually, apart from a small amount of support code this was generated using EA Transformations and Code Generation.)

The code to allow EA to call into Java is completely separate and although I have my theories on how it can be done, it hasn't been done.

Automation Interface, Add-Ins and Tools / Re: Add-in in Java?
« on: November 18, 2010, 08:25:45 am »
No you can't.  You can use Java with the automation interface but it is not possible to use it for an add-in.

Workflow scripts can't change anything on the elements.  Look at an add-in and implementing EA_OnNotifyContextItemModified.

Automation Interface, Add-Ins and Tools / Re: Trace between elements
« on: November 17, 2010, 08:13:44 am »

Automation Interface, Add-Ins and Tools / Re: MDG Link vs. MDG Integration
« on: November 09, 2010, 08:12:24 am »
My summary of the difference...

MDG Link allows EA to import and synchronize with Visual Studio projects.  MDG Integration does that, and allows you to work with EA from inside Visual Studio.

A beta for both products was released in July (and I thought updated recently but I don't see an announcement for that.)

Search the help for shape scripts.

Pages: 1 ... 388 389 [390] 391 392 ... 433