About Space Usage Functions

You can query a space and an object. You can create an association between the space and object, and find the spaces associated with the objects and vice versa.

This page discusses:

3D Index Search

Use the QuerySpaces function to find the spaces containing the required product (for example, pipe). In this case, the input is the geometry and the output is the spaces containing this geometry (fully or partially).

Use the QueryObjects function to find all the products available in a space. In this case, the input is the space and the output is the geometries available in the space (fully or partially).

Associate a Space and an Object

You can link:

  • A space with several logical or physical part instances
  • A space with several logical or physical part references
  • A logical or physical part instance with several spaces
  • A logical or physical part reference with several spaces.

Use the CreateDeclaredSpaceAssignment function to associate a space reference and a reference.

Use the CreateDeclaredSpaceAssignment function to associate a space reference and a instance.

Use the RemoveDeclaredSpaceAssignment function to remove the association between a space reference and a reference.

Use the RemoveDeclaredSpaceAssignment function to remove the association between a space reference and a instance.

Retrieve the Space and Object Using an Existing Association

You can retrieve:

  • Spaces from physical or logical part reference
  • Spaces from physical or logical part instance
  • Physical or logical part references from a space
  • Physical or logical part instances from a space.

Use the SPP_SpaceRef.GetAssignedObjects() function to retrieve the logical or physical objects (references and instances) assigned to a space.

Use the GetAssigningSpaces function to retrieve the spaces assigned to a logical or physical reference.

Use the GetAssigningSpaces function to retrieve the spaces assigned to a logical or physical instance.

Use the IsContaining function to check whether a product or feature or co-ordinate intersects a space reference or not.