Kratos Multiphysics Forums

Kratos programming issues => Python => Topic started by: Peter on May 29, 2017, 12:00:34 PM

Title: Get Property Id of an element
Post by: Peter on May 29, 2017, 12:00:34 PM
Hallo,

it is a simple question. Is it possible to get the property Id of an element in Python similar to the element Id (element.Id)??

Thanks
Peter
Title: Re: Get Property Id of an element
Post by: Miguel Angel Celigueta on May 29, 2017, 03:51:40 PM
Hi Peter,
Yes, it is possible, simply write:

element.Properties.Id

element.Properties returns the properties, then you just have to get the Id of that.
I hope this helps,

Miguel Angel
Title: Re: Get Property Id of an element
Post by: Peter on May 29, 2017, 05:31:33 PM
Now I feel a bit embarrassed because it's so easy. Thanks a lot.