ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CLCyprien L20/11/2024

Hello, 

I am working on a macro to extrude cut a text sketch and I need to insert that sketch at the center of the selected face.

I used bounding box to get the center of the face but this method does not work for some faces (sketch is not on the face but very far away from it) so I am looking for the simplest way to insert the sketch text directly at the center of the face. Here is the code :

Sub ApplyEngravingMacro(swModel