Author Topic: Upper Bound of BlockTableRecord  (Read 1812 times)

0 Members and 1 Guest are viewing this topic.

cannorth

  • Guest
Upper Bound of BlockTableRecord
« on: February 07, 2014, 06:22:13 PM »
Hi,

  How can you program in VB.Net the upper bounds of the block table record?

Thanks,

cannorth

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Upper Bound of BlockTableRecord
« Reply #1 on: February 07, 2014, 06:38:15 PM »
Can you rephrase the question ?
I'm not sure what you actually want.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: Upper Bound of BlockTableRecord
« Reply #2 on: February 10, 2014, 07:45:06 AM »
Like Kerry I'm not sure what you really want but using words like "upper bounds" sounds like a VB Script guy wanting the count of ObjectIds from the BlockTableRecord.

In C#, if btr is a BlockTableRecord
Code - C#: [Select]
  1. var count = btr.Cast<ObjectId>.Count();
  2.  
Revit 2019, AMEP 2019 64bit Win 10

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Upper Bound of BlockTableRecord
« Reply #3 on: February 10, 2014, 04:57:18 PM »

One thing that I was concerned with was the term "the block table record".
This presumes that there is one  BlockTableRecord , when in fact there are many.

This may be just a language issue rather than a technical misunderstanding.

Quote from: arxmgd.chm::/Autodesk_AutoCAD_DatabaseServices_BlockTableRecord
Objects of the BlockTableRecord class are used as containers for entities within drawing file databases. BlockTableRecord objects (often referred to as BTRs) are owned by the database’s BlockTable object. The BTRs in turn own the entity objects they contain.

There are two special BTRs that are always present in every database. They are *MODEL_SPACE and *PAPER_SPACE. They are the Model and Paper Spaces for the database. Any entity that is created by AutoCAD while in Model Space is owned and contained by the *MODEL_SPACE BTR. Entities created while in Paper Space go into the *PAPER_SPACE BTR.

BTRs other than *MODEL_SPACE and *PAPER_SPACE were known in previous versions of AutoCAD as block definitions and are referenced by BlockReferences (which are often referred to as inserts). The BTR contains a collection of entities that can be referenced by multiple inserts to save space in the drawing, save time in drawing creation, and guarantee that all inserts will appear the same (except possibly in color and linetype).
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

owenwengerd

  • Bull Frog
  • Posts: 451
Re: Upper Bound of BlockTableRecord
« Reply #4 on: February 11, 2014, 10:08:26 AM »
I suspect that he wants the extents of a block table record.