Method PickObject
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
promptstringWhat the command line asks, such as
Select the plate.timeoutTimeSpan?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.