sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    How to open attributes ?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 194 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