Displays the specified prompt, local keywords, and default value for the point in the command window and gets the user's input.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function PromptForPointOrKeyword( _
BSTR Prompt As System.String, _
BSTR ErrorMsg As System.String, _
VARIANT GlobalKeywordStrArray As System.Object, _
VARIANT LocalKeywordStrArray As System.Object, _
LONG PromptInit As System.Integer, _
VARIANT_BOOL ShowRubberLine As System.Boolean, _
IMathPoint* DefaultValue As MathPoint, _
IMathPoint* BasePoint As MathPoint, _
BSTR* Keyword As System.String, _
IMathPoint** ResultPoint As MathPoint, _
IMathPlane* Plane As MathPlane _
) As dsPromptResultType_e |
C# | |
---|
dsPromptResultType_e PromptForPointOrKeyword(
System.string Prompt,
System.string ErrorMsg,
System.object GlobalKeywordStrArray,
System.object LocalKeywordStrArray,
System.int PromptInit,
System.bool ShowRubberLine,
MathPoint DefaultValue,
MathPoint BasePoint,
out System.string Keyword,
out MathPoint ResultPoint,
MathPlane Plane
) |
JavaScript | |
---|
PromptForPointOrKeyword(
Prompt : System.String,
ErrorMsg : System.String,
GlobalKeywordStrArray : System.Object,
LocalKeywordStrArray : System.Object,
PromptInit : Number,
ShowRubberLine : Boolean,
DefaultValue : MathPoint,
BasePoint : MathPoint,
Keyword : System.String,
ResultPoint : MathPoint,
Plane : MathPlane\n) : String |
COM native C++ | |
---|
HRESULT PromptForPointOrKeyword(
const dsString& Prompt,
,
const dsString& ErrorMsg,
,
VARIANT GlobalKeywordStrArray,
,
VARIANT LocalKeywordStrArray,
,
long PromptInit,
,
bool ShowRubberLine,
,
dsMathPoint* DefaultValue,
,
dsMathPoint* BasePoint,
,
dsString* Keyword,
,
dsMathPoint** ResultPoint,
,
dsMathPlane* Plane
,
dsPromptResultType_e* Result
) |
C++ | |
---|
DSRESULT PromptForPointOrKeyword(
BSTR Prompt,
,
BSTR ErrorMsg,
,
VARIANT GlobalKeywordStrArray,
,
VARIANT LocalKeywordStrArray,
,
LONG PromptInit,
,
VARIANT_BOOL ShowRubberLine,
,
IMathPoint* DefaultValue,
,
IMathPoint* BasePoint,
,
BSTR* Keyword,
,
IMathPoint** ResultPoint,
,
IMathPlane* Plane
,
dsPromptResultType_e* Result
) |
Parameters
- Prompt
- Text for the prompt to display in the command window
- ErrorMsg
- Error message to display in the command window if the user input is invalid
- GlobalKeywordStrArray
- Array of global keywords, which typically are language independent (see Remarks)
- LocalKeywordStrArray
- Array of local keywords, which are typically translated to the local language (see Remarks)
- PromptInit
- Prompt initialization as defined in dsPromptInit_e (see Remarks)
- ShowRubberLine
- True to display a rubber line from the origin, or from the BasePoint, to the location of the cursor; false to not display the rubber line (see Remarks)
- DefaultValue
- Default value for the point in the prompt in the command window (see Remarks)
- BasePoint
- Base point
- Keyword[out]
- Keyword input by user
- ResultPoint[out]
- Point input by user
- Plane
- Projection plane cursor coordinates
Parameters
- Result[out] or Return Value
- Result as defined in dsPromptResultType_e
Remarks
See Also
Availability
DraftSight V1R4.0