Author Topic: New Item in dictionary  (Read 6003 times)

0 Members and 1 Guest are viewing this topic.

andrew_nao

  • Guest
Re: New Item in dictionary
« Reply #15 on: July 29, 2013, 09:11:39 AM »
is there a way to count how many xrecords are in a document?

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: New Item in dictionary
« Reply #16 on: July 29, 2013, 09:49:01 AM »
is there a way to count how many xrecords are in a document?
Probably, but it's going to be: Go through each dictionary (including all attached to the namedobjdict and each entity in the entire database), then use dictnext to find each XRecord and inside each sub-dictionary (or any other such container entity). So it can be an extremely inefficient idea.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.