Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
J.Pelfrene
148 Views, 0 Replies

Mirror Drawing Sketch

Hi all,

 

I would need to horizontally mirror a sketch in a (.idw) drawing document. Unfortunately, the API does not offer a direct function for this, even though a button for manual operation is foreseen. 

See also: https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/how-to-mirror-a-sketch-using-vba-mac...

 

Unlike a PlanarSketch, a DrawingSketch does not offer SketchBlocks which can be transformed by matrix operation, such as here:

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/rotate-sketchblock/m-p/11332890#M140...

 

I tried changing SketchPoint coordinates one by one, as below. But if it doesn't lead to an error, it really alters the sketch into something unrecognizable.

Dim oPt As SketchPoint
For Each oPt In oDrawSketch.SketchPoints
	oPt.MoveBy(oTG.CreateVector2d(-oPt.Geometry.X,0))
Next

 

Any suggestion for a workaround is greatly appreciated!