Instance(...)
This method creates an OdbInstance object from an OdbPart object.
Path
session.odbs[name].rootAssembly.Instance
Required arguments
- name
-
A String specifying the instance name.
- object
-
An OdbPart object.
Optional arguments
- localCoordSystem
-
A sequence of sequences of three Floats specifying the rotation and translation of the part instance in the global Cartesian coordinate system. The first three sequences specify the new local coordinate system with its center at the origin.
-
The first sequence specifies a point on the 1-axis.
-
The second sequence specifies a point on the 2-axis.
-
The third sequence specifies a point on the 3-axis.
The fourth sequence specifies the translation of the local coordinate system from the origin to its intended location.
For example, the following sequence moves a part 10 units in the X-direction with no rotation:
localCoordSystem = ((1, 0, 0), (0, 1, 0), (0, 0, 1), (10, 0, 0))
The following sequence moves a part 5 units in the X-direction with rotation:
localCoordSystem = ((0, 1, 0), (1, 0, 0), (0, 0, 1), (5, 0, 0))
transforms a part containing the two points
Pt1= (1,0,0) Pt2= (2,0,0)
to
Pt1 = (0, 6, 0) Pt2 = (0, 7, 0)
-
Return value
An OdbInstance object.
Exceptions
InvalidNameError.