Exemplo n.º 1
0
 /// <summary>
 /// Assigns a handle to the object based in a integer counter.
 /// </summary>
 /// <param name="entityNumber">Number to assign.</param>
 /// <returns>Next available entity number.</returns>
 /// <remarks>
 /// Some objects might consume more than one, is, for example, the case of polylines that will assign
 /// automatically a handle to its vertexes. The entity number will be converted to an hexadecimal number.
 /// </remarks>
 internal override long AsignHandle(long entityNumber)
 {
     entityNumber = Owner.AsignHandle(entityNumber);
     if (isPaperSpace)
     {
         entityNumber = viewport.AsignHandle(entityNumber);
     }
     return(base.AsignHandle(entityNumber));
 }