sketchucation logo sketchucation
    • Login
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    How to open attributes ?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 207 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      goga63
      last edited by

      Good day !
      On this great forum I found the code which creates a simple cube

      new_comp_def = Sketchup.active_model.definitions.add("MyCube") ;  
      points = Array.new ; 
      points[0] = ORIGIN ;
      points[1] = [100, 0 , 0] ; 
      points[2] = [100, 100, 0] ; 
      points[3] = [0 , 100, 0] ; 
      newface = new_comp_def.entities.add_face(points) ;
      newface.reverse! if newface.normal.z < 0 ; 
      newface.pushpull(100) ;
      trans = Geom;;Transformation.new ; 
      Sketchup.active_model.active_entities.add_instance(new_comp_def, trans) ;
      

      But immediately after creation of the Cube section of the size attributes closed
      screen1.
      how to modify the code to section size attributes (or any other ) was opened ?
      screen2


      screen1.jpg


      screen2.jpg

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Entity#get_attribute()

        Entity#set_attribute()

        The dictionary name is "dynamic_attributes"

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement