Hide Table of Contents
PromptForPoint2 Method (ICommandMessage)
Result[out]
True if the prompt is displayed in the command window, false if not

Displays the specified prompt in the command window gets the x, y, and z coordinates specified by the user.

.NET Syntax

Visual Basic (Declaration) 
Function PromptForPoint2( _
   const dsString& Prompt As System.String, _
   bool ShowRubberLine As System.Boolean, _
   double BasePointX As System.Double, _
   double BasePointY As System.Double, _
   double BasePointZ As System.Double, _
   double* X As System.Double, _
   double* Y As System.Double, _
   double* Z As System.Double, _
   dsMathPlane* Plane As MathPlane _
) As System.Boolean
C# 
System.bool PromptForPoint2( 
   System.string Prompt,
   System.bool ShowRubberLine,
   System.double BasePointX,
   System.double BasePointY,
   System.double BasePointZ,
   out System.double X,
   out System.double Y,
   out System.double Z,
   MathPlane Plane
)
JavaScript 
PromptForPoint2( 
   Prompt : String,
   ShowRubberLine : Boolean,
   BasePointX : Number,
   BasePointY : Number,
   BasePointZ : Number,
   Plane : dsMathPlane
) : {
   X : Number,
   Y : Number,
   Z : Number,
   Result : Boolean
}
COM native C++ 
HRESULT PromptForPoint2( 
   BSTR Prompt,
   VARIANT_BOOL ShowRubberLine,
   DOUBLE BasePointX,
   DOUBLE BasePointY,
   DOUBLE BasePointZ,
   DOUBLE* X,
   DOUBLE* Y,
   DOUBLE* Z,
   IMathPlane* Plane,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT PromptForPoint2( 
   const dsString& Prompt,
   bool ShowRubberLine,
   double BasePointX,
   double BasePointY,
   double BasePointZ,
   double* X,
   double* Y,
   double* Z,
   dsMathPlane* Plane,
   bool* Result
) 

Parameters

Prompt
Text of prompt
ShowRubberLine

True to display a rubber line from the origin, or from the BasePointX, BasePointY, and BasePointZ coordinates, to the location of the cursor; false to not display the rubber line

BasePointX
x coordinate for the point indicating where to start the rubber line (see Remarks)
BasePointY
y coordinate for the point indicating where to start the rubber line (see Remarks)
BasePointZ
z coordinate for the point indicating where to start the rubber line (see Remarks)
X[out]
x coordinate for a point
Y[out]
y coordinate for a point
Z[out]
z coordinate for a point
Plane
Projection plane cursor coordinates
Result[out] or Return Value
True if the prompt is displayed in the command window, false if not

Example

Remarks

ShowRubberLine must be set to true for the values specified for BasePointX, BasePointY, or BasePointZ to have an effect. The rubber line extends to the location of the cursor in the drawing.
 

See Also

Availability

DraftSight V1R2.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   PromptForPoint2 Method (ICommandMessage)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2020 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.