Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorlaurent_c
    • CommentTimeNov 8th 2017 edited
     

    Hello,

    I have tried to create several cells in severals layout, but I don't know how to handle the cellview creation : here is a part of my Ruby script :

    app = RBA::Application.instance
    mw = app.main_window
    for l in (1 .. 16) do
        #  create a new layout 
        mw.create_layout( (l).to_i )
        layout_view = mw.current_view
    
        ###  create a new layer in that layout
        cv = layout_view.cellview(0).create
        layout = cv.layout 
        # layout = layout_view.active_cellview.layout 
        ###  create a top cell
        wafer = layout.add_cell( "wafer_#{l}" )
    
    
    end
    
    • CommentAuthorlaurent_c
    • CommentTimeNov 9th 2017
     

    Sorry to reply to myself, but I solved by mistake my problem :

        mw.create_layout( 1 )
    

    Why 1 ? I still don't know.

    Laurent

    • CommentAuthorMatthias
    • CommentTimeNov 13th 2017
     

    Hi Laurent,

    the documentation of MainWindow#create_layout explains the meaning of the argument.

    Matthias