Message 1 of 5
Coordinates on sketch on YZ plane

Not applicable
09-25-2020
04:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I created a sketch on YZ Plane.
When I add a circle to the sketch I have troubles on coordinates of the center point
design = app.activeProduct
rootComp = design.rootComponent
keyCapOcc = rootComp.occurrences.addNewComponent(adsk.core.Matrix3D.create())
keyCap = keyCapOcc.component
sketches = keyCap.sketches
yzPlane = keyCap.yZConstructionPlane
sketch = sketches.add(yzPlane)
circles = sk.sketchCurves.sketchCircles
pt = adsk.core.Point3D.create(0, 1, 1)
circles.addByCenterRadius(pt, 2)
When the circle is drawn, the center is on (1, 1, 0) on the component based coordinates.
For sure I'm missing something, maybe I need some transformation......