From the course: AutoCAD: Building Add-ins with C#

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Getting a user-specified distance

Getting a user-specified distance - AutoCAD Tutorial

From the course: AutoCAD: Building Add-ins with C#

Start my 1-month free trial

Getting a user-specified distance

- [Instructor] As we walk through the editor input name space, and some of the objects and methods we have available to us within the editor object we've already learned how to get the user to provide us points, 3-D points from the drawing space. Let's look at another means of getting information from the user, having him feed us a distance. So we're gonna open up our exercise file. desktop>Exercise Files chapter six and our 06-02 solution. And we'll open that up. And our solution explorer, in the initialization class in the regions commands we have a new command called LIGetDistance, and notice we have a comment here to write our code below. We already have the editor object of the current drawing as well as the database of the current drawing, the working database. As we saw in our last video, where we prompted the user to feed us a point, to prompt the user to give us a distance we need to first get some controls. So we're gonna do PromptDistanceOptions as our control, and we're…

Contents