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 - Geert Bellekens

Pages: 1 ... 7 8 [9] 10 11 ... 576
121
Automation Interface, Add-Ins and Tools / Re: Problem building Add-In
« on: October 31, 2018, 05:23:31 pm »
Paolo,

I don't know how the internals in VS work, but I've witnessed cases in the past where removing and add-in the reference to the interop dll made it work again.

I would focus on why you are not seeing "embed interop files" in the reference properties. That sound fishy to me.

Geert

122
Hi,

Seems like it is most likely due to the difference in database.
IIRC MySQL is case sensitive where MS Access is not. That might explain why the add-in can't find the scripts.

To be sure you should connect to the MySQL database directly

Geert

123
No you are not the only one.

I usually use an SQL fragment for things like that.

Geert

124
Hi Etaha,

I've actually never tested EA-Matic in a cloud environment before, but my expectation is that this is (or should be) completely transparent for an add-in.

Is this actually the same model you are accessing?
And when you connect using the cloud it doesn't work, and when connecting directly it does work?

Or is the local model a different format than the model access through the cloud?

EA-Matic uses an SQL Query to get the details of the scripts stored in the model, so a difference in database (or the way queries are treated) might make a difference here.

Geert

125
2 is just a symptom of 1

1(the second) No, you cannot. You'll have to create the relationship explicitly
2(the second) Yes I think so. IIRC there is an option somewhere that controls this (something like "support for composite objects")

Dragging with ALT key pressed might help as well to avoid nesting.

Geert

126
General Board / Re: Setting up Cross References from Element to Diagram
« on: October 31, 2018, 06:04:03 am »
I can confirm, I don't see the option either. (Never used it before though, so I wouldn't know if it existed in a previous version)

Geert

127
General Board / Re: Reading data from imported MDG
« on: October 31, 2018, 05:56:55 am »
If imported into a model I think it is stored in t_document. (but I could be wrong)

Geert

128
Automation Interface, Add-Ins and Tools / Re: Problem building Add-In
« on: October 30, 2018, 06:14:37 pm »
Weird, I'm using VS2017 as well, but I do see the option to Embed Interop types.

Have you tried removing the reference and then adding it again?

On my machine it references the Interop dll located in the Program Files directory for EA.
So each time I change the "active" version of my EA it points to a different file. I never had issues with that (except when I try to use an older version that doesn't support some of the used operations)

Geert

129
Automation Interface, Add-Ins and Tools / Re: Problem building Add-In
« on: October 30, 2018, 03:34:49 pm »
I think I've seen such a message from time to time.
Clean and rebuild should normally work. I think I sometimes even needed to restart VS before the error went away.

Also check the way the EA.Interop.dll is referenced.

I have
- Aliases=Global
- Copy Local = True
- Embed Interop Types = False
- Specific Version = False

Geert

130
General Board / Re: Schema Composer can't find embedded packages
« on: October 30, 2018, 05:51:43 am »
Can you be a bit more specific? I don't know what you mean by "Embedded packages" and what you are doing when you have this issue.

Geert

131
Thanks, for pointing me to these resources.  I also found this library that avoids Interop and writes to the XML files directly, which looks pretty promising as I do pretty much all my scripting from Visual Studio.   https://github.com/ClosedXML/ClosedXML

We did that with a word document generator a few years ago. I remember that avoiding the Office Interop resulted in a much faster generation of documents.
With Excel I haven't needed this yet as the Value2 works almost instantaneous.
Usually it takes a lot longer to get the information out of EA than it takes to get it into Excel.

Geert

132
Rich,

A major improvement is to use range.Value2.

How that works is that you create a 2 dimensional array with your data.
The select the range you need and set Value2 to it.

That works almost instantly, as opposed to adding field by field.

See https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Framework/Utils/ExcelFile.vbs for an utility class to deal with excel files

Geert

133
I know from the test settings from back when I developed the add-in that it needs a "/"

I'm not sure what is going wrong in your context. I would need to be able to debug it to find out.

Geert

What sort of data/information would be needed for debugging?

Robert
Robert, if you send me an email geert@bellekens.com we can try to work something out.

Geert

134
I know from the test settings from back when I developed the add-in that it needs a "/"

I'm not sure what is going wrong in your context. I would need to be able to debug it to find out.

Geert

135
You have to add a "/" to the default collection name

So "MAVICollection/"

That should do it.

Geert

Pages: 1 ... 7 8 [9] 10 11 ... 576