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

Pages: [1]
1
Hello,

I know the topic is rather old, but did you (or anyone else) find a solution?

Background: I now ran into a very similar problem. When automating EA 10 (build 10.0.1009) I query the CustomProperties collection of a SysML port to get its isConjugated value. I can find the right CustomProperty in the collection (so accessing its .Name is no problem), but when I access its .Value, I get a COM Exception 80020009 Element no longer available.

When trying to reproduce the problem with a very basic EAP file with one SysML block and one port, the problem seems to disappears. But still appears with the model I need to automate.

Thanks and regards,

Motlib

2
Hello,

I am working with EA 10, so I cannot say if this also applies for newer versions: The initial value of an attribute is something you define in the type of a property. My understanding is that this is the value that the attribute gets if nothing else is defined. So it is related to the type, not to the instance.

To set the value of an attribute in a property, you can right-click the property it in a diagram, select Advanced -> Set Property Values... and define the actual values of the attributes there.

HTH,

Motlib


Pages: [1]