database ID of most recently drawn shape

S

SS

Guest
Hi All,

Is there a way to get the database ID of the most recently (last) drawn
shape in a cellview.

thanks,
Sriram
 
Not commented, I'm pretty busy, but something like this
could do it.

procedure( dbcmp( S_arg1 S_arg2 )
alphaNumCmp( sprintf( nil "%s" S_arg1 ) sprintf( nil "%s" S_arg2 ) )
)



let( (
d_cvId
l_shapeList
d_mostRecentShape
)

d_cvId = geGetEditCellView( )

foreach( d_shape d_cvId~>shapes
l_shapeList = cons( d_shape l_shapeList )
)

sort( l_shapeList 'dbcmp )
d_mostRecentShape = car( l_shapeList )

)
 

Welcome to EDABoard.com

Sponsor

Back
Top