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 - Tahir Nazir

Pages: [1]
1
Hi,
  I am building an add-in and that model of EA is under Version Control. I have created link for Subversioning.

Can someone guide me that how to access this subversion url path of specified diagram using C#.
I have read the documentation but there is no Function API to access the Version Control URL of model.

Or in which DBMS table is it stored?

thanks a lot.

2
Quote
Quote
thnx a lot. it worked.......
What worked?  Which of the possible solutions worked?

Paolo

EA.exe.Config worked....

3
thnx a lot. it worked.......

4
I am building an Enterprise Architect add-in using C#. I have to interact with SVN Repository. I am using VS2010 and SharpSVN as library to interact with SVN Repository. my Add-in work fine when I change it to .NET 3.5. But now I have to interrogate with some another add-in and that other add-in is only compatible with 4.0.

but when I change my add-in code to .NET 4.0 then it give famous error

"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime and need some configuration etc"

I have read here different topics about that problem and suggestion is to add app.config file. with the tags

<Configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"   sku=".NETFramework,Version=v4.0"/>
   </startup>
   <runtime>
      <NetFx40_LegacySecurityPolicy enabled="true"/>
     </runtime>
 </Configuration>

and same like tag this from different posts. I have tried everyone but still the problem remains. I have checked that VS2010 automatically generates the config file with the filename in Debug folder automatically.

Can anyone suggest me the solution? for example my add-in name is MyAddIn so VS2010 generates MyAddIn.dll and MyAddIn.dll.config with the above mentioned tags.

But problem remain there. I am using windows 7 64 Bit.

Any Help will be highly appreciated.

5
Thanks for your kind reply. but as you are saying the ZIP file should be base64 encoded. But why then the file str.dat which I take from EA repository and ZIP that and put inside the database as new tuple then work that fine.

But when I take through SVN repository an xml file and rename it to str.dat and zip and insert back to database as new tuple then it gives some XMI 1.1 error.

I am interested in the structure of that svn.dat file that which kind of file is that. That is also might not be mentioned in your book.

if it is then I can buy that book also. Or if you have any suggestion then I am thankful to you.

Quote
Quote
Various columns contain binary data which are additionaly zipped. If you want to access the contents you have to follow these steps:
• Decode the column using base64.
• Unzip the resulting binary blob.
• Extract the file str.dat from the unzipped data.
This file finally contains the data.
An exception is Image which yields the raw image data right after decoding it via base64.

From my book Inside EA.

q.

6
thanks a lot for your kind reply. As you have mentioned that base64 encoded should I use.  What do you mean that notepad open the zip automatically?

I get one from my svn repository an xml file. Can you guide me that how should I encode that file which I have insert in the DB. I have problem with the encoding of that .xml file. Because when I change its name then its encoding get changed.

I will be highly thankful , if you guide me in this regard.

Quote
The zip is base64 encoded. Notepad opens it automatically. Try to use a different editor with the ability to see the hex code and try in your application an encoding with the wright code page.

7
I have tried with creating simple model and there I am creating this problem.

Quote
I mean that you should create a local EAP repository with just a few sample classes inside. Then create a baseline and see what you can figure out. It's probably easier than working with a large model. Sorry, but I can't help here very much.

q.

8
What do you mean by small model?
Or can you guide me that how to build baseline using an xml file which i have got from svn checkout with the help of C#. :o

9
Hello everyone,
        I am currently developing an add-in of EA. I am managing baselines through SVN.

For example when I have managed a SVN Repository in EA then with every checkout SVN create an .XMI file which is actually a baseline.

So when I have read the material about .eap file baseline, I get to know that .eap save baseline data as str.dat file and in zip format.

Now I have tried to get data from this baseline and it give us a zip file which have str.dat file which contain the information of baseline. This file is in xml format.
which is like this EA-->baseline-->zip-->str.dat
I get in this sequence data from .eap repository


Now I have tried the following, I have get xml file from svn repository using export. Now I have changed its name to str.dat
I have zipped it and put it back to t_document table as ole object.
it mean I have reverse the process
e.g. Model.xml --> zip --> insert into baseline through jet connection

It has created the baseline in .eap repositroy and now when I tried to compare it , it say something XMI 1.1 comparision problem.
I have checked with notepad++ and when I have changed the filename to str.dat then it change its encoding some ANSI format.


When I have took zipped file from EA repositry which is a baseline and stored also in t_document table. This baseline I had created though mangage baseline--> new baseline.

I have unzip the file which I have got from t_document table named str.dat. When I take this file and zip it again and insert back into database as new row in t_document table then it work fine.

Even I have copied in this file my content from SVN model.xml file, it also work fine and dont change the encoding. I have done it through notepad++.

So can anyone guide me that when I get a file from svn repository then how to use the format of that file so that it work in t_document table perfectly as baseline.

any help will be highly appreciated. there is no documentation that what encoding of this file type which is used by EA to store baseline.

thanks a lot.

 :-[

10
Automation Interface, Add-Ins and Tools / baseline creation using xml file
« on: September 27, 2012, 10:23:46 pm »
Hi,
Can anyone guide me that how to build baseline from an xml file using C# which i have got from svn checkout.

any help will be highly appreciated.

Pages: [1]