Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
petr.meduna
in reply to: solomon7JX9D

PlanarSketch has OriginPoint where you can set workpoint, vertex or sketchpoint. So, use default workpoint instead.

sketchPlane.OriginPoint = invDoc.ComponentDefinition.workpoints.Item(1)

 

Also, you cannot update sketch, only document.

invDoc.Update()