Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mirror 2d Sketch entity

3 REPLIES 3
Reply
Message 1 of 4
tefkleid
551 Views, 3 Replies

Mirror 2d Sketch entity

Hello guys,

 

I would like to ask the following question:

 

How can you use the mirror feature in a sketch using Inventor VBA?

Although I am able to mirror a part feature (e.g. an extrude or a hole), I am not able to mirror -for example- a line within a sketch.

 

Thank you for your time,

3 REPLIES 3
Message 2 of 4
xiaodong_liang
in reply to: tefkleid

Hi,

 

Unfortunately there isn’'t a direct way to mirror sketch objects. We have a wish #1286344.

You would need to calculate the 2d reflection matrix coefficients by an algorithm of your own and use method such as “Matrix2d.PutMatrixData” to fill up an Inventor Matrix2d. You can then use it to transform the required inputs to create a new mirrored sketch entity, e.g. mirror start/end points of the line, center/start/end of the arcs… 

You can easily find documentation about reflection matrices on the web. Here are some examples, do not take it as references: 

http://planetmath.org/encyclopedia/DerivationOf2DReflectionMatrix.html 

http://en.wikipedia.org/wiki/Transformation_matrix 

Message 3 of 4
tefkleid
in reply to: xiaodong_liang

Thank you very much for your answer!

Message 4 of 4
J.Pelfrene
in reply to: tefkleid

Having exactly the same question. Any solution or workaround in the meantime?

 

Cheers!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report