Hi,
I have a question which might have been already answered elsewhere but I couldn't find it. Basically I am trying to automate (using python) a load assignment procedure to a collection of rigid bodies (again which are multiple rigid bodies having same reference points and are automatically grouped with a filter criteria after parametric intersection). As a result, after parametric intersection, each rigid body is broken to multiple rigid bodies. I am grouping them based on the filter criteria after parametric intersection (during Staged Construction).
However, when I am trying to assign Fx or Fy or Fz etc. it is not recognising the python commend as any attributes. My code is as below:
LoadedRigidBody_Group_List = []for EachRigidBody in g_i.RigidBodies: if (EachRigidBody.Xref.value == 0 and EachRigidBody.Yref.value == 0 and EachRigidBody.Zref.value == 0): LoadedRigidBody_Group_List.append(EachRigidBody)
LoadedRigidBody_Group = g_i.group(LoadedRigidBody_Group_List)
.
.LoadedRigidBody_Group.RigidBodies.Fx.set(Loadphase, Fx_Value) #LoadPhase is the Phase Object
The attribute Rigidbodies in "LoadedRigidBody_Group.RigidBodies.Fx.set" must be incorrect but do not know/want to know the correct way.
Thanks in anticipation
Regards
Sangeet