Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.93 KB

File metadata and controls

24 lines (19 loc) · 1.93 KB

Error: Not an Entity {#error-not-an-entity}

A function cannot be executed as the item put into the function is not an entity.

To be considered an entity, the item must not be a list and must fall under one of the categories below:


###### Example 1 | Error Message | ![Not an Entity Error Message 1.png](/assets/chapter_4_assets/Not an Entity Error Message 1.png)
| | --- | --- | | Bug ✘ | Source of error: [coordinates](/chapter_2_geo-info_data_model/Position.md) are not entities.
![Not an Entity Bug Example 1.png](/assets/chapter_4_assets/Not an Entity Bug Example 1.png)
| | Correction ✔ | Solution: make the coordinate into position entities.
![Not an Entity Correction 1.png](/assets/chapter_4_assets/Not an Entity Correction 1.png)
|
###### Example 2 | Error Message | ![Not an Entity Error Message 2.png](/assets/chapter_4_assets/Not an Entity Error Message 2.png)
| | --- | --- | | Bug example ✘ | Source of error: `[cub_ex, cyl_ex]` contains 2 lists within a list, as both `cub_ex` and `cyl_ex` are [lists](/chapter_3_procedures/List.md) of polygons created by make.Extrude. The make.Collection function only accepts a single list of the [depth](/chapter_3_procedures/List.md) of 1.
![Not an Entity Bug Example 2.png](/assets/chapter_4_assets/Not an Entity Bug Example 2.png)
| | Correction ✔ | Solution: Flatten the list `[cub_ex, cyl_ex]` to the depth of 1
![Not an Entity Correction 2.png](/assets/chapter_4_assets/Not an Entity Correction 2.png)
|