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

Pages: 1 [2]
16
Hello, I'm just investigating changes in 8.0 version and I want to ask if someone knows how  the new API function VersionControlGetLatest is implemented
It can check if the package is up-to-date with respect to the XML file.
Does it comparing the date of the XML file and a LoadTime of the package or using some more sofisticated way -- e.g. by CRC check?

Maybe that such a function is a good candidate for a new extra function in API.

Thanks for hints.

17
Automation Interface, Add-Ins and Tools / t_xref & t_xrefsystem
« on: November 09, 2009, 07:28:46 pm »
Hello,

can anybody provide some information about these tables?
Especially  about their columns XrefID,client,supplier for t_xref
and XrefID,Supplier,link for t_xrefsystem.
I expect that XrefID is a primary key.
client and link referes to elements (t_object,t_diagram,...)
but I can't find out what the supplier refers to.

----
We want to join many projects into one, and since these project were created from the same basic project, we have a lot of elements with the same ea_guid that we don't want to collide.
We decided to rename ea_guid in all projects to assure that they will be unique in each project. but we have to rename all occurences consistently.
Exporting the whole project and importing with strip guid is not possible, since the XML file is very big (100MB and more) and EA crashed in import always.

thak you for any hints

18
Automation Interface, Add-Ins and Tools / JSscript vs JavaScript
« on: October 21, 2009, 10:09:33 pm »
Hi,
this line is valid in Scripter for JScript

var xmlDOM = new ActiveXObject( "MSXML2.DOMDocument.4.0" );

but it's not valid for JavaScript.
What I have to write to use any COM object using JavaScript?
Thanks for any hint.

19
Automation Interface, Add-Ins and Tools / Custom view memory leak?
« on: August 06, 2009, 07:44:03 pm »
I have created a custom view (C#). All is working well, but when I analyze the running EA using .NET memory profiler  I can see that instances of the UserControl component are still instanciated (as many times as the custom view was opened) even when the all customs views are already closed.
I'm not very advaced in .NET and C# issues, so do I something wrong or can this be a bug in EA?

Thanks for any hints

20
Method parameters ( or  atributes of class) has .position (.pos) atrribute.
We found out that have some "holes" in the sequences of this numbers and we want to repair it by automation script. But even we call Paramater.Update(), Method.Update(), Element.Update()  after fixing the number(s)  the new Position values are not stored to DB.

What we do wrong?
Thanks for any hints

21
Automation Interface, Add-Ins and Tools / How to access Plugin object?
« on: February 20, 2009, 05:22:41 pm »
Hi,

I want to be able to access the concrete instance of a plugin (COM object)  that is instantiated by my instance (instance created by external program) of EA.
Does the EA API  suppport this or how can I do it?

Thanks for any hints

22
Hello,
we use a Clearcase to version our models.
so we have some parts of model stored/versioned in XML files.

Since we share some of the model parts between more models (we import corresponding XML into more models) we try to solve the problem of correct synchronization of models.

It seems to me that a possible way how to handle it is to compare the times mentioned in the headline.
An my expectations are as follows:

*) package.LastLoadDate is the time of the latest checkout
*) package.LastSaveDate is the the time of the latest checkin
*) Datetime of the XML file is +- the same as the package.LastSaveDate

BUT the datetime of the XML file differs of LastSaveDate a lot (a couple of months for example)

So my question is what do this times mean and how to use them to find out model parts that have to be updated (Get Latest ...) ????

Thanks for any hints

23
Automation Interface, Add-Ins and Tools / Search addin
« on: December 23, 2008, 07:29:25 pm »
Hello,
could you introduce or even better provide some example of implementing some addin search?

The documentation is not clear for me enough.

I have the following method:

Code: [Select]
public static void findAllImported(EA.Repository rep,string searchString,ref string XML)
        {
            XML = rep.SQLQuery("select c.ea_guid AS CLASSGUID,o.name as 'TABLE', c.name as 'Attribute', c.Type as 'TYP' from t_object o, t_attribute c where o.stereotype='table' and c.stereotype='column' and c.object_id=o.object_id and LOWER(c.name) IN ('smlouva')");
        }

but this method should return something as stated in help.

And my addin is called 'EAPlugin.TC'
so i don't know how to define the search profile to run it

Code: [Select]
EAPlugin.TC.findAllImported ??

Thanks for any hints

P.S. I know that functionality of this concrete search is realizable by SQL search but it serves me only for testing purposes...

24
Automation Interface, Add-Ins and Tools / EA Lite & Plugins
« on: November 26, 2008, 12:50:18 am »
Hello,

how can I distinguish the version of EA (Lite x Full) in an addin?
I have not find any suitable function in the API.

Thanks for any hints

25
Hello,
we want to create some addin that with respect to some conditions will refuse to checkout from VC  some versioned parts of the model.

I have searched  broadcast events that EA provides to hook on, but I have not found  any suitable one.

Any sugestions how to add this functionality into EA?

Thank you for any hints


26
This is not a question, but an overview of setting VersionControl as we have discovered.
We have EA models in SQL database and use ClearCase to version it, we have  quite a lot streams as well as users working with EA.
We had a lot of problems, when users had set the VersionControl inproperly, because  checkouts from an old version of XML file damaged the whole EA database.
We tried to find out the way how to set the configuration for each user automatically. Here are our results, I hope it will help someone :

1)
"c:\Documents and Settings\LOGIN\Application Data\Sparx Systems\EA\paths.txt"

file containing mapping of prifile name to root directory

2)
[HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS]
"VCConfigs"= ...

users registry informing which profile has been mapped to an root directory by an user. Only if the profile is mentioned here, EA looks up to the file paths.txt for the mapping

3)
table  "t_genopt"  attribute "Option" in EA project database

contains list of profiles used by EA project ..this list influence the enumeration of profiles in VersionControl setting dialog in EA.

4)
table t_package attribute "PackageFlags" part "VCCFG= .. ;"

mapping to XML file for given package

5)
table t_package attribute "IsControlled"

flag (0|1) informing whether the package is VersionControlled


We have written an internal tool setting the proper configuration for each user, matching our concrete environment and thus eliminating damages of our models.

Any suggestions and other discoveries are welcome ;-)



27
Automation Interface, Add-Ins and Tools / Addins problems
« on: October 14, 2007, 07:33:29 am »
Hello,
I try to create some addin and I have met the following problems I couldn't overcome:

1)event EA_OnPostNewAttribute is not called for atributes (<<column>>s) of <<table>> class.

2)this event has input parameter Attribute.AttributeID,
but there is only Repository.GetAttributeByGuid method to lookup attributes.
But AttributeID is not the same as AttributeGUID.
How can I look up the attribute being created?

Thank you for any hint

Pages: 1 [2]