CADopia Inc.
Home Products E-Store Services Partners Company

Download CADopia 8 Evaluation Version.

VBA Sample for Drawing Slotted Holes

In this article we will show you how to draw a slotted hole through VBA.

Collecting user input

It begins by asking the user for an insertion point, the slot length, and then the slot diameter using the VBA Get functions.

It then uses the PolarPoint function to calculate the other points required to draw the slot. Then, using the AddLine and AddArc command, it draws the slotted hole.

Note how we declare 'pi' as a Constant and construct a function to convert Degrees to Radians.

Read More

Newsletter Feedback

CADopia 2007 All Rights Reserved.
Home | Products | E-Store | Services | Partners | Company
CADopia Request an evaluation CD
This offer is valid for Australia, Canada, India, Singapore, UK and USA addresses only.
E-Store
Contact sales@cadopia.com for more details.