Skip to content

Conversation

@wnstss
Copy link

@wnstss wnstss commented May 23, 2019

Hi, Everyone
I am new to Python-ifc and found it was quite easy to be understood.
I can use "Print ifcfile.getEntityById(id)" to get the p21id, name and attributes of an Entity as shown in the attached picture.
But how to could get each attribute with attribute name and the value? Could you give me some help?

Thanks in advance.

Best Regards,

wsnt
help0522

@wnstss
Copy link
Author

wnstss commented May 25, 2019

Hi, Everyone
I am new to Python-ifc and found it was quite easy to be understood.
I can use "Print ifcfile.getEntityById(id)" to get the p21id, name and attributes of an Entity as shown in the attached picture.
But how to could get each attribute with attribute name and the value? Could you give me some help?

Thanks in advance.

Best Regards,

wsnt
help0522

Using the following code, I solved my problem.
self.entById.get(id,None).items():

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants