Mirror Drawing Sketch

Mirror Drawing Sketch

J.Pelfrene
Enthusiast Enthusiast
387 Views
0 Replies
Message 1 of 1

Mirror Drawing Sketch

J.Pelfrene
Enthusiast
Enthusiast

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!

0 Likes
388 Views
0 Replies
Replies (0)