Questions tagged [sketchup]

Trimble SketchUp is a simple, easy-to-use 3D drawing program. Originally created by @Last Software, then purchased by Google in 2006 before Trimble acquired it in 2012. SketchUp has a Ruby API for creating extensions/plugins and a C SDK for reading and writing .skp files.

Trimble SketchUp is a simple, easy-to-use 3D drawing program. Originally created by @Last Software, then purchased by Google in 2006 before Trimble acquired it in 2012.

SketchUp offers third party developers with a Ruby API for creating extensions/plugins and a C SDK for reading and writing .skp files.

The C SDK was introduced in SketchUp 2013 and supersedes the old C++ SDK in previous versions.

287 questions
2
votes
0 answers

UV mapping issues while loading collada model exported with Sketchup

I load collada models, exported via Google Sketchup, into my Three.js (v63) scene with the Three.js collada loader. The models are loaded, but with some, textures aren't well mapped, like in the following picture : My first question is how to…
Eturcim
  • 798
  • 8
  • 26
2
votes
1 answer

Exporting interactive model from Sketchup to three.js

I've finished designing my 3D model using Google Sketchup, my model contains scenes and dynamic moves, in other words my model responds to clicks made by the user (click on model then model moves or does something) my query is that if I upload my…
Omar
  • 21
  • 1
  • 2
2
votes
1 answer

In SketchUp how do I create a solid half sphere/dome? I keep getting a hole in the top

I'm not sure if SO is the best site for this question, but I saw some other sketch-up tags... I've found a bunch of tutorials that show how to draw a sphere. Here's one for example. However, whenever I try it I get a half sphere with a hole in the…
robertwbradford
  • 6,181
  • 9
  • 36
  • 61
2
votes
1 answer

Punching a hole through a cylinder using Sketchup Ruby API

I'm writing a script to make a simple flute in SketchUp (free version, Mac). I want to make a tube and and then cylinders which poke through the tube, draw the intersection lines between the tube and the cylinders, then erase the cylinders, leaving…
wtbgtr
  • 687
  • 1
  • 6
  • 11
2
votes
1 answer

Rotate Object in Sketch Up Ruby Script

I'm trying to create a several cylinders with a loop, rotating each one slightly in 3 dimensions each time, a random amount. Here's what I have so far: until i == 200 x += rand(10) y += rand(10) z += rand(10) xyz =…
logic-unit
  • 4,195
  • 12
  • 47
  • 72
2
votes
1 answer

Each statement inside another each malfunctions?

I'm coding a Google sketchup plugin with Ruby, and I faced a little problem. I have an array containing descriptions of every point like: desc_array = ["anna ", "anna 45", "anna689", "anna36", "anna 888", "anna ",...] The array containing every…
1
vote
3 answers

Google SketchUp and 3D with C#

I'm not familiar at all with working with 3D, but I need to make a C# application that uses 3D object (just to view them). I think that it would be easiest to make 3D model in Google SketchUp. But I don't how to use .skp files in C#. And could also…
Miro
  • 1,778
  • 6
  • 24
  • 42
1
vote
1 answer

Sketchup Dynamic Component Options manipulating from ruby

I have created an Dynamic Component which depend of its options. I just need to change this options programmatically from ruby api. But I can't understand how to do it.
Guria
  • 7,023
  • 1
  • 17
  • 19
1
vote
2 answers

SketchUp and Unity3D

I use SkethUp for 3d-modelling. I have some problems with exporting the models with images in Unity, the images aren't exported if I use file.skp and are exported, but not displayed if I use file.dae. Does someone know the right way to do it?
Anonymous
  • 43
  • 1
  • 10
1
vote
1 answer

Unable to open a .html file in SketchUp Ruby

I am trying to create a tool which will open a .html file, however I need help with the piece of code which will open said .html file. I have this code below... help_file = Sketchup.find_support_files("html", "Plugins") if help_file # Print out…
CodeZealot
  • 199
  • 4
1
vote
1 answer

"add_cpoint" not working in a method in SketchUp's Ruby

I have a piece of code below which plots two points at [2,3,4] and [5,6,7] when the code is run in SketchUp's Ruby console. The end goal is to be able to allow the user to select a line and create points at both ends of the line, but I am taking it…
CodeZealot
  • 199
  • 4
1
vote
1 answer

How to change attribute LenX/Y/Z of your component in sketchup using ruby?

i am trying to make a dynamic component in Sketchup, i need to set value to lenZ, lenX, lenY.. but when i set it, it doesn't change. The attribute inspector shows the change, but the component doesn't change. i tried using redraw, refresh view..but…
Lionvids
  • 9
  • 3
1
vote
1 answer

3D model exported from SketchUp to three.js looks terrible

Cheers, I'm using a SketchUp 3D model in a Mapbox custom layer (with threebox/THREE.js) and I'm having a problem getting it to look less than awful. The model looks great in SketchUp but when I add it to Mapbox, the lights are all messed up. The…
mglonnro
  • 151
  • 10
1
vote
0 answers

UIBezierPath from Sketch

Have this array of points exported from sketch: [ { "type": "CurvePoint", "cornerRadius": 0, "curveFrom": { "x": 0, "y": 0.15833333333333344 }, "curveTo": { "x": 0.6750000000000007, "y": 1.265000000000001 }, "point": { "x": 0, "y": 0 }, "pointType":…
Andrey Oshev
  • 846
  • 7
  • 17
1
vote
1 answer

Ruby Sketchup-rotate 3d text

I have found a code to rotate 3d text, 90 degrees. mod = Sketchup.active_model # Open model ent = mod.entities # All entities in model sel = mod.selection # Current selection group = ent.add_group group.entities.add_3d_text('Right', TextAlignLeft,…
Davesexcel
  • 6,896
  • 2
  • 27
  • 42