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
1
vote
1 answer

How to set icon for created .skp file by using C API?

Currently I am trying to create .skp files from some external geometry data. I have managed to create all required geometries, but after i save model by using following code: if (SUModelSaveToFileWithVersion(model, model_path,…
1
vote
3 answers

How to convert Ruby string encoding to win32 and back

I have a situation here in which I create temp files from Ruby in the user folder. I am using Dir.mktmpdir() to create a temporary folder I am putting my files into. For some reason, that function gives me a windows short folder name, so in instead…
1
vote
1 answer

VSCode tasks.json - Issue setting up debug environment for Sketchup Ruby Extensions

I'm running Window 7 | 64-bit. I'm trying to setup Visual Studio Code as my debugging environment for Sketchup 2016 extensions, for which tasks.json must be setup in VSCode to execute Sketchup with command line arguments. I'm receiving what looks…
AlexS
  • 510
  • 2
  • 7
  • 23
1
vote
1 answer

Call .NET dll via Google SketchUp Ruby Script

Is it possible, and does anyone have an example of how you might call upon a .NET dll from within Google SketchUp Ruby interface?
Kratz
  • 4,280
  • 3
  • 32
  • 55
1
vote
1 answer

How to set camera for page in Sketchup programmatically?

I am new in writing Sketchup plugins and I got problem. I know how to create page (scene) and camera, but I have no idea how to set the camera for the page. Any tips? eye = [100, 100, 500] target = [300, 300, 300] up = [0, 0, 1] pg_front =…
1
vote
0 answers

Sketchup to Blender to Animated GLTF into Cesium nightmare

I would be grateful for some suggestions for best best practice. I am a proficient user of Sketchup for a dozen years. I can make my way around blender. I have a need to model a wind turbine which ends up in gltf and imported into cesium with…
dawrightau
  • 11
  • 1
1
vote
1 answer

HLSL shaders, how to draw a model with it's original colors?

I made this very simple 3D model exported to .x format with Google SketchUp, the model is a simple cube and has no textures, only different colors for each of it's face. I have written this HLSL code to try to render this model with it's original…
Delta
  • 4,308
  • 2
  • 29
  • 37
1
vote
2 answers

ruby gems in Google-Sketchup

How do I use ruby gems in google-sketchup? Whenever I try typing: > require 'rubygems' into the ruby console, I get the following: Error: # EDIT I am on OSX.
dsg
  • 12,924
  • 21
  • 67
  • 111
1
vote
5 answers

Google SketchUp close file

The Ruby API to Google SketchUp has a function, open_file, but I can't find a close_file function. Since I have to batch process many files, I want to close each file before moving on to the next, otherwise the program will crash from memory…
dsg
  • 12,924
  • 21
  • 67
  • 111
1
vote
2 answers

Download Google Earth "Gray Buildings" models

I need to work with the 3d model of some places. Google Earth has the 3d building layer with "Gray Buildings" in it. This would be exactly what I would require. Is there any way to get the 3d models that are used? Is there a Google Earth API (other…
Philipp
  • 11,549
  • 8
  • 66
  • 126
1
vote
1 answer

Ruby SketchUp ... add a measurment

still learning about Ruby + Sketchup! Today,I would like to add a measurement (good english word ?) as I can do manually with the 'cotation' (french version) tool when I click to point then drag the measure text. Can't find that in the docs to do…
1
vote
1 answer

Why is the BoundingBox so big and do I have to change the pivot?

I have imported a .dae file from SketchUp: https://i.stack.imgur.com/s3Rqa.png 1: How can I change the size of the bounding box? 2: Why isn't the pivot in the center of the SCNNode and how can I change this. (I would prefer a solution thats not…
1
vote
1 answer

Box colider is not showing away from sktechup object

i have imported sktechup object inn unity. then i have apply the box coilder on a object but itishowing far away from the object i have try to rescal it and adjust it on a object but its not work. actually i want to movie and transform it in VR.…
1
vote
1 answer

How to retrieve the position of a node in the existing scene?

I created a model(for example, building with four walls) and exported it as .dea file using Sketchup. Later i add tap guesture to the scene and find out which wall on the scene have been tapped. I got results - exact name (id) of the wall but i…
KSR
  • 1,699
  • 15
  • 22
1
vote
1 answer

What is the latest way to import Sketchup models (Sketchup 2015/2016 free) into a Unity 5.4 2D game without using paid plugins and assets?

I have been searching on the net for 8 hours now, and apparently I have not come across any up-to-date helpful information regarding how to import models in Sketchup into Unity with textures, using the free versions of both pieces of…
Felastine
  • 793
  • 2
  • 8
  • 18