Autodesk University Online

Register | Sign In
Bookmark and Share Back to Class Listing

VB.NET Command School

2 Questions 3 Answers Ask the Speaker a Question
  • Event Year: Autodesk University 2008
  • Class ID: CP211-3
  •  
  • Primary Speaker: Douglas Goforth
  •  
  • Class Information
  •  
  • Primary Track: Customization and Programming
  •  

Class Audience

Programmers getting started with command prompting

Class Description

Learn to make your custom VB.NET commands look and feel just like "regular" AutoCAD®. This is all about prompts, dialogs, and interaction with the users and the .NET API. We will take a detailed look at creating command prompts and LISP functions. You will learn how to present the user with a choice of geometry and keyword responses, perform various actions depending on the input, and then repeat the prompt for the next input.

Class Highlights


  • .NET prompting API in AutoCAD 2009

  • Application structure

  • Looping and dialogs

  • LISP functions and arguments in .NET

  • Demandload .NET assemblies

View all 2 questions Questions & Answers

  • Reply Fred Dickinson asked...
    I attended the class, read and used some of the material but am having trouble with my next situation. I am coding a scenario in which the user is asked to specify a point, the user intends to pick the point on the screen but before they do they click on the SE Isometric view button which cancels the command. How can I code this so the user can continue with selecting the point after clicking on the SE Isometric view button? Thanks for your help. - Fred 07-06-2009 1:07PM

  • Reply Douglas Goforth replied...
    Hello Fred, Unfortunately you cannot "embed" a command or toolbar using .NET like you might in LISP. Neither can you pause for user input by clicking on an icon. Your solution will be to create a command line option to switch to the isometric view. Like - Select a point [Se/sW/Ne]: Where they would use the Iso keywork to enter iso mode. Then you would include the code to switch to the SE Iso view or whatever. Doug 07-07-2009 4:16AM

  • Delete Reply Fred Dickinson replied...
    Thanks, I'll give that some thought. The .Net option appears to be out. I used SE Isometric as an example but really it could be any means of changing the view so that the point you want to select is on the screen or can be more easily selected. And actually, my application requires the selection of 2 points so you may start in one view, change the view and select the first point and then change the view again before selecting the second point. Thanks again ... and by the way the class was great. - Fred 07-07-2009 7:04AM 07-07-2009 7:05AM

  • Reply david kennedy asked...
    i want to learn VB.net but dont know were to start. can you guide me ? 06-19-2009 12:49PM

  • Reply Doug Goforth replied...
    Hi David, there are a lot of on-line resources. Here is a web site that I like: http://www.programmersheaven.com/2/VB-NET-School 06-19-2009 2:05PM