Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [Connect VBA, AddIns] Problem with GetElementByID64

$
0
0

Hi dominic,

it seems you posts are a bit off-topic (no GC or C++ API are discussed). In my opinion the main topic of this discussion is that VBA method works differently in V8i and CONNECT Edition.

[quote user="dominic SEAH"]but I still a lot of people struggling to access nested elements, whether they are using VBA, GC or C#. [/quote]

Please share evidence or examples of this statement. I am not good enough in using Generative Components, but VBA (and Interop based NET API) and also new NET CE API provides tools to access nested structures, so I am not sure what issues do you mean.

Maybe the problem is in people programming skills, because to access nested structures typically leads to recursive algorithms. And despite of the "recursion is evil", it's also true that to understand and be able to implement recursion correctly is one from developer's mandatory knowledge (and often it's not simple quick task).

[quote user="dominic SEAH"]What is the equivalent of CellElement.GetSubElements in the new Connect SDK ? [/quote]

As Jon wrote, the same method is still there. But preferred way is to access elements using handlers and query classes. I have not tried it yet, but CellQuery class and its GetChildren() method provides required functionality.

With regards,

  Jan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>