Author Topic: ODBX or ReadDwg?  (Read 5838 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6150
Re: ODBX or ReadDwg?
« Reply #15 on: March 12, 2013, 10:49:06 AM »
I would think its calling GetObject() that is time consuming.

Unless your operating at the DBObject level every time you use GetObject() you have to make a cast.
Using the ObjectClass property just avoids calls to GetObject().

As in last example you posted I would do a hard cast because I would want an error thrown if the ObjectClass implementation was messed up and returning incorrect values.

BillZndl

  • Guest
Re: ODBX or ReadDwg?
« Reply #16 on: March 13, 2013, 06:47:06 AM »
I would think its calling GetObject() that is time consuming.

That's what I thought.

Quote
As in last example you posted I would do a hard cast because I would want an error thrown if the ObjectClass implementation was messed up and returning incorrect values.

Okay, good, thanks!