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] 2 3 ... 525
1
Arnout,

Simply add the title above the custom tag:
Code: [Select]
Diagrams
custom >
{Name}
< custom

If your query doesn't return anything the title won't show up either.

Geert

2
General Board / Re: XMI import problem
« on: February 23, 2018, 03:33:13 pm »
BTW, the original model is on a SQL server, what I'm looking for is to have a "portable version" of it, this is why I need an EAP file.
In that case you are better off using model transfer.
Much faster and less error prone then xmi import/export.

Geert

3
Next point.

The problem is in case there is File Based Keystore.

When I use Keystore Server (ssks://...), it works fine.

Ah, that explains a lot. I've never tried it with a file based keystore.

Geert

4
Did you prefix your license keys with your shared addin name?
Otherwise EA will not know who these licenses belong to, and it will not call your add-in to validate the license.

Geert

5
I once got it working for EA-Matic (which is now free).

This is the code I had back then:

Code: [Select]
/// <summary>
/// When a user directly enters a license key that doesn't match a Sparx Systems key into the License Management dialog EA_AddInLicenseValidate is broadcast to all Enterprise Architect Add-Ins,
/// providing them with a chance to use the Add-In key to determine the level of functionality to provide.
/// When a key is retrieved from the Sparx Systems Keystore only the target Add-In will be called with the key.
/// For the Add-In to validate itself against this key, the Add-In's EA_AddinLicenseValidate handler should return true to confirm that the license has been validated.
/// As the EA_AddinLicenseValidate event is broadcast to all Add-Ins, one license can validate many Add-Ins.
/// If an Add-In elects to handle a license key by returning true to EA_AddinLicenseValidate, it is called upon to provide a description of the license key through the
/// EA_AddinLicenseGetDescription event.
/// If more than one Add-In elects to handle a license key, the first Add-In that returns true to EA_AddinLicenseValidate is queried for the license key description.
/// </summary>
        /// <param name="Repository">An EA.Repository object representing the currently open Enterprise Architect model.
        /// Poll its members to retrieve model data and user interface status information.</param>
/// <param name="AddinKey">The Add-in license key that has been entered in the License Management dialog.</param>
/// <returns>For the Add-in to validate against this key it should return true to indicate that the key is valid and has been handled.</returns>
public override bool EA_AddInLicenseValidate(EA.Repository Repository, string AddinKey)
{
License eaLicense = new License(AddinKey, publicKey);
if (eaLicense.isValid)
{
//the license is valid so replace the evaluation license with this one
this.license = eaLicense;
}
//debug
EAAddinFramework.Utilities.Logger.log("license.Isvalid = "+eaLicense.isValid.ToString()+" for license key: " + AddinKey);
return license.isValid;
}

/// <summary>
/// Before the Enterprise Architect License Management dialog is displayed, EA_AddInLicenseGetDescription is sent once for each Add-In key to the first Add-In that elected to handle that key.
/// The value returned by EA_AddinLicenseGetDescription is used as the key's plain text description.
/// </summary>
        /// <param name="Repository">An EA.Repository object representing the currently open Enterprise Architect model.
        /// Poll its members to retrieve model data and user interface status information.</param>
/// <param name="AddinKey">The Add-In license key that Enterprise Architect requires a description for.</param>
/// <returns>A String containing a plain text description of the provided AddinKey.</returns>
public override string EA_AddinLicenseGetDescription(EA.Repository Repository, string AddinKey)
{
string licensedescription = string.Empty;
License license = new License(AddinKey, publicKey);
if (license.isValid)
{
licensedescription = "License for EA-Matic issued to " + license.client;
}
return licensedescription;
}
  /// <summary>
/// As an add-in writer you can distribute keys to your add-in via the Enterprise Architect Keystore providing your
/// keys are generated using a prefix that allows Enterprise Architect to identify the add-in to which they belong.
/// EA_GetSharedAddinName is called by Enterprise Architect to determine what prefix an add-in is using.
/// If a matching key is found in the keystore the License Management dialog will display the name returned
/// by EA_AddinLicenseGetDescription to your users.
/// Finally, when the user selects a key, that key will be passed to your add-in to validate
/// by calling EA_AddinLicenseValidate.
/// </summary>
        /// <param name="Repository">An EA.Repository object representing the currently open Enterprise Architect model.
        /// Poll its members to retrieve model data and user interface status information.</param>
/// <returns>A String containing a product name code for the provided Add-In. This will be shown in plain text at the start of any keys added to the keystore. We recommend contacting Sparx Systems directly with proposed values to ensure you don't clash with any other add-ins.
/// eg. The following keys would all be interpreted as belonging to an add-in returning "MYADDIN" from this function:
/// · MYADDIN-Test
/// · MYADDIN-{7AC4D426-9083-4fa2-93B7-25E2B7FB8DC5}
/// · MYADDIN-7AC4D426-9083-4fa2-93B7
/// · MYADDIN-25E2B7FB8DC5
/// · MYADDIN-2hDfHKA5jf0GAjn92UvqAnxwC13dxQGJtH7zLHJ9Ym8=</returns>
public override string EA_GetSharedAddinName(EA.Repository Repository)
{
return "EAMatic";
}

Geert

6
Two choices basically

- Try EAForms, an add-in specifically aimed at this
- Write your own add-in (which is what I would do)

Geert

ofc you would write your own add-in, because you're really good at it  ;)

Thanks ;) I guess practice makes perfect  :)

Geert

7
Two choices basically

- Try EAForms, an add-in specifically aimed at this
- Write your own add-in (which is what I would do)

Geert

8
General Board / Re: Traceability of Instances
« on: February 21, 2018, 12:27:22 am »
Ronald,

Check the options in the traceability view. One of them allows instance/classifier navigation.

Geert

9
Bugs and Issues / Re: Legend and inherited tagged values
« on: February 21, 2018, 12:26:18 am »
No, it doesn't work like that.
The same issue with instances.

You can send in a feature request though

Geert

10
try giving your result a name

e.g.
Select Count(*) as totalCount from ...

The error you are seeing is a problem related to XML, not a problem with the SQL

(but you should still leave out the single quotes when dealing with integers even though this syntax error seems to be ignored by the database you are using)

Geert

12
General Board / Re: Status colors not displayed in Archimate diagrams
« on: February 20, 2018, 07:02:37 pm »
There is a difference between the standard status coloring (shadow) and the diagram legends.

In fact the only workaround I would know is to edit the shapescripts of the Archimate MDG, which is a bit of a hack. (but there are people out there doing exactly that)

Geert

13
You're probably looking for EAElement.LoadLinkedDocument (string Filename)

q.

No, that's not it. That will only load the contents into the linked document of the element, not have it as external document.

I'm not aware of any API function to do so, but I never really had to look for it either.

Geert

14
General Board / Re: Help w Microsoft SQL Server
« on: February 20, 2018, 02:05:12 am »
Must be something wrong in the connection string.
Try setting it up again, and check the "allow saving password" checkbox if you are using an SQL server user to connect (as opposed to using Windows Authentication)

Geert

15
General Board / Re: Help w Microsoft SQL Server
« on: February 19, 2018, 11:32:44 pm »
Did the schema SQL execute properly?
If in doubt execute something like
select * from t_object
If that doesn't return an error about a missing table you should be fine.
(there will not be any results, but that is fine, the table is empty but exists)

Next step is to transfer an existing .eap model to the sql server model using Model transfer.

Geert

Pages: [1] 2 3 ... 525