CommandManager.Pick Method
Parent Object:
CommandManager
Description
Method that allows the user to pick a single entity.
Syntax
CommandManager.
Pick(
Filter As
SelectionFilterEnum,
PromptText As String ) As Object
Parameters
Filter |
SelectionFilterEnum |
SelectionFilterEnum Entity filter |
PromptText |
String |
Text to display as prompt. |
Samples
Create Approximate Polyline to 3D Curve |
Draws a polyline that is an approximation of the selected curve. To use this have a part open that contains a 3D skech that contains curves. |
Single selection - simple |
The following sample demonstrates getting a single selection from the user. |
Replace content center part |
This sample demonstrates how to replace the content part referenced by an assembly occurrence. |
Extract a Partial Curve from a Curve |
Demonstrates the ability to extract partial curves from a transient geometry curve. This sample has you select an existing sketch spline and extracts three curves from the curve. It then creates real curves using the extracted curves and deletes the original sketch curve. |
Copy sketch contents |
This sample shows how to copy the contents of one sketch to another. |
Split a 2D Curve |
Demonstrates the ability to extract split curves from a transient geometry curve. This sample has you select an existing sketch spline and splits it at the midpoint of parametric space. It then creates real curves using the split curve results and deletes the original sketch curve. |
Version
Introduced in version 2011