Table of Contents

Method PickObjects

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

PickObjects(string, TimeSpan?)

Asks the user for objects and waits for the answer, as a command asks "Select objects:": the user clicks them or drags a window and presses Enter. Objects the user had selected before the call are taken at once, as the app's commands take them. The objects are copies as GetObjects(CadObjectFilter) gives them, so HandleOf(DxfEntity) and Modify(DxfEntity) work on them.

public IReadOnlyList<DxfEntity> PickObjects(string prompt, TimeSpan? timeout = null)

Parameters

prompt string

What the command line asks, such as Select the bars to dimension.

timeout TimeSpan?

How long to wait for the user; null for as long as it takes.

Returns

IReadOnlyList<DxfEntity>

The objects picked, in the order of their handles; none where the user pressed Enter with none picked.

Exceptions

ArgumentNullException

Thrown when the prompt is null.

ArgumentOutOfRangeException

Thrown when the time is negative.

CadRemoteException

Thrown as PickPoint(string, GeoPoint3?, TimeSpan?) throws.