sketchucation logo sketchucation
    • Login
    1. Home
    2. mr_Creator
    3. Posts
    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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 1

    Posts

    Recent Best Controversial
    • How to move a group

      hi guyes
      I create a group and add to group face

      
      group1 = entities.add_group
      face = group1.definition.entities.add_face(f[0], f[1], f[2], f[3])
      
      

      Next I will rotate everything in this group

      
      [X_AXIS, Y_AXIS].each { |axis|
      	if not face.normal.samedirection?(Z_AXIS)
      	   if face.normal.perpendicular?(axis)
      		  angle = face.normal.angle_between(axis)
      		  angle = 180 - (angle * 180 / Math;;PI)
      		  rotation = Geom;;Transformation.rotation(group1.bounds.center, axis, angle.degrees)
      		  group1.entities.transform_entities(rotation, group1.entities.to_a)
      		end
      	end
      }
      
      

      Next I need to move everything to the origin of global coordinates. How to do it?
      group1.transformation.origin have zero coordinats, but group1 is not at zero.
      how to move a group or its contents to another location?

      posted in Developers' Forum
      M
      mr_Creator
    • RE: Delete and update add_note don't work

      @dezmo said:

      @note = Sketchup.active_model.add_note 'Note', 0.8, 0.9
      

      You may realised that is creating Sketchup::Text https://ruby.sketchup.com/Sketchup/Text.html
      To change:

      @note.set_text "This is another note"
      

      Most probably to see changes, the view need to redraw.

      Sketchup.active_model.active_view.invalidate
      

      do delete:

      @note.erase!
      

      When i use:

      
      @note.set_text "This is another note"
      Sketchup.active_model.active_view.invalidate
      
      

      then I get this (check image)

      http://dl3.joxi.net/drive/2020/08/22/0001/3576/101880/80/ddb0945bc7.jpg

      the text is superimposed on each other. Sketchup 2020

      posted in Developers' Forum
      M
      mr_Creator
    • Delete and update add_note don't work

      Hello,
      I create note:

      @note = Sketchup.active_model.add_note 'Note', 0.8, 0.9
      

      But I cannot delete and change the note. Help please, I used different methods, but none helped.

      posted in Developers' Forum
      M
      mr_Creator
    • 1 / 1