![]() (setq doc (vla-get-ActiveDocument acadObj)) This example returns the distance entered by the user. ReturnDist = (basePnt, "Enter a distance: ") MsgBox "The distance entered was " & returnDist,, "GetDistance Example" "(Enter the next value without prompting.)",, "GetDistance Example" MsgBox "The distance entered was " & returnDist & vbCrLf & _ ' This example returns the distance entered by the user.ĪppActivate īasePnt(0) = 0#: basePnt(1) = 0#: basePnt(2) = 0# Regardless of the method used to specify the distance or the current linear units (for example, feet and inches), this method always sets the return value to a double-precision floating-point value. A prior call to the InitializeUserInput method can force Point to be two-dimensional, ensuring that this method returns a planar distance. If the Point parameter is provided, AutoCAD uses this value as the first of the two points.īy default, GetDistance treats Point and the return value as three-dimensional points. AutoCAD draws a rubber-band line from the first point to the current crosshair position to help the user visualize the distance. The user can also set the distance by specifying two locations on the graphics screen. The AutoCAD user can specify the distance by entering a number in the current units format. ![]() ![]() The Prompt parameter specifies a string that AutoCAD displays before it pauses. The Point parameter specifies a base point in WCS coordinates. AutoCAD pauses for user input of a linear distance and sets the return value to the value of the selected distance. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |