'NoneType' object has no attribute 'id'
'NoneType' object has no attribute 'id'
Is there any way to know exactly the element error? i know it should be a solid beacuse irs a brick element but cant find it
Hi im trying to replicate the pile soil interaction webinar. Its my first time using stko so im havng lots of isues. Can anybody explain me step by step since the design process? Id like to do the same but chnging the soil with diferents altitudes. Tanks!
Re: 'NoneType' object has no attribute 'id'
also attached the file im working with
Hi im trying to replicate the pile soil interaction webinar. Its my first time using stko so im havng lots of isues. Can anybody explain me step by step since the design process? Id like to do the same but chnging the soil with diferents altitudes. Tanks!
Re: 'NoneType' object has no attribute 'id'
Use this script:
It will print the sub-solids of all geometries that have an element property but no physical property (that is what is causing the error)
Code: Select all
from PyMpc import *
App.clearTerminal()
doc = App.caeDocument()
for _, geom in doc.geometries.items():
ep_asn = geom.elementPropertyAssignment
pp_asn = geom.physicalPropertyAssignment
# solids
for solid_id, ep_item in enumerate(ep_asn.onSolids):
if ep_item:
# this solid has a property
# let's see if it also has a property
if not pp_asn.onSolids[solid_id]:
print('Geom {} - Solid {} Has Element "{}" but No Physical Property'.format(
geom.id, solid_id, ep_item.name))
Re: 'NoneType' object has no attribute 'id'
Thanks so much!!
Hi im trying to replicate the pile soil interaction webinar. Its my first time using stko so im havng lots of isues. Can anybody explain me step by step since the design process? Id like to do the same but chnging the soil with diferents altitudes. Tanks!
Re: 'NoneType' object has no attribute 'id'
The analysis run but i'v got ow this message from the console
Hi im trying to replicate the pile soil interaction webinar. Its my first time using stko so im havng lots of isues. Can anybody explain me step by step since the design process? Id like to do the same but chnging the soil with diferents altitudes. Tanks!
Re: 'NoneType' object has no attribute 'id'
share your update file
Re: 'NoneType' object has no attribute 'id'
Hi im trying to replicate the pile soil interaction webinar. Its my first time using stko so im havng lots of isues. Can anybody explain me step by step since the design process? Id like to do the same but chnging the soil with diferents altitudes. Tanks!