Pseudo Attributes
- Last UpdatedNov 30, 2023
- 4 minute read
Point in Space (SPMSFP)
Searches a space arrangement for a space where a position qualifier exists.

|
Called on: |
Space layout (SPMSA). |
|
Input: |
Position qualifier (Point). |
|
Returns: |
Name of space. |
Space Bounding Box (SPMBB)
Returns the bounding box of selected space in the form of an array of 6 real numbers which represent the minimum and maximum bounds.

|
Called on: |
Space (SPMSPC). |
|
Input: |
None. |
|
Returns: |
The space bounding box is returned in format: Xmin Ymin Zmin Xmax Ymax Zmax. Unit is mm. |
Total Volume (SPMMVO)
Returns the total volume of the selected space.

|
Called on: |
Space (SPMSPC). |
|
Input: |
None. |
|
Returns: |
Moulded volume of space is returned. Unit is mm3. |
Center of Volume (SPMCOV)
Returns the center of volume for the selected space.

|
Called on: |
Space (SPMSPC). |
|
Input: |
None. |
|
Returns: |
The center of volume in the format: X <value> Y <value> Z <value>. Unit is mm. |
Net Volume (SPMNVO)
Returns the net volume of the selected space compartment.

|
Called on: |
Compartment (SPMCSA) Space (SPMSPC) If model type is compartment. |
|
Input: |
None. |
|
Returns: |
Net volume of space is returned. Net volume is calculated as mould volume - structural allowance (SPMALL). Unit is mm3. |
Full Load Weight (SPMFLW)
Returns the full load weight of the selected compartment.

|
Called on: |
Compartment (SPMCSA) Space (SPMSPC) If model type is compartment. |
|
Input: |
None. |
|
Returns: |
Full load weight of space is returned. Full load weight is calculated as net volume (SPMNVO) * permeability (SPMPER) * density (SPMDE). |
Floor Area (SPMCFA)
Returns the floor area of the space as volume.

|
Called on: |
Space (SPMSPC). |
|
Input: |
None. |
|
Returns: |
Floor area is returned. It is calculated as volume (SPMMVO)/ (ZMAX - ZMIN) fetched from SPMBB. Unit is mm2. |
Area of Face (SPMARA)
Returns the area of the selected face.

|
Called on: |
Space (SPMSPC). |
|
Input: |
None. |
|
Returns: |
The area of the face is returned. Unit is mm2. |
Adjoining Space (SPMAS)
The adjoining space pseudo attribute enables the user to find the SPMSPC element that is adjacent to the currently selected space in the hierarchy. Using a position qualifier which resides in the selected space as input, the attribute snaps a point to the closest face of the given point, and moves its location outside using the normal. Then, using the existing SPMSFT attribute, it finds the space in which the new point resides.

|
Called on: |
Space (SPMSPC). |
|
Input: |
Position Qualifier (Point). |
|
Returns: |
DBRef of adjoining space. |
Closest Face (SPMCF)
The closest face attribute works in a similar fashion to SPMAS in that it is called on a space and given a position qualifier. It works in a similar fashion to SPMAS, as if the attribute is able to successfully snap a point on the closest face to the given point, the DBRef of that face is returned.

|
Called on: |
Space (SPMSPC). |
|
Input: |
Position qualifier (Point). |
|
Returns: |
DBRef of closest face to the point. |
Inherit Attribute Values in a Hierarchy (INHSRC)
When creating a hierarchy of space arrangements, a reference to the space selected as envelope for the new space arrangement is registered using the attribute fhierarchy. This attribute is used by the inherit pseudo-attribute INHSRC which returns the element in a hierarchy where a specified attribute is set. Start point for the search is the current element (CE).

|
Called on: |
Space elements (SPMCSA, SPMLSA, SPMPAS, SPMZSA, SPMGSA) |
|
Input: |
Attribute name. |
|
Returns: |
DBRef of element in hierarchy where given attribute is set. |