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

Pages: [1]
1
Hi,

I'm writing an addin for EA and wondered if anyone could advise where and how I could store settings for the addin within model. User settings I can put away in the registry but I need to find a place I can store the settings that relate to the open project, preferebly in a place where the can not be browsed by the user in the project view.

Any feedback appreciated.  

2
Hi,

I would like to programmatically move an Element of type "Requirement" from one package to another. I have tried the following approach:

element.ParentID = destPackage.PackageID
element.Update

This does not return an error (ie Update result is true) but neither is the read/write ParentID property updated to the new packageID

Anyone point me in the right direction.

Thanks in advance

PS I am using EA build 804

3
I have just migrated to EA 4.0 and find that some VB that I wrote to query EA for model data now no longer works.

Quite simply I would like to get the EAElement for the 'Static View' package. I used the following code:

Set p = EAR.Models.GetByName("Views")
Set e = p.elements.GetByName(“Static View”)

As I said this used to work but I now get the error:

DAO.Database [3075] Syntax error (missing operator) in query expression 'Name='Static View' AND Object_ID in ()'

I had reported this as a bug - but I think it must have fallen on the low priority list or it may be that this was not a bug but that things are done differently in EA 4.0.

I am posting this in case it is the latter.

(I am working with the assumption that if this was a bug then EA 4.0 would have stopped alot of VBA integrated stuff out there and this would have been seen as slightly higher priority.)

Any help greatly appreciated.

Khalid


Pages: [1]