sketchucation logo sketchucation
    • Login
    1. Home
    2. AlexMozg
    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
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 66
    • Groups 2

    Posts

    Recent Best Controversial
    • How to receive correct coordinates of all vertexes?

      How to receive correct coordinates of all vertexes in selection, including all the nested groups and components.
      Multiplication of transformations far not always gives correct result, especially if for any nested group(component) of an axis do not coincide with an axis of group(component) in which it is enclosed.

      I was trying so:

      
      ...
      @lines = []
      extract_lines(group.entities, (Geom;;Transformation.new))
      ...
      def extract_lines(ents, tr)
      	ents.each do |e|
      		if e.typename == "Edge"
      				line = [e.vertices[0].position, e.vertices[1].position]
      				line[0] = tr * line[0]
      				line[1] = tr * line[1]
      				@lines << line
      		elsif e.typename == "Group"
      			extract_lines(e.entities, (e.transformation * tr))
      		elsif e.typename == "ComponentInstance"
      			extract_lines(e.definition.entities, (e.transformation * tr))
      		end
      	end
      end
      
      

      But here the relative positioning of groups concerning a model is not considered.
      There are ideas as it to make?

      posted in Developers' Forum
      A
      AlexMozg
    • RE: Loop Selection Tool?

      I too develop such script.
      While I test...

      posted in Developers' Forum
      A
      AlexMozg
    • RE: [Plugin] Name Group on Creation

      Jim, thank you for a wonderful idea.
      I edited your script and added list of the before entered values for a substitution
      and also checking for an empty selection.
      Jim, once again thank you.


      Jim, I regret because published this script here.
      I think that it is not nice for my part.

      posted in Plugins
      A
      AlexMozg
    • RE: How to subtract Point3D.Z value with a variable

      I think that all is far simpler...

      
      txt='Height; '+(@pt[2].z - @@level.to_l).to_s
      ...
      or
      For example;
      @@level = 100.mm
      txt='Height; '+(@pt[2].z - @@level).to_s
      
      
      posted in Developers' Forum
      A
      AlexMozg
    • RE: Is there a send_action for the 3DTextTool?

      Thank you! πŸ˜„

      posted in Developers' Forum
      A
      AlexMozg
    • RE: Is there a send_action for the 3DTextTool?

      And Is there a send_action for the Hide Dialogs in Windows menu?

      posted in Developers' Forum
      A
      AlexMozg
    • 1 / 1