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.

Using input keywords

Using input keywords - AutoCAD Tutorial

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

Start my 1-month free trial

Using input keywords

- [Instructor] Usually when working to get information from the user, we may want to provide them with different options. It's not just getting a selection set, it's not just getting a distance. Maybe they want to give us more information or maybe they wanna adjust the information that they provide us. So, we say only provide us a line, or you can select an arc. Well that's an option and we can build that in. That's where keywords come in to play, and every single one of the Get User input type functions that we've used so far has the ability to add keywords. So in this exercise we're going to see how we can add keywords to an existing Get User input type function that we looked at, we're going to look at the Get Distance function and see where we can take advantage of keywords there. But there's actually a separate Get Keyword function that you can just use to get a string result from the user. So you can ask them a question and they can provide you something back based upon a list…

Contents