Book a Demo

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

Pages: [1] 2
1
General Board / Re: Diagram Export/Import between models?
« on: October 10, 2024, 12:28:27 am »
Unfortunately there is not option.
There is table t_xrefsystem with column type, DFilter is type for Filters.
I can read them, I could update destination repository.
I am not sure whether there are some kind of dependencies?
I can recognize differences in Lemontree as Well. I need to investigate side effects of simples adding new records in this table.
Thank You Very much
Roman

2
General Board / Diagram Export/Import between models?
« on: October 09, 2024, 12:00:05 am »
Hi
Is there any way, how to share Diagram Filter definition between models?
I tried to find this issue in this forum. It is looong story.
Is it solved somehow in EA17?
I have a script, which can read current definition of filters from t_xrefsystem.
But change this table without deper knowledge could be risky.
Thank You
BR
Roman
 :(

3
General Board / Re: How to export UML profile from Repository Resources?
« on: August 21, 2023, 08:28:51 pm »
I cannot attach the pdf.
There are 3x2 option for generating UML Profile xml file and 6x3 option for reading xml files.
The result is:
1. If the general model option "Sort Alphabetically is ON" In Object Preferences/Sort Features Alphabetically, the option Publish Package generate xml with different order of element as Publish as Diagram.
2.In other option it works, sometime I have to select right stereotype manually for the first time, but it works.


For me, I will prefer option Publish diagram.
But for me it is strange, that xml pairs key=values are not respect during import process.


Thank You very Much for valuable discussion.
Roman

4
General Board / Re: How to export UML profile from Repository Resources?
« on: August 21, 2023, 08:17:12 pm »
The difference is that saving a diagram will include the rendering style. And of course only the elements that are actually on the diagram. This could be a subset of the package contents. Havig said that, I only save the package since I set the style via shape script. And it will export always all elements of the package.

q.
Thank YOu Modesto, Thank You Qwerty.
For me it means, I have to test outputs more deeply than before.
The side effect of changing order of elements in xml file leads to total mulfunction after importing UML profile after importing.
I have tested all option EA15, EA16 32 bits, EA16, 64 bits as UML Profile source (in variants Publis Package, Publish Diagram) and impact on reading in EA15, EA16, 32 bits , EA 16 64 bits.
See attachment.
I have raised ticket. IMO there is bug in XML parser, maybe it is feature, but the parsing process is dependant on global setting - Order element !!!.


5
General Board / Re: How to export UML profile from Repository Resources?
« on: August 15, 2023, 09:21:29 pm »
I am confuse, surprise from implementation of UML Schema, .
XML should not be dependent on element order at all.
All parameters have key-value. Why it is dependent on order?
It is very strange.
I can rise the ticket to sparxs, may be they will add this bug into backlog.
 :)
Roman

6
General Board / Re: How to export UML profile from Repository Resources?
« on: August 15, 2023, 05:59:00 am »
Hi Qwerty
Thank You for prompt answer, although pessimistic :).
I have found the root cause of different behavior of "new" and original UML Profile.
1. Original UML profile was generated as "Save Diagram as UML Profile"
2. "New" one was generated as "Save Package as UML Profile"
The differences are in order of parameters and attributes in output xml files


That means, the dedicated repository contains the same content, but results depends on the way of generating.
Save Package as UML and Save diagram as UML Profile apply different methods for ordering the parameters in generated XML file.


Thank You very much 
kind regards
ROman

7
General Board / How to export UML profile from Repository Resources?
« on: August 15, 2023, 01:49:05 am »
Hi All,
I am in situation, that I need to make reverse engineering over my own UML Profile.
We have changed the UML Profile package in model dedicated for developing UML Profile.
We have imported this profile to many models.
The last change was made outside this dedicated model in local repository of one guy who left company already.
New generated UML profile doesn't work correctly and I need to fix dedicated model with UML profile package.
My problem is, that I have repository with correct UML profile in Repository Resources.
I need to extract somehow this profile to XML file to perform "reverse engineering" and correct original in UML Profle Package.
Could You please to advice me how to manage it?
Thank You very much
Kind regards
Roman

8
Hi All,
I have found the differences which may cause which version of EA.APP (32, or 64 bits) is launched.
The key is client , python version. If I am using 32 bits version its launch the 32  bits version of EA.app.
In case I run the script via 64 bits version of python, it launches  64 bits version of EA.App.


Thank You very much for Your help.
Roman :)

9
Hi Vega
thank You for confirmation of my assumptions. .
But I have another notebook, where there are the same applications EA15 and EA16, 64 bits. On that second notebook is by default starting EA16 OLE server not EA15 OLE object.
I am not aware How I have got this situation. How the windows knows which is default?
I will be forced to uninstall EA 15 and try once again.




Hi Qwerty,
I am afraid, but I could try it, to put isntead "EA.App" reference to physical file, with ole server.
maybe it could be, but I have no experience with it.
Thank You


Roman

10
Hi All
I have installed EA15 and EA 16 64 bits at the same workplace.
I am performing application backup of MS SQL repositories into EAPX files via method
MyProject.ProjectTransfer(SourceFilePath=MySourceString, TargetFilePath= MyDestinationString, LogFilePath=MyLogFile).
Is there any way how to reference 32 bit version and 64 bits version?
I am planning to switch from EAPX to QEA files and I need to have both version of EA  in parallel for some time until I uninstall EA15.
I am looking for the way how I can in script (in my case in python) to reference "ea.app" 32 bits (EA15) and "ea.app" 64 bits (ea16)
Thank YOu
Roman

11
Hi,
I am force to use Postgress as DBMS repository. I am using MySQL for many years. I would like to use search with case insensitive setting.
Do You have experience how to create DB in Postgress with collation case insensite, similar like in MS SQL?
Thank You
Roman

12
General Board / Re: How to create Process Guidance pattern?
« on: December 17, 2018, 05:53:23 pm »
Hi RoyC, GlassBoy,
Thank You for You answers.
I can do Pattern from diagram. I can use it from Resources Windows.
I would like to present these patterns in standard wizard in tab 'Process Guidance'.
I can do my MDG. But I havent found the procedure how to make my diagram pattern deliverable with my MDG.
Is enough to create profile 'Process Guidance'.
The same question is for me the Items in wizard - Application Patterns , VEA Examples.
Thank Yo uvery much
Roman

13
General Board / How to create Process Guidance pattern?
« on: December 11, 2018, 10:23:31 pm »
Hi All,
I am missing some guide how to create own Wizard for Process Guidenace.
I have looked in documentation (MDG, User,...), but haven't found any information.
Is there any guide how to manage it?


Thank Yo uvery much
BR
Roman

14
Hi All,
Thank You for this topic, It helped me to put the 'Package Hyperlink' on current diagram

Please, don't forget Reload the diagram at the end of all actions.

Repository.ReloadDiagram(theDiagram.DiagramID)


Example: This script is located in Diagram scripts group.

option explicit

!INC Local Scripts.EAConstants-VBScript

' *********************** > SCRIPT SUMMARY < ************************* 01-DIA-PackageHyperlink
'> Script Name:   01-DIA-PackageHyperlink
'> Author:       Roman Kazicka
'> Purpose:    Better navigation in model repository via diagrams
'>            the goal is to automatically generate hyperlink to package on current diagram
'                     
'> Category:   Model Navigation
'> Description: Create on visible Diagram 'PackageHyperlink' to current Package in 'Project Browser'
'             
'> Trigger:      Via context menu in current diagram
'> Input:      Selected Package in ProjectBrowser, Open diagram on which will be created hyperlink
'> Output:      Package hyperling on current diagram  with note #ModelNavigation#
'            
'> Date:       20181007
'> Notes:      
' TODO 1:

'__________________________> Script Summary < ____________________________01-DIA-PackageHyperlink
'
' Script Name:            01-DIA-Package Hyperlink
' Author:                Roman Kazicka
' Purpose:                Better navigation in the model via diagram Package Hyperlink
' Description:             
' Trigger:              via script in Diagram, (the same thing can be done via Project Browser script with the same name 01-PB-PackageLink
' Date:                2081006
'

'
' Diagram Script main function
'
sub OnDiagramScript()


dim currentDiagram as EA.Diagram
set currentDiagram = Repository.GetCurrentDiagram()
' This check is valuable in run mode
' Diagram have to visible
if not currentDiagram is nothing then
 dim  thePackage as EA.Package;

dim  newHyperlinkel as EA.Element;

set thePackage= Repository.GetTreeSelectedPackage()
set newHyperlinkel = thePackage.Elements.AddNew("$package://"& thePackage.PackageGUID , "Text")
   
      newHyperlinkel.Update()
      newHyperlinkel.Subtype = 19 '// This one is important for hyperlinks to packages!!
      newHyperlinkel.Update()
      newHyperlinkel.Notes = "#ModelNavigation#"
  newHyperlinkel.Alias=thePackage.Name
      newHyperlinkel.Update()

  AddElementToDiagram newHyperlinkel, currentDiagram
  currentDiagram.Update()
'If diagram is not visibe -
else
Session.Prompt "This script requires a diagram to be visible", promptOK
end if

end sub
'-----------------------------------------------------
'======================================================
sub AddElementToDiagram(theElement, theDiagram)

      dim diagramObjects as EA.Collection
      dim obj as EA.DiagramObject


      theDiagram.Update()
      set diagramObjects = theDiagram.DiagramObjects
       set obj = diagramObjects.AddNew( "l=200;r=400;t=-300;b=-400;", "TEXT" )
  set obj = diagramObjects.AddNew( "", "TEXT" )
      obj.ElementID( theElement.ElementID )
      obj.Update()
      obj.Style = "BackColor=-1;BorderColor=255BorderWidth=1;FontColor=-1;VSwimLanes=1;HSwimLanes=1;BorderStyle=0;"
      obj.Update()

      Session.Output("Added object " & theElement.Name)
      Repository.ReloadDiagram(theDiagram.DiagramID)

end sub

OnDiagramScript



____________________________________


BR
 Roman

15
I am the same problem.
But re-installation of MDG did not help.
OS. Microsoft Windows [Version 10.0.14393], 64 bits.
MDG : mdgoffice64.msi

MS Office 2016
Screenshot with Error message is here This is Error message screenshot
The problem is with all MS Office application, Word, Excel, Powerpoint, Visio.
Any suggestions?
Thank You in advance
Roman

Pages: [1] 2