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
|
|
|
|
|
This
offer is valid for Australia, Canada, India, Singapore,
UK and USA addresses only. |
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
|
 |
|
|
|