database ID of most recently drawn shape

Discussion in 'Cadence' started by SS, Apr 25, 2006.

  1. SS

    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
     
    SS, Apr 25, 2006
    #1
  2. 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 )

    )
     
    Bernd Fischer, Apr 25, 2006
    #2
  3. SS

    SS Guest

    thanks Bernd

    Sriram
     
    SS, Apr 25, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.