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 add .obj model to JME

For some reason I am having a hard time figuring out how to add obj models to JME. I am new to JME and have not imported models before (other than the sample assets tutorial). I created a basic model in Blender and exported it as an obj. I added…
1
vote
2 answers

How to ask and validate a length from a `UI.Inputbox` field?

On SketchUp one can request user input using a dialog window created with the UI.Inputbox method. It is a basic task to ask for the dimension or length of some geometry the script will create afterwards. Internally SketchUp uses Inches to define…
villares
  • 333
  • 2
  • 12
1
vote
1 answer

How to read lenX from a SketchUp Dynamic Component on Ruby?

I have determined my component has an attribute with key 'lenx' using some code from http://www.sketchup.com/intl/en/developer/docs/tutorial_attrreporting But reading dynamic_attributes (from Dynamic Components) is not making any sense. When I…
villares
  • 333
  • 2
  • 12
1
vote
2 answers

Sum up Area for material in Components, Google Sketchup

I am making a plugin to sum up the area of all the material in a Sketch. I have succeeded in getting all the faces and such, but now the Components come into the picture. Im using the term single or multi leveled component as i dont know any better…
Arto Uusikangas
  • 1,889
  • 5
  • 20
  • 33
1
vote
2 answers

Importing .skp files in blender

I am looking for a way to import .skp files into blender. The only idea that I have right now is that if i can somehow programmatically import the sketchup files into sketchup and than export them as .dae files than i can run those model in blender.…
Mj1992
  • 3,404
  • 13
  • 63
  • 102
1
vote
1 answer

Shading mask algorithm for radiation calculations

I am working on a software (Ruby - Sketchup) to calculate the radiation (sun, sky and surrounding buildings) within urban development at pedestrian level. The final goal is to be able to create a contour map that shows the level of total radiation.…
Rojj
  • 1,170
  • 1
  • 12
  • 32
1
vote
1 answer

Parent LenZ is not a sum of Children LenZ?

Alright, i'm creating a Sketchup model but i'm confused. The parent component is not taking it's children properties correctly. Is this normal?
Nique
  • 543
  • 7
  • 21
1
vote
2 answers

OBJ file not appearing in Browser WebGL Three.js

I have an obj file that I would like to try and load using Three.js. I've been trying to get as much information on how to achieve this as possible from the web and my research has led me to utilizing the following script but all I am seeing is a…
Javacadabra
  • 5,578
  • 15
  • 84
  • 152
1
vote
2 answers

Sketchup API on Mac

I am not able to have my CLI tool linked to slapi.framework working. It can be built, linked to the framework. I have added a Run Script build phase to copy the framework near the executable, and to change the @rpath of the executable: set…
1
vote
1 answer

Using ASP.NET c# with Sketchup Ruby Extension

I'm an ASP.NET c# developer using VS2010 as my development platform. I am interested in accessing Sketchup models using a web form interface. Has anyone done this? I am looking for a simple "Hellow World" web application that uses the Ruby…
Tad Carter
  • 11
  • 3
1
vote
0 answers

ruby 2.0.0 undefined method (calling module method from another module class )

I have this code : inside "Sound.rb" module SDL extend DL::Importer dlload(Sketchup.find_support_file("SDL.dll","Tools/Sketchyphysics3/sdl/")) extern "int SDL_Init(int)" etc.... end module MSketchyPhysics3 class SPSounds …
MTriple
  • 53
  • 5
1
vote
2 answers

Is it possible to know programmatically the position of texture in ruby?

I written some plugins for sketch-up. I want to know that is it possible to know the texture position that is vertical or horizontal programmatically in ruby ? Ex: I'm using Sketch-up for wood working and whenever I apply material to the model I…
1
vote
1 answer

Ruby Sketchup Error when calling dll library in Sketchup Ruby

I want Sketchup can import muliple files. But unfortunately, Sketchup API dosen't support it. So i created one dll library. It call Window API function: GetOpenFileName for displaying multi-select dialog, get selected file names and display them in…
Beginner
  • 59
  • 2
  • 10
1
vote
1 answer

Sketchup Ruby API reference to deleted Face

Hi all I want to create a Sketchup tool for moving vertexes in a polygon (It is the same as move tool in sketchup ,except it just move vertex, not edge) . This polygon is in an array of polygon. I created a "Tool" class, and when i pick the first…
Beginner
  • 59
  • 2
  • 10
1
vote
1 answer

import multiple files in the same type in sketchup ruby api

I am a beginer with ruby and sketchup.I need to select and import multiple files at the same time when open a dialog for importing. I used a class, which is inherited from Importer interface of SketchUp . But if i want to import multiple file, it…
Beginner
  • 59
  • 2
  • 10