sketchucation logo sketchucation
    • Login
    1. Home
    2. kherv
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    kherv

    @kherv

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    kherv Unfollow Follow
    registered-users

    Latest posts made by kherv

    • One Submenu for many plugins

      Hi,

      I Need some help.
      I wish to create the same submenu for some plugins.

      AS exemple:

      Plugin A
      Plugin B
      Plugin C

      For something like that:

      [pre:f9u5ni7z]Plugins
      -> Sub1
      -> sub11
      -> Plugin A
      -> plugin B
      -> Function Y
      -> Function Z
      -> sub12
      -> plugin C[/pre:f9u5ni7z]

      I tried something like that:

      plugin A:
      sub_1 = UI.menu( 'plugin' ).add_submenu( 'Sub1' )
      sub_11 = sub_1.add_submenu( 'sub11')
      sub_11.add_item("plugin A") {A}

      plugin B:
      sub_1 = UI.menu( 'plugin' ).add_submenu( 'Sub1' )
      sub_11 = sub_1.add_submenu( 'sub11')
      Sub_Plug = sub_11.add_submenu( 'plugin B')
      Sub_Plug.add_item("Function Y") {Y}
      Sub_Plug.add_item("Function Z") {Z}

      plugin πŸ˜„
      sub_1 = UI.menu( 'plugin' ).add_submenu( 'Sub 1' )
      sub_12 = sub_1.add_submenu( 'sub12')
      sub_11.add_item("plugin C") {C}

      And it gives:
      [pre:f9u5ni7z]Plugins
      -> Sub1
      -> sub11
      -> plugin A
      -> Sub1
      -> sub11
      -> plugin B
      -> Function Y
      -> Function Z
      -> Sub1
      -> sub12
      -> plugin C[/pre:f9u5ni7z]

      How can I do to fix this ?

      Thank you for the help and sorry for my bad english.
      Have a good day.

      posted in Developers' Forum
      K
      kherv