universe SDK - obtaining a single object

Dear All

Here is some code snippet

Here is some snippet from code

Designer.Classes classcoll;
Designer.Class cl;
Designer.object ob;

cl = classcoll.get_FindClass(“ABC”);

Now to navigate through the class the only way i am able to do it is

foreach (Designer.Object ob1 in cl.Objects)

However- i have some huge classes , say 100 objects and this looping takes a hit on performance.

Is there anyway based on object name to just pull in one single object?

Any hints/suggestions much appreciated.

Regards


ramaks (BOB member since 2009-03-31)

I’m not really familiar with the programming language you are using, but this should work …

ob = cl.Objects("Object Name")

Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

Thanks Dwayne.

A similar call in C# helped.


ramaks (BOB member since 2009-03-31)