Export mesh from Meshlab and import in Sketchup while keeping textures
Stack Overflow Forum » SketchUp
by Christophe
2M ago
I used the Meshlab software to align meshes that were generated with a lidar scanning app. The files were originally in .usdz but I converted them in .ply to be able to import them in Meshlab. I know need to import those aligned files into Sketchup while keeping textures on and scale. Here are the file types I can import in sketchup: .dwg/.dxf, .dmp, .3ds, .dae, .ifc, .stl. I also have the universal importer that allows me to import almost any format except .usdz. So far I tried .dae, .obj, .ply and .dxf file formats but textures and scales are both lost in the process. Does anyone have a work ..read more
Visit website
Action callback function not working in sketchup
Stack Overflow Forum » SketchUp
by riri
2M ago
I’m new to sketchup, ruby sdk and I’ve run into a problem while creating a simple extension, I can’t seem to make the action callback work, so basically there is a input textbox and on pressing the enter key the text should get appended to a list. I defined this action callback in the ruby code named ‘enter_pressed’ def self.show_dialog if @dialog && @dialog.visible? @dialog.bring_to_front else @dialog ||= self.create_dialog @dialog.add_action_callback('enter_pressed') do |action_context| on_enter_pressed puts 'This ..read more
Visit website
Trouble Implementing add_3d_text in SketchUp Ruby API for Dynamic Text Annotations
Stack Overflow Forum » SketchUp
by Karl Fredrik
2M ago
What are the details of your problem? I'm working on a Ruby script for SketchUp to automate the process of adding text annotations within my model. I need to count instances of specific components ("Enkeltreol" and "Dobbeltreol") and display their totals as text within the model. I'm attempting to use the add_3d_text method for this purpose, but I keep running into a TypeError that I can't resolve. What did you try and what were you expecting? I've tried using the add_3d_text method to create the text annotations, but the script either doesn't produce text in the model, or it results in a Type ..read more
Visit website
Sketchup HTML:DialogFill fill Tags from selected csv file
Stack Overflow Forum » SketchUp
by Davesexcel
2M ago
Using Sketchup HTML:Dialog I am trying to fill in some input tags from a csv file. I don't get an error, the code does not seem to get past reader.onload = function(event) Has anybody had the same issue and found a solution? dialog = UI::HtmlDialog.new( { :dialog_title => "csv", :scrollable => true, :resizable => true, :width => 500, :height => 600, :left => 200, :top => 200, :min_width => 150, :min_height => 150, :max_width =>100, :max_height => 50, :style => UI::HtmlDialog::STYLE ..read more
Visit website
How to round the corners of a tabletop in SketchUp using a Ruby script?
Stack Overflow Forum » SketchUp
by kathdroid
4M ago
How to round the corners of a tabletop in Sketchup using a Ruby script. I saw a youtube clip showing how to do that manually with creating an arc in a tabletop group and using pushpull to remove the excess of the material. Can anybody show me an example how to make it done with Ruby API ..read more
Visit website
Ruby- Not all lines being loaded but no error? [closed]
Stack Overflow Forum » SketchUp
by Ben Garcia DB Solutions
5M ago
I have this code: p "RC3" def self.rename_component # SOME CODE end def self.Rename(path,name) # SOME CODE end p "RC4" def self.Rename_And_Reposition_Components p "RC4.1" # SOME CODE end p "RC5" Which outputs this: "RC3" "RC4" When I have my code within #SOME CODE "RC5" doesn't print, but I also don't get any errors. Can anyone suggest what might be able to do to track down this silent error? For completeness, the entire code block is: https://pastebin.com/fj8tQzak ..read more
Visit website
Replacing Components in SketchUP in other angle
Stack Overflow Forum » SketchUp
by wisogi
8M ago
I am training myself currently in Sketch Up, so this might be a trivial question. I get a SketchUp file from another program and want to replace, the components inn that file with my components. However the new component should be placed in another angle. As example I want to replace the component of a roof with the component of a house. If the angle stays the same the house is in an angle as the roof and not flat on the floor. As example I want to replace the component of a roof with the component of a house. If the angle stays the same the house is in an angle as the roof and not flat on the ..read more
Visit website
Trying to open 3ds files in SketchUp but all the curved surfaces are covered in lines I can't delete
Stack Overflow Forum » SketchUp
by HughJ
8M ago
Using Sketchup I am trying to import a 3ds file to be a part of my model but when I import the file (or any other file that wasn't made in SketchUp) all the curved surfaces, of which there are many, are covered in a ridiculous density of lines. It looks like its triangulated ready to 3D print and I can't delete the lines without it removing the surfaces as well. Does anybody know of a plugin or anything that I can use to open the file more cleanly? Or is it simply a matter of SketchUp processing surfaces differently and it can't really be done? Any help much appreciated. I've tried deleting th ..read more
Visit website
How to turn user current view in Sketchup into a URL link which can be accessed by the public with a browser
Stack Overflow Forum » SketchUp
by Alexandros Eghoyan
11M ago
How can I take the user's current view in Sketchup, which I have done and create a URL link for this image that, if I was to paste into a browser would have a direct link to the image not a website with the image within, and can be publicly viewed anyone with the link if it was to be pasted into a browser. The code below gets the user current view, but how to then generate this URL for this image: ``` require "sketchup.rb" require "base64" canvas_width = 800 canvas_height = 600 options = { :filename => "view.png", :width => canvas_width, :height => canvas_height, :antialias ..read more
Visit website
How to change axes for component from ruby api
Stack Overflow Forum » SketchUp
by Alex bizzon
11M ago
I have created an Dynamic Component which depend of its options. I need to change axes for component from ruby api.But I can't understand how to do it.enter image description here I tried this way, but it doesn't work out. Any suggestions? selection[0].axes.set(ORIGIN, X_AXIS, Y_AXIS, Z_AXIS ..read more
Visit website

Follow Stack Overflow Forum » SketchUp on FeedSpot

Continue with Google
Continue with Apple
OR