US$0.00
0

SolidWorks Macro for Instant Centered Rectangle Sketching: SketchBox

Description

You can utilize the tool for the purpose of creating a rectangle that is centered about the origin, on a selected plane or face.

SolidWorks Macro for Instant Centered Rectangle Sketching

System Requirements

  • SolidWorks Version: SolidWorks 2014 or newer
  • Operating System: Windows 7 or later

Pre-requisites

  • A plane or face must be pre-selected prior to starting the macro.
  • SolidWorks must have an active document.

Results

  • A centered rectangle will be drawn on the specified plane or face.
  • The opposite corners of the rectangle will have a construction line drawn between them, which will be constrained to the origin.
  • The rectangle’s width and height will be created.

Steps to Set Up the Macro

  1. Choose a Plane or Face: In your SolidWorks document, pre-select the plane (e.g., Right Plane) or planar face on which the rectangle will be sketched.
  2. Execute the Macro: Now run the macro (preferably via an assigned keyboard shortcut for maximum speed). The centered rectangle and all related features will be completely created on the selected geometry. This SOLIDWORKS macro for instant centered rectangle sketching ensures that the sketch is generated quickly and precisely without manual alignment.

VBA Macro Code

Macro

You can download the macro fromĀ here.

Author

Amen Jlili

Amen Jlili is the founder and technical director of Blue Byte Systems Inc., a software company in Vancouver, Canada, specializing in automating SOLIDWORKS and PDM. With over a decade of experience, he has authored several courses and open-source frameworks related to the SOLIDWORKS API. His leadership ensures that Blue Byte Systems prioritizes customer satisfaction and delivers high-quality software and CAD design solutions.
0
    0
    Your Cart
    Your cart is emptyReturn to Shop
    ×