Prompts the user for the insertion point, scale factors, and rotation angle to use when inserting a
Block Instance.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function PromptForBlockInsertion( _
const dsString& PreviewBlockName As System.String, _
bool SpecifyScale As System.Boolean, _
double DefaultScaleX As System.Double, _
double DefaultScaleY As System.Double, _
double DefaultScaleZ As System.Double, _
bool SpecifyRotation As System.Boolean, _
double DefaultRotation As System.Double, _
double* X As System.Double, _
double* Y As System.Double, _
double* Z As System.Double, _
double* ScaleX As System.Double, _
double* ScaleY As System.Double, _
double* ScaleZ As System.Double, _
double* Rotation As System.Double _
) As dsPromptResultType_e |
C# | |
---|
dsPromptResultType_e PromptForBlockInsertion(
System.string PreviewBlockName,
System.bool SpecifyScale,
System.double DefaultScaleX,
System.double DefaultScaleY,
System.double DefaultScaleZ,
System.bool SpecifyRotation,
System.double DefaultRotation,
out System.double X,
out System.double Y,
out System.double Z,
out System.double ScaleX,
out System.double ScaleY,
out System.double ScaleZ,
out System.double Rotation
) |
JavaScript | |
---|
PromptForBlockInsertion(
PreviewBlockName : String,
SpecifyScale : Boolean,
DefaultScaleX : Number,
DefaultScaleY : Number,
DefaultScaleZ : Number,
SpecifyRotation : Boolean,
DefaultRotation : Number
) : {
X : Number,
Y : Number,
Z : Number,
ScaleX : Number,
ScaleY : Number,
ScaleZ : Number,
Rotation : Number,
Result : String
} |
COM native C++ | |
---|
HRESULT PromptForBlockInsertion(
BSTR PreviewBlockName,
VARIANT_BOOL SpecifyScale,
DOUBLE DefaultScaleX,
DOUBLE DefaultScaleY,
DOUBLE DefaultScaleZ,
VARIANT_BOOL SpecifyRotation,
DOUBLE DefaultRotation,
DOUBLE* X,
DOUBLE* Y,
DOUBLE* Z,
DOUBLE* ScaleX,
DOUBLE* ScaleY,
DOUBLE* ScaleZ,
DOUBLE* Rotation,
dsPromptResultType_e* Result
) |
C++ | |
---|
DSRESULT PromptForBlockInsertion(
const dsString& PreviewBlockName,
bool SpecifyScale,
double DefaultScaleX,
double DefaultScaleY,
double DefaultScaleZ,
bool SpecifyRotation,
double DefaultRotation,
double* X,
double* Y,
double* Z,
double* ScaleX,
double* ScaleY,
double* ScaleZ,
double* Rotation,
dsPromptResultType_e* Result
) |
Parameters
- PreviewBlockName
- Name of the Block definition to insert to create the Block instance
- SpecifyScale
- True to use the values specified for DefaultScaleX, DefaultScaleY, and DefaultScaleZ for the Block instance's scale factors, false to use the user-interactive values (see Remarks)
- DefaultScaleX
- Scale factor for the x axis for the Block instance if SpecifyScale is set to true (see Remarks)
- DefaultScaleY
- Scale factor for the y axis for the Block instance if SpecifyScale is set to true (see Remarks)
- DefaultScaleZ
- Scale factor for the z axis for the Block instance if SpecifyScale is set to true (see Remarks)
- SpecifyRotation
True to use the value specified for DefaultRotation for the Block instance's rotation angle, false to use the user-interactive value (see Remarks)
- DefaultRotation
- Angle, in radians, by which to rotate the Block instance if SpecifyRotation is set to true (see Remarks)
- X[out]
- x coordinate where to insert the Block instance
- Y[out]
- y coordinate where to insert the Block instance
- Z[out]
- z coordinate where to insert the Block instance
- ScaleX[out]
- Scale factor for the x axis of the Block instance
- ScaleY[out]
- Scale factor for the y axis of the Block instance
- ScaleZ[out]
- Scale factor for the z axis of the Block instance
- Rotation[out]
- Angle, in radians, by which to rotate the Block instance
- Result[out] or Return Value
- Status of the input for inserting the Block instance as defined in dsPromptResultType_e
Example
Remarks
See Also
Availability
DraftSight V1R3.1