1
Automation Interface, Add-Ins and Tools / Re: Set CustomProperty (in AI) for Connector Fails
« on: September 14, 2016, 06:52:17 pm »
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
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