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:
- Position
- Objects (point, polyline, polygon)
- Topologies (vertex, edge, wire, face)
- Collection
Example 1
| Error Message |
|
|---|---|
| Bug ✘ | Source of error: coordinates are not entities.
|
| Correction ✔ | Solution: make the coordinate into position entities.
|
Example 2
| Error Message |
|
|---|---|
| Bug example ✘ | Source of error: [cub_ex, cyl_ex] contains 2 lists within a list, as both cub_ex and cyl_ex are lists of polygons created by make.Extrude. The make.Collection function only accepts a single list of the depth of 1.
|
| Correction ✔ | Solution: Flatten the list [cub_ex, cyl_ex] to the depth of 1
|