In this area, there's not much equivalence between the ActiveX and .NET
APIs.
Most of the Editor's GetXxxxx() methods accept a type derived from
PromptOptions, with methods and properties that can be used to govern how
input is obtained, and do things that require a call to the
InitializeUserInput() method in ActiveX (e.g. option keywords;
allowing/disallowing zero, negative, or null reponses; etc.).
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6287864@discussion.autodesk.com...
I'm converting from VBA to VB.NET and I've run into a snag converting some
of the utility.getxxx methods, for instance the getDistance method.
Everything I've been able to find says that
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor.GetDistance
in .NET is the equivalent of
AutoCAD.Application.ActiveDocument.Utility.GetDistance in VBA, but the VBA
command takes two optional parameters, a starting point and a prompt whereas
VB.NET only takes one, a prompt. Every reference I've found so far assumes
that you're not using the optional first parameter, but most of time, I am
using it. Is there a way to specify the starting point so that the user
only needs to input 1?