Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Define zaxis of coordinate system with python

solero5

Mechanical
May 21, 2025
1
Hi,
I'am trying to create a coordinate system in abaqus through a python script. It works as intended but to comply with reference dokument I want to have the Z axis between node1 and node2 and xaxis in the plane from node3. From the code below I get xaxis between node1 and node2 and yaxis in the plane. Do anyone know a way to get this as I want?

csys_node1 = self.viewedOdbInstance.getNodeFromLabel(label=node1)
csys_node2 = self.viewedOdbInstance.getNodeFromLabel(label=node2)
csys_node3_old = self.viewedOdbInstance.getNodeFromLabel(label=node3)
self.scratchOdb.rootAssembly.DatumCsysByThreeNodes(name=self.name + '_Cys',coordSysType=CARTESIAN, origin=csys_node1, point1=csys_node2,point2=csys_node3_old)
 
Replies continue below

Recommended for you

I guess you should use different/additional points. When defining a coordinate system by 3 nodes, point1 is a point on the X axis while point2 is a point in the XY plane. So your csys will have the X axis passing through node2 and XY plane including node3.
 

Part and Inventory Search

Sponsor