Bcc.GetAllEntities(bIDsOnly)

Bcc.GetAllEntities(bIDsOnly, {EntityFilters})

Description

This function will return the data on the all the visible entities in the document

Parameters


  • bIDsOnly - boolean value
    • true - will return a simple list of the entity ID's
    • false - returns a list of the complete entity information.
  • EntityFilters - table of filters for which entity types to return.  If this parameter is excluded all entities will be returned the same as using the "All" option
    • "All" - all entity types will be returned
    • "Point" - point entities will be returned
    • "Curve" - Lines, Arcs, and Spline geometry will be returned
    • "Text" - text entities will be returned
    • "Brep" - NURB surface geometry will be returned
    • "Mesh" - solid meshes will be returned
    • "Art" - BobART model will be returned
    • "Dimension" - all dimension types including notes will be returned
    • "UCS" - Existing UCSs will be returned (only the user created UCS's, as the default 3 will not be returned)
    • "PointPattern" - grid hole patterns, circular hole patterns, and point patterns will be returned
    • "ContourChain" - contour chain entities will be returned

Return


When true is passed as the input for bIDsOnly, the return will be a table:  


retTable[i] containing the entity ID


When false is passed as the input for bIDsOnly, the return will be a table with keys for each entity type:


       retTable[i].ID - the entity ID

       retTable[i].SubIDs - a list containing a solid models sub entity ID's (faces, edges)

       retTable[i].EntityData - a table containing 

       

Examples