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
5836
Remove something from Diagram.DiagramObjects would be the only way.

5837
Any chance you can get them as a spreadsheet?

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

5838
No, there isn't.

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

5840
You may be able to use WRAP_LINES.

Quote
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.


5841
The documentation suggests that it should work.

Quote
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

Quote
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.

Parameters:

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

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

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

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

5844
Currently can't be done.

5845
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.

5846
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.

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

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

5849
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.)

5850
Search the help for shape scripts.

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