Define the Goal

AutoCAD ActiveX

 
Define the Goal
 
 
 

Your goal in this tutorial is to develop a new macro for AutoCAD that draws a garden path and fills it with circular concrete tiles. Your new macro will have the following prompt sequence:

Command: gardenpath

Start point of path: The user will specify the start point

Endpoint of path: The user will specify the endpoint

Half width of path: The user will specify a number

Radius of tiles: The user will specify a number

Spacing between tiles: The user will specify a number

Your macro will first prompt the user to enter the start point and endpoint to specify the centerline of a path. Next, it will prompt the user to enter the half width of the path and the radius of the circular tiles. Finally, the user will enter the spacing between the tiles. You are using the half width of the path rather than the full width because it is easier to visualize the half width from the centerline of the path.