Table of Contents

Method PickObject

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

PickObject(string, TimeSpan?)

Asks the user for one object and waits for the answer: one click ends it. If exactly one object was selected before the call, it is taken at once.

public DxfEntity PickObject(string prompt, TimeSpan? timeout = null)

Parameters

prompt string

What the command line asks, such as Select the plate.

timeout TimeSpan?

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

Returns

DxfEntity

A copy of the object, as GetObject(string) gives it.

Exceptions

ArgumentNullException

Thrown when the prompt is null.

ArgumentOutOfRangeException

Thrown when the time is negative.

CadRemoteException

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