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 - kaimeder

Pages: [1]
1
K, gotta report it...
thanks alot!

2
However the problem is DiagramObjects.Count == 0.
Should this work or is it actually working with the .NET Automation?

Thanks alot Frank!
Kai

3
OK, if you got a hyperlinked diagram-object.
Do you know any way to get the target-diagram where the object is linking to?
Thanks,
Kai

4
Hey Sparx, anyone,

any idea how to use the Automation-Interface to get Metainformation about Hyperlinked Diagram-Objects?

thanks in advance,
Kai

5
If you take a Diagram, drag-n-drop, hyperlink, you've got an composite activity.
I need to get the activity's target (the original diagram) where it hyperlinks to!

@Midnight: yes, the documentation ist quite *useless* on certain topics.

Thanks,
Kai

6
the problem is though that such a hyperlinked/composite activity has in fact Elements.Count=0 etc... like in the project-browser, these elements have no sub-objects at all.
any hint how to get the hyperlink-target?
Thanks!
Kai

7
Thanks alot!
Do you also know how to get a Composite's Target/Content/Composed Element?

Thanks,
Kai

8
Hello,

using the newest .NET AddInn-dll, there is no IsComposite Property to check whether an object is Composite (Activity-composition of other Activities).
Is this unavailable? How can I check for composite-structures?

Thanks,
Kai

9
Hello,

I'm trying to find out if an activity in the Repository-Tree is originally created there or linked to from another Tree-Object.
Do you know any way like ActivityObject.isLink() ?

10
thanks alot, problem was the absolute filepath, as mentioned.

thanks!
kai

11
Hello,

im just starting to code java against the automation server:

Code: [Select]

System.out.println("loading EA-API ...");
try {
   System.loadLibrary("SSJavaCOM");
   System.out.println("successfully loaded");
} catch (UnsatisfiedLinkError e) {
   System.out.println("could not load EA-API: " + e.getMessage());
}
System.out.println("opening EA-Repository ...");
try {
   Repository rep = new Repository();
   rep.OpenFile("./test.eap");
   System.out.println("LOADED! processing...");

   try {
       Collection<Package> models = rep.GetModels();
   } catch (Exception e) {
       System.out.println(rep.GetLastError());
       e.printStackTrace();
   }
} catch (Exception e) {
   e.printStackTrace();
   System.out.println("could not load Repository: " +         e.getMessage());
}


getting the models crashes with following output:
Quote
loading EA-API ...
successfully loaded
opening EA-Repository ...
LOADED! processing...
Call FileOpen() or FileOpen2() before accessing other Repository members.
java.lang.Exception: I
at org.sparx.Repository.comGetModels(Native Method)
at org.sparx.Repository.GetModels(Repository.java:570)
at de.innobis.innproc.Starter.main(Starter.java:33)


any hints?

thanks,
kai

Pages: [1]