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
3
votes
1 answer

Ruby Sketchup ... exit

The following script is executed within Sketchup as a ruby script. notepad = File.absolute_path("notepad.exe", "C:/Windows") puts "fileName :"+notepad exec((notepad)) When closing the notepad.exe windows ... it also close/quit Sketchup. How to only…
3
votes
2 answers

Code completion for Sketchup Ruby API

Does anyone know of a program that has support for code completion for Sketchup Ruby API?
Ladislav
  • 7,223
  • 5
  • 27
  • 31
3
votes
0 answers

Programmatically create models

I want to create a CAD model for the purpose of finding its properties like mass, CG, inertia etc. I want to do this programmatically because I have to vary the model slightly and get the new properties many times What CAD software should I look…
Archit
  • 913
  • 1
  • 10
  • 20
3
votes
1 answer

SketchUp export obj with textures - how

Windows 7 (64bit), SketchUp Make 13.0.4812. Goal: convert SketchUp .skp model to .obj and load to WebGL using three.js. Problem: sketchup exports model to .obj with external textures, and these textures are not loaded by three.js. Question: is it…
user861768
  • 175
  • 1
  • 12
2
votes
2 answers

For Looping data in html and SketchUp

I have an array of data in SketchUp which I need to present to html in a table format. I have an example of my code which I have hard-coded. ID = [["Harry", "22", "Male"],["Sam", "19", "Male"],["Christine", "23", "Female"]] dialog =…
CodeZealot
  • 199
  • 4
2
votes
1 answer

Could someone explain vertices.flatten! in SketchUp Ruby to me?

Below is a piece of code (credit to Rafael Rivera) which plots points at the vertices of a model in SketchUp. def pointplot model = Sketchup.active_model entities = model.active_entities selection = model.selection edges =…
CodeZealot
  • 199
  • 4
2
votes
1 answer

How to create and set a custom cursor in SketchUp Ruby

I am creating a custom tool in SketchUp Ruby and would like to be able to set custom cursors to help the user identify which tool they're using. Below is the current code I have incase you would like to see what I have so far. #Some presets system…
CodeZealot
  • 199
  • 4
2
votes
1 answer

Large lagging on mouse movement with SketchUp Dae model

I’ve designed a 3D model in SketchUp and I didn’t use any texture. I’m faced with an issue related with lagging on mouse move and rotate process. When I exported the model by Dae format and imported to the three js online editor (three js online…
MLElyakan
  • 249
  • 4
  • 25
2
votes
2 answers

Parsing text in Ruby

I'm working on a script for importing component information for SketchUp. A very helpful individual on their help page, assisted me in creating one that works on an "edited" line by line text file. Now I'm ready to take it to the next level -…
tahwos
  • 574
  • 7
  • 21
2
votes
1 answer

IPC with Ruby 1.8.5

I need to do IPC with Ruby 1.8.5. The catch is that it's the Ruby that ships with Google SketchUp, and is only a subset of the full Ruby API. So for instance, there's no Socket class, and no DRb. What are some other way's of doing IPC with Ruby?…
jammur
  • 1,189
  • 3
  • 10
  • 18
2
votes
1 answer

angle_between issue in ruby

guys wonder if someone can help with a Sketchup ruby question. I am trying to differentiate the difference between an internal corner and an external corner to get two different angles as shown in the below image. This is the code I am using, which…
rinse04
  • 47
  • 3
2
votes
0 answers

Ruby SketchUp LoadError if requiring correct files

I have the problem that I want to require a ruby file. File overview: ExcelConversion.rb main.rb /classes/excelReader.rb /classes/elementIdentifier.rb the main.rb has the header: require classes/excelReader require classes/elementIdentifier the…
2
votes
1 answer

SketchUp How to Remove the Mesh Lines

I am using SketchUp to import from models. No matter what I do I get those Mesh grid lines for each of my model as shown in the picture below: Is there anyway to remove those because they are even exported to the final DAE format model. When I…
john doe
  • 9,220
  • 23
  • 91
  • 167
2
votes
1 answer

How to copy faces and preserve transformation in Sketchup Ruby

I am new to Sketchup Ruby and am blown away this is not more simple but here goes... I would like to copy all the groups matching a certain layer name to a new temporary group. I have basically given up on trying to copy the whole group because…
Hank
  • 113
  • 1
  • 11
2
votes
1 answer

Sketchup model > Collada > THREE js = no edges

I exported a very simple Sketchup model into a Collada dae file. When imported back into Sketchup edges are the original black; imported into THREE editor edges are white; in simple THREE project edges don't appear at all but everything else seems…
Chris Glasier
  • 791
  • 2
  • 10
  • 21
1
2
3
19 20