Any example code for adding Markers to a layout and an associated Rdb?

I just updated some code to add Markers to specific locations in a layout, but don't see how to add the Markers to a Rdb for the user to load...

Comments

  • Never mind, I downloaded the tool source & found examples in the testdata/ruby folders

    below is a summary of the code changes to the script I am working on:

      _rdb = RBA::ReportDatabase.new(_filename)
      _rdb.top_cell_name=_cell.name
      _cat1 = _rdb.create_category("Short_Locations")
      _cell1 = _rdb.create_cell(_top_cell.name)
                              _DText = RBA::DText.new(_e.shape.text)
                              _DText.string= _netA + "," + _e.shape.text_string
                              _Marker = RBA::Marker.new(_lv)
                              _Marker.set_text(_DText)
                              _rdb.create_item(_cell1.rdb_id, _cat1.rdb_id, RBA::CplxTrans::new(_layout.dbu), _e.shape)
      _rdb.save(_filename)
      _rdb._destroy
      _rdb_index = _lv.create_rdb("database_name")
      _rdb = _lv.rdb(_rdb_index)
      _rdb.load(_filename)
      RBA::Application::instance.main_window.menu.action("tools_menu.browse_markers").trigger
      _rdb.load(_filename)
    
Sign In or Register to comment.