DrBwts
Mechanical
- Nov 4, 2012
- 297
I am trying to script an assembly.
So far I can import the separate parts (each of which has its own reference point) into the assembly & translate them to a specific point.
In CAE you can select a point on the instance & translate that point to a given coordinate but I have found no way of doing this via the Python API.
I can get access to an instances reference point's coordinates within the assembly easy enough with,
But when I look at the translate command it only has an instance list & an end point,
Anyone know a way of doing this?
So far I can import the separate parts (each of which has its own reference point) into the assembly & translate them to a specific point.
In CAE you can select a point on the instance & translate that point to a given coordinate but I have found no way of doing this via the Python API.
I can get access to an instances reference point's coordinates within the assembly easy enough with,
Python:
instRefCoords = mdb.models['Model-1'].rootAssembly.getCoordinates(mdb.models['Model-1'].rootAssembly.instances['TESTCASE_1-1'].referencePoints[4])
But when I look at the translate command it only has an instance list & an end point,
Python:
mdb.models['Model-1'].rootAssembly.translate(instanceList=('TESTCASE_1-1', ), vector=(endPoint))
Anyone know a way of doing this?