sketchucation logo sketchucation
    • Login
    1. Home
    2. xi21lipa
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    X
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 7
    • Groups 1

    xi21lipa

    @xi21lipa

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

    xi21lipa Unfollow Follow
    registered-users

    Latest posts made by xi21lipa

    • RE: Giving images different name with export image

      @unknownuser said:

      you can't not change that line, "c:/temp/_image.png" IS your image name...

      each new one will overwrite the previous...

      if you want different names that line has to change...

      john

      Then, what if I don't specify an image file path? Only the name and extension of image file will be remained and it looks like it can be treated... using #{name}

      posted in Newbie Forum
      X
      xi21lipa
    • Giving images different name with export image

      Hi, I'm working on 'export image' by myself and the result was not bad.

      Now, I'm trying to export some images with different name. The problem is, I already set up the specific name. I couldn't get next image with different name before I change the name in code.

      Maybe, I have to treat the name as variable but don't know how to do

      could you please help me with it? Here, I'm sharing the code

      require 'sketchup.rb'
      
          def exportimage
      
            model = Sketchup.active_model
            entities = model.entities
            view = model.active_view
      
            # Set the camera properties
            eye = [0, 0, -1000]
            target = [0, 0, 0]
            up = [0, 100, 0]
      
            # Create the camera and make it active
            cam = Sketchup;;Camera.new eye, target, up
            view.camera = cam
            view.zoom_extents 
      
            # Set file property
            keys = {
              # Naming file
              ;filename => "c;/temp/_image.png",
      
              # Pixel setting
              ;width => 500,
              ;height => 500,
      
              # Tranparent setting
              ;transparent => false
            }
            view.write_image keys
      
          end # def ExportImage
      
      #-----------------------------------------------------------------------------
      if( not file_loaded?("exportimage.rb") )
      add_separator_to_menu("Plugins")
      
      if $submenu!=nil
      $submenu.add_item("ExportImage") { exportimage }
      else
      UI.menu("Plugins").add_item("ExportImage") { exportimage }
      end
      end
      #-----------------------------------------------------------------------------
      file_loaded("exportimage.rb")
      
      

      with the code. All the name of images I produced was '_image'. I would like to get images have different name without changing the line "c:/temp/_image.png", in the code.

      posted in Newbie Forum sketchup
      X
      xi21lipa
    • RE: Adding input parameter to simple code

      Yes right, I was talking about adding 'UI.input box' to the codes and would like to make the coordinates act like variables. Hmmm.. X and Y coordinates will correspond to length and width of rectangle, and Z coordinates will correspond to height of generated rectangle.

      After making rectangle automatically, objects in space will be cut by the rectangle. It is like a process of making cross section. This work could have been finished manually, but so many objects are involved in my work. Defining all entities and being cut and removed by rectangle automatically would be easier by making codes

      posted in Developers' Forum
      X
      xi21lipa
    • Adding input parameter to simple code

      Hi

      I'm a beginner at making codes and am currently doing a work which 3D model is changed to 2D plan(its similar with 'section plane') with a code which I personally made. I used to change the size of retangle by inputting numbers into the coordinates(p1~p5), but it was a troublesome work. Inputting number to a created box may be more handy for my main work. Could you please help me create an box which can input coordinates? The codes I made is shown below

      
              model = Sketchup.active_model
              entities = model.entities
      
              group_a=entities.add_group entities.to_a
              entities_a=group_a.entities
              trans_a=group_a.transformation
      
      
              group_b=entities.add_group
              entities_b=group_b.entities
              p1 = [0, 0, 1000.mm]
              p2 = [15000.mm, 0, 1000.mm]
              p3 = [15000.mm, 15000.mm, 1000.mm]
              p4 = [0, 15000.mm, 1000.mm]
              p5 = [0, 0, 1000.mm]
              
      
              entities_b.add_face(p1,p2,p3,p4,p5)
              trans_b=group_b.transformation
      
      
              entities_a.intersect_with true, trans_a, group_b, trans_b , true, group_b
              
              group_b.explode
              group_a.erase!
           
      
      
      posted in Developers' Forum
      X
      xi21lipa
    • Getting idea about removing invisible area

      Hello, I'm looking for plugins which is about removing invisible area as shown in the attached picture. In the view of the vertex of the cone, the parts of the cone shape which has passed through the hexahedron is invisible coverage and It can be removed to represent visible coverage only. The three cone shapes are manually made by hand. I would like to make the process automatically by clicking a kind of icon. Can you please give me related plugins or ideas for creating the tool?


      main task.JPG

      posted in Newbie Forum sketchup
      X
      xi21lipa
    • RE: Can we trim shape inside of other shape?

      I attached a picture to show clear intention. I wanna remove blue box in green box with trim, split


      Box_Trim.JPG

      posted in Newbie Forum
      X
      xi21lipa
    • Can we trim shape inside of other shape?

      Hello, I'm beginner in Sketchup. My question is simple and mentioned it on title. I couldn't remove shapes inside of other shape. I transparentized bigger shape and tried to remove smaller shape in bigger one, but it didn't work and even clicking. Furthermore, even clicking shape in bigger shape was really hard. I had to click it with ctrl and shift keys. Is there anyone who can give me clear answer?

      posted in Newbie Forum sketchup
      X
      xi21lipa