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.


Topics - Pegasus

Pages: [1] 2
1
Bugs and Issues / Change artifact to external wiht double click to open
« on: August 06, 2019, 11:19:58 pm »
Hello,

case 1: If I drag and drop an external document in to EA and select Artifact (external) a double click on artifact element results in opening the document (like Hyperlink)
case 2: Creating artifact from inside EA e.g. toolbox I get artifact element too. Assigning e.g web adress or local file adress to file. Now I expect same behaviour as in case1 but double-click leads opening property dialog only. Under File I can select the entry and click "Launch" to open file. But this workflow isn't I want to.

What's wrong in my workflow or what to configure to get behaviour described under case 1?

Thanks in advance
Pegasus

2
Hello,

I collect references to external sources (documents like pdf or ppx, web ...) in diagram as hyperlinks. Now I want to generate document (word /pdf) to broadcast diagrams with hyperlinks containing. If I generate HTML report I can select hyperlink on diagram (in browser) and the requested (external ro other tool and/or locations) document opens. But if I do generate document (e.g. Model Report Template) as Pdf or Word I get  diagram with displayed hyperlinks, but without fĂșnctionality (diagram elements are displayed separate model elements beginning with https:\\... . If I use for word internal viewer $inet://http:// is displayed and links can be followed by CTRL + click.
Is anyone able to describe how to generate documents with required "living" hyperlinks. I do not find explanation in EA documentation.

Thanks in advance
Pegasus

3
Bugs and Issues / legend using with wildcards
« on: March 27, 2019, 12:30:32 am »
I want to use diagram legend to colorise elements using wildcards, e.g. colorise all elements starting alias with "Analyse #". Does anyone know if this is supported or are fix values only possible.

Thanks
Pegasus

4
Hallo,
I tray to build matrix speciifcation with user defined search (EA 1427). E.g I need to search all activies with version 1.3. It is possible to call such a search inside a relationship matrix. But try same in matrix specification artifact, I can select a place (Package) in project browser only. Is there a deeper sense in this limitation or is there a trick to get matrix specification artifact work the way I expect?

Thanks in advance
Pegasus

5
SysML-Diagrams are movable only if diagram frame isn't active, otherwise following message is displayed
"Diagram frame(s) are currently being displayed. Please disable them and save the diagram(s) before continuing".
This note is also displayed when diagram isn't open. Bug or Feature? If feature why?

6
Hallo,

in https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/model_navigation/settingsourceandtargetpack.html method 3 describes using model search within relationshsip matrix

I just try to apply model search (target) but do have problem to get a simple self defined example SQL query running, like e.g.
select ea_guid as CLASSGUID, t_object.Object_Type , t_object.Name, t_object.Version from t_object where t_object.Object_Type = "Activity"

not to talk about more complex SQL-queries that results only the latest version of the activities (version number). If I call this from "find in Project" the query works fine

In https://www.sparxsystems.com/forums/smf/index.php/topic,40493.msg247612.html#msg247612 it seems to work, but I get search running only that bases on searches defined in "Query Builder"

Where I'm wrong? short-term recommendations greatly appreciated
Thanks in advance
Pegasus

7
Hello,
I want to use e.g. SYSMOD-MDG with current EA 14.1 (Build 1427). If I try to add SYSMOD-stereotype to e.g. a connector (double click) in a SysML ibd-diagram, dialog 'connector properties' is displayed, and afterwards try to change the stereotype (via dialog "Stereotype for: Connector) the Profile dropdown list only offers "SysML 1.5" profile.
If I write the FQN SYSMOD::information manually in field of the property window and reopen the stereotype-dialog, the dropdown list contains SYSMOD too.
If I then deselect the stereotype from SYSMOD (no further use of SYSMOD for this connector) and do the same proceeding as described at the beginning, SYSMOD isn't offered again.
Bug or feature or a kind of configuration? Someone who knows this observation?

Thanks in advance
Pegasus

8
Hello,

referring to http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/redefine_ster_other_prof.html I want to redefine SysML1.4::extendedRequirement the way that a tagged value "ASIL" is added and the two tagged values "risk" and "source" are removed. This redefined extendedRequirement expected to influence the origin toolbox extendedRequirements and is the base for deriving self-defined kinds of requirement. I did describe this redefinitions in profile (based on MDG-Template), saved it as profile and do import it as UML-Proifle. I see my own requirement and it contains the new tagged value "ASIL", but the removed "risk" and "source" too. And this isn't, what I did expect. Additionaly using extendedRequirement from toolbox nothing changed (looks like not redefined).
if I do have a look inside the saved profile-xml file I see following sequence that seems to be ok with regard of target to add ASIL but remove the unwanted tagged values (->Properties?):
<Stereotype name="extendedRequirement" notes="" cx="0" cy="0" generalizes="SysML1.4::extendedRequirement" baseStereotypes="SysML1.4::extendedRequirement" redefines="SysML1.4::extendedRequirement">
            <TaggedValues>
               <Tag name="ASIL" type="" description="" unit="" values="" default=""/>
            </TaggedValues>
            <RemovedProperties>
               <RemovedProperty name="source" description=""/>
               <RemovedProperty name="risk" description=""/>
            </RemovedProperties>
         </Stereotype>

Does anyone can explain where I am wrong or is the behavior caused by not deploying the redefinition as MDG?

Thanks in advance
"Pegasus"

9
Hello

Question to use of API for CreateBaseline. API Doc http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/automation/project_2.html describes the requirement to first parameter "PackageGUID: String - the GUID (in XML format) of the Package to Baseline". I found some example for jscript but not for Java API.
I do call
org.sparx.Package packageSel = m_repository.GetTreeSelectedPackage();
...
m_repository.GetProjectInterface().CreateBaseline(packageSel.GetPackageGUID(),startDate, baseLineNoteStr + startDate);

and it runs seemingly well, but I'm not sure if I use the api well.
Can someone confirm or please describe correct use of api.

Thank you  in advance
Pegasus

10
Hello,

I guess I don' see teh forest for the trees...  But I need urgent suggestion

In my HybridScript I added support for baseline nad did static on most "constants" I defined inside my script

org.sparx.Package packageSel = m_repository.GetTreeSelectedPackage();
...
m_repository.GetProjectInterface().CreateBaseline(packageSel.GetPackageGUID(),startDate, baseLineNoteStr + startDate);

 and first time all works right, but suddenly I get following crash message...

java.lang.NoSuchMethodError: Unable to find GetTreeSelectedElements
at org.sparx.Repository.comGetTreeSelectedElements(Native Method)
        at org.sparx.Repository.GetTreeSelectedElements(Repository.java:788)
        at SparxSystems.RepositoryInterface.syncEaWithPtcData(RepositoryInterface.java:1665)
        at SparxSystems.RepositoryInterface.main(RepositoryInterface.java:1768)
[Loaded java.lang.Shutdown from shared objects file]
[Loaded java.lang.Shutdown$Lock from shared objects file]

I deleted the libs eaapi.jar and SSJavaCOM.dll inside my local "lib"-package, but nothing changes.

11
Hallo,
currently I don't know what doing wrong (maybe lack on knowledge of java). I run Update() on a locked element (HybridScript in JAVA) and get an exception

Exception in thread "main" java.lang.Exception: Element locked
at org.sparx.Element.comUpdate(Native Method)
at org.sparx.Element.Update(Element.java:1077)

I surround the elem.SetName and following Update-call with try ... catch (Exception e) and get the message displayed, I put inside catch-block. But nevertheless the script ends with the (stacktrace) messages above. What I expect is, that I can catch the exception and coninue in script sequence. Maybe I catch the wrong Exception-Type. But if so, what will be the right one? I don't know a source describing the JAVA API

Thanks for support

Pegasus

12
Hello,

I just tried to use VB Scripts (diagram goup) changing line style of connectors in a diagramm adapted in EA V12.x inside EA V13 and it seems nothing to be changed. Using same Modell with EA 12.1 it works furthermore fine. Does something changed in API with release EA V13...? 

Thanks
Pegasus

13
General Board / SQL - Macro #Branch#: Result entire model
« on: January 14, 2017, 12:44:21 am »
Hello,

I am just testing #Branch# Macro with some case
and is see that result seems to be entire modell wheater if selected package contains further packages  or not? I expecte #Branch contains
Query:
select o.ea_guid AS CLASSGUID, o.Object_Type AS CLASSTYPE, o.name, o.ea_guid, o.Object_type AS Type, o.Stereotype, o.Author, o.modifiedDate AS Modified, o.note AS [Notes] FROM t_object o, t_package pkg WHERE pkg.Package_ID IN (#Branch#)

from user guide
http://sparxsystems.com/enterprise_architect_user_guide/13.0/model_navigation/creating_filters.html
Gets the IDs of the child Packages of the currently-selected Package, working recursively down to the lowest level of sub-Package. For example:
t_object.Package_ID IN (#Branch#)

Thanks
Pegasus

14
Hello,

I don't understand API for modifiy (update) tagged values.  (EA 13)
What I want is to update existiing Tagged Values if content changed  see part of my code (part of function call)...

Collection<org.sparx.TaggedValue> elemTaVs = eaElem.GetTaggedValues();  // what means read only`?
...
tv_ptcModifDate = elemTaVs.GetByName( eaPtcFNameModifDate ); // returns null if not found
tv_ptcModifDate.SetValue( "new Date" );
if (tv_ptcModifDate.Update()) {
  updateCount++;
}

but new value isn't set in Modell (seen by Wizard in Model)

Thanks for support
Pegasus

15
Hello,

there are some contratictory topics to question how to get in projectbrowser selected Obejcts (e.g. packages, requirements/elements); e.g. http://sparxsystems.com/forums/smf/index.php/topic,30519.msg222208.html#msg222208 [Geerd] and http://sparxsystems.com/forums/smf/index.php/topic,5050.msg123251.html#msg123251 [Aaron]. I do have same problem. In EA 13 using Java API GetTreeSelectedElements returns collection with e.g requirements only not also selected packages, so I assume there isn't an interface returning collection of selected "objects" [in project-browser]. But how is it possible to recognise multiple selections of "objects" e.g. packages and elements at once

Thanks for support and elucidation
Pegasus

Pages: [1] 2