Table of Contents

Method HandleOfTicket

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

HandleOfTicket(string)

Gets the handle in the app's drawing of the object a ticket stands for, from what the commit that made it answered: no request is sent, where GetObject(string) of the ticket and HandleOf(DxfEntity) ask the app once. After an edit call (Move<T>(IEnumerable<T>, GeoVector2), Copy<T>(IEnumerable<T>, GeoVector2), Offset(DxfCurve, double, GeoPoint2)...) it has the handles of the objects inserted in the same commit.

public string HandleOfTicket(string ticket)

Parameters

ticket string

The ticket Insert(DxfEntity, string) returned, once the commit that sent it is done; a handle stands for itself.

Returns

string

The handle; null where the app made no object of the insert (an MTEXT put in a drawing of R12 is written as TEXTs).

Exceptions

ArgumentNullException

Thrown when the ticket is null.

CadRemoteException

Thrown when the ticket is of an object not committed yet, or one this drawing did not give.