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

Pages: 1 ... 4 5 [6] 7
76
Automation Interface, Add-Ins and Tools / Re: Deploy Add-Ins
« on: January 09, 2009, 06:25:55 pm »
/codebase

Creates a Codebase entry in the registry. The Codebase entry specifies the file path for an assembly that is not installed in the global assembly cache. You should not specify this option if you will subsequently install the assembly that you are registering into the global assembly cache.


As I understand it I has to be used whan the component is not installed in some global repository.
I don't understand the .NET deployment proces in detail .. what I have written is just what become to work in our environment .... so I cann't tell you where the problem is ... do you have the latest .NET framework? Or maybe some problem in the code ?  ..Sorry

77
Automation Interface, Add-Ins and Tools / Re: Deploy Add-Ins
« on: January 08, 2009, 05:44:26 pm »
I use the following command

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe  EAPlugins.dll /codebase /regfile:EAPluginsCOM.reg

that creates the EAPluginsCOM.reg file that I use to deploy it on any computer (we have the DLL in the same path on all computers)

78
an answer from Sparx (for anybody interested):


..... the LastSaveDate is not being updated when the package is sent to version control.

As far as I can tell, this problem is simply due to oversight on our part and it will be rectified as soon as possible.

We should be releasing EA version 7.5 (beta1), build 840, in the next few days.  I expect the fix for this problem will be included in build 841, which should follow shortly afterwards.

79
an example for illustration:

XML: 31.10.2008 13:01 & Model Load: 17.12.2008 11:38 & Model Save: 17.12.2008 11:37

whis is strange for me because

Load > Save
XML < Save  (a lot)


80
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

81
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: January 14, 2009, 10:52:17 pm »
HEUREKA...it works

I did a correction to

Code: [Select]
Boolean findAllImported(EA.Repository rep, String searchString, out String XML);
from

Code: [Select]
bool findAllImported(EA.Repository rep, string searchString, out string XML);
and some other changes ;-).  I can't say what was the reason. but it WORKS.
The relevant name is realy the name of the plugin under the HKEY_CURRENT_USER\Software\Sparx Systems\EAAddIns not the name of the reference component.

thanks a lot for your support!!

82
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: January 14, 2009, 10:41:00 pm »
when defining new addin and specifying "Addin Name and method", the addin name is the name of the component or the name of an addin under HKEY_CURRENT_USER\Software\Sparx Systems\EAAddIns key ??

The name of the component is quite difficult to change for me, but the second solution is acceptable. (I have both names the same now).

Actually i have tested to rename the  addin name under EA reg keys and it still doesn't work ... may be I have problem somewhere else, I will try to play with it..

Thanks for quick reactions ;-)

83
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: January 14, 2009, 09:24:45 pm »
yes I have actually tested both variants but any didn't worked.

I'm still not sure with  "EAPlugin.TC.findAllImported"  refence string.
I don't want to rename the name of the plugin.

84
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: January 14, 2009, 08:03:23 pm »
i have rewrited the method :

Code: [Select]
public static bool findAllImported(EA.Repository rep,string searchString,ref string XML)
        {
            
            XML =@"<ReportViewData>  
       <Fields>
               <Field name=""neco""/>
               <Field name=""neco2""/>
               <Field name=""neco3""/>
       </Fields>
       <Rows>
               <Row>
                       <Field name=""neco"" value=""1""/>
                       <Field name=""neco2"" value=""2""/>
                       <Field name=""neco3"" value=""3""/>                      
               </Row>
               <Row>
                       <Field name=""neco"" value=""a""/>
                       <Field name=""neco2"" value=""b""/>
                       <Field name=""neco3"" value=""c""/>                      
               </Row>
       </Rows>
</ReportViewData>";
            return true;
        }

and defined new search as Add-In Search  referencing:
Code: [Select]
EAPlugin.TC.findAllImported

but it doesn't return nothing...still not working

What  do I wrong? Thanks for any hints

85
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: January 07, 2009, 06:47:33 pm »
yes, we use MSSQL.
The search SQL is OK we use it as SQL search. But now I want to create some addin search and I'm not sure how to do it so I'm looking for some example


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

87
Automation Interface, Add-Ins and Tools / Re: EA Lite & Plugins
« on: November 27, 2008, 11:24:09 pm »
Thanks! That's I was looking for.
You right, it returns -1 for Lite version.

(This property is not defined in API help)

88
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

89
xkrystof is right, there is problem with EA.
If you already HAVE some element with the atached file  containing apostrofe in it's name. (This element was created "by hand"  using EA.)
You can't change the file name by program through API, since EA creates SQL command with WHERE part like >>>Object_ID=6606 AND Filename='OLD file name with 'apostrofe.doc' <<<
So you are not able to change the already existing file name.

90
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


Pages: 1 ... 4 5 [6] 7