0
$\begingroup$

enter image description hereI tried to use IsDecomposedBy and Decomposes code in Python Console in Blender bim but it shows this error:

>> project.IsDecomposedBy

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
AttributeError: 'list' object has no attribute 'IsDecomposedBy'


>> project.Decomposes

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
AttributeError: 'list' object has no attribute 'Decomposes'
$\endgroup$
2
  • $\begingroup$ Please add the entire traceback to your question, along with a cut'n'paste of the Python code that the problem is in. But as far as I know, 'IsDecomposedBy' is not a valid attribute in Blender. $\endgroup$ Jan 26, 2022 at 20:13
  • $\begingroup$ I had added an image of the code $\endgroup$
    – Batool
    Jan 26, 2022 at 21:17

1 Answer 1

0
$\begingroup$

The variable project is a list containing one element. You can access the IfcProject with project[0], which will have the attributes IsDecomposedBy and Decomposes.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .