How to list all entitiies on a layout page

Is there a command in the api, that lists all entities on the current layout page? I only found the GetEntity command, which allows me select all entities. But it would be easier, just to have a command that selects all entities automatically.

Comments

  • A layout object has a block property. That property is the block definition that contains all the paper space objects belonging to that layout. So you can just iterate over all the items in the block definition.

  • To see a list of all entities in the current layout, do the following:
    1. Press Ctrl+A to select all entities
    2. In the Properties panel, click the Quick Select button . The list button shows the number of entities.
    3. Click the list button to see the numbers per entity type