Example Code

Import 3D Models from Google SketchUp into LabVIEW Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

 

Overview
This example introduce LabVIEW 3D Picture Control is a powerful tool that can be used to easily visualize and overlay data on real-world objects by using the Sensor Mapping Express VI

Description
This example it can be difficult to locate existing models of bridges, vehicles, buildings or any object you may want to import and model

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

 

  1. Open SketchUp and click Get Models

.2. Search for your model and select it

  1. Once your model is imported, select File ? Export ? 3D Model. Save the .kmz file to your Desktop.
  2. Rename the .kmz file to .zip (for example, rename tumbler.kmz to tumbler.zip)
  3. Open the .zip file and locate the. dae file (located in the models folder inside the zip file)
  4. Open the. dae file in MeshLab
  5. In MeshLab, select File 》Save As...
  6. Select STL File Format (*.stl) and save your model (tumbler.stl for example)
  7. Now can run this Load Model example to load model selected..

 

Additional Information or References
LabVIEW Front Panel

 1.png

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
I.Foldvari
NI Employee (retired)
on

This is great.
I was looking for a way to use Google Sketchup with the 3D SensorMapping for long !!!!!

Great job.

Regards
Ingo Foldvari
Area Sales Manager - US West Academic
National Instruments
Alvarez
Member
Member
on

I download de evaluation vesion of labVIEW 2012, also the example that are in this link https://decibel.ni.com/content/docs/DOC-6033, so when i run the programm labVIEW throw me an error that says "Memory full", and i just want to make a prove to know how to load a stl file, what can i do in this case ?
I've done all the procedure of this page for the transformation of the file.

AndreasStark
NI Employee (retired)
on

There is also a plugin for Sketchup to do STL export: http://sourceforge.net/projects/stl4su/

Just put it into the C:\Program Files (x86)\Google\Google SketchUp 8\Plugins folder. Then in Sketchup go to Tools > Export to STL

But the easiest way is to export dae from Sketchup since from LV 2011 the picture control can import these as well (use invoke node App.Scene.Read Scene File) as described here: Import and Simplify CAD models in LV Robotics 2011

Maybe you need to add an autofocus invoke node to the picture contol

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
salik44
Member
Member
on

I followed the procedure mentioned above, but it gives some sort of error "memory full" please help me out