- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've been struggling for quite some time now to try to create a sketch whose orientation is neither the XY, XZ or YZ plane and whose origin is not 0,0,0 either.
I have been able to achieve this by "pushing" a new transform in the sketch I am creating (the transform was changed using Matrix3D.setWithCoordinateSystem ), but that only seems to work (per the API documentation and from my own tests) for non-parametric designs.
In parameteric designs, I had to rely on construction planes to *** almost *** get what I wanted.
Here is what I did:
1) Created a line in the new sketch's X axis direction in the XY construction plane
2) Created a line in the new sketch's Y axis direction in the XY construction plane
3) Created a construction plane from those 2 lines, using the ConstructionPlaneInput.setByTwoEdges method
Once this is done, I end up with a sketch that *** seems *** to be oriented properly.
But when adding to that new sketch a line that goes from (0,0,0) to (10,0,0) , the line does not up where I expected it. (see image in attached zip)
So what I'd like to find is how the "setByTwoEdges" method determines the X, Y and Z axes of the resulting construction plane from the 2 edges it receives for its creation ?
Attached in the zip there also is a python sample that reproduces the situation.
Thanks in advance for any comment / advice
Regards
Jean-Marc Langlois
Solved! Go to Solution.