Programming in Sketchup. We can add programmed behaviour to Sketchup The language used is Ruby, an object- oriented programming language There are several.

Slides:



Advertisements
Similar presentations
Creating posters and flyers Lesson -IV. Editing pictures inside Office Office 2007 has tools to edit photos and pictures in the document. Office 2007.
Advertisements

1 After completing this lesson, you will be able to: Specify options. Customize the appearance of messages. Add a signature to an .
DL Windows Software “Rules” Import a CSV File From Excel
Copyright 2002, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-1 LINKS TO OBJECTIVES Form Concepts Creating the Form Template Creating the Form Template.
Course Orientation Discussion and Private Messages Tool.
Discussions. Overview Introduction Composing Sending an Attachment Viewing Downloading an Attachment Replying.
Animation in Sketchup. Sketchup, itself, supports only camera animation, using its notion of a scene It does not support object animation But there are.
1 of 2 Microsoft Outlook 2003 makes it possible to delegate one or more people to read and create items in your Outlook account and to respond to e- mail.
Getting Started with Cadence Prepared by Ryan Johnson, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT  The following.
Components in Sketchup. Components Components are like groups but... –they offer more power Components can be re-used in other projects –because they.
This demo shows how to create a simple multiple choice exercise using drop down menu boxes with the forms tool within MSWord.
1 of 4 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Merging 3D layers in Photoshop. Photoshop document with one layer.
Creating FrontPage Tasks The task view allows you to add information about what you want to accomplish when creating your Web site.
Sending and receiving s Section 6. Objectives Students will deal with messages, send and receive messages, reply to s, sorting s and how.
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
Publishing guidelines. GLOBAL ELEMENTS Main menu Creating a menu item 1.Right click «Main menu» in the sub structure, click «Create» 2.Enter the name.
Pasewark & Pasewark 1 Outlook Lesson 3 Working with Other Outlook Tools Microsoft Office 2007: Introductory.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Customizing Microsoft Project
Click your mouse for next slide Flash – Introduction and Startup Many times on websites you will see animations of various sorts Many of these are created.
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
How To Use Google Docs. 1. Go to the Google Docs website a) Go to b) Sign in using your username and password.
Programmed Animation in Sketchup. A free plugin for object animation In this folder you will find a.
Workbench Overview Dwight Deugo Nesa Matic
Exercise 1: Creating GIS data—points lines and polygons A very common method of creating vector data is to physically create these files through on-screen.
C-Map Tutorial How to create and save a concept map using C-Map, export a C-Map as an image, and export a C-Map as a webpage.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Dreamweaver MX. 2 Overview of Templates n Templates represent a web page design or _______ that will be common to multiple pages. n There are two situations.
GroupWise 6.5 Junk Mail Handling July 28, Configuring Junk Mail Handling Junk Mail Handling enables you to have actions taken automatically on any.
ASENT_MTTR_LAB.PPT Slide 1 Maintainability Prediction Lab Last revised 02/09/2011.
MS-Word XP Lesson 9. Mail Merge The Mail Merge feature combines a list of data, typically name and address that is contained in one file with a document.
Distributed Multimedia Programming Week - 1. Document Window  The Document Window is divided in to six main components Timeline – The Timeline is where.
Microsoft Outlook 2010 Chapter 3 Managing Contacts and Personal Contact Information with Outlook.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
Introduction to EBSCOhost Tutorial support.ebsco.com.
line.net/ okpop.com/bar elythereflashin dex.html.
The CLS IS Unit Presents Creating Schedules What are schedules in Entourage? By using Entourage to set up schedules, you can easily automate certain.
Links take you to…  Different slides in your presentation  A different PowerPoint presentation  Any program - (Word can be used for example to complete.
How to create & use Dreamweaver Templates. Creating a Dreamweaver Template o A template is a common structure or layout of a web site that most of your.
Start with loading the picture Locate your camera’s USB cable –it looks something like this:
Presented by: Brad Gross, Helen Kamandhari, Royce Jacomen.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Unit 4 Welcome to “Word processing features” Polytechnic of Namibia, School of Humanities.
This opens the box as shown above where filtering on the Junk e mail folder can be adjusted. Click on the Blocked Senders tab. If adding an address.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Open the standard.idw template. Save copy as a different file name. If you want to create as a template, save to the c:\Program Files\Autodesk \Inventor10.
Introduction to EBSCOhost
Attachments from Templates in PD2
How to Change a Microsoft Word Document to a PDF Fillable Form!
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Using a template to create a document
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Tutorial: How to Creat a Website.
Introduction to Basic Interface of
ADDING COMMENTS TO AN EXCEL WORKSHEET.
Tutorial Introduction to support.ebsco.com.
Lesson Five: Building Custom Patient Lists
Finding Magazine and Journal Articles in
1. Open Visual Studio 2008.
Proxies Granting proxy authorization enables another provider to access your Inbox Documents and handle them for you. Your proxy can review, sign, refuse,
HP ALM Defects Module To protect the confidential and proprietary information included in this material, it may not be disclosed or provided to any third.
How To Photoshop Intro.
Using Microsoft Outlook: Outlook Support Number
Tutorial Introduction to help.ebsco.com.
3.3 – Invoke Workflow File Exercise 3.2: Extract as Workflow
Presentation transcript:

Programming in Sketchup

We can add programmed behaviour to Sketchup The language used is Ruby, an object- oriented programming language There are several ways of adding Ruby programs to Sketchup We will focus on plugins

Programming in Sketchup Look at the Sketchup menu bar below It contains the following items Sketchup File Edit View Camera Draw Tools Window Help This will change when we add certain types of plugin to Sketchup

Programming in Sketchup To write Ruby programs, we need a plain-text editor We will use TextEdit, which is in the Applications folder

Programming in Sketchup By default, TextEdit creates Rich Text files We must change this in the TextEdit preferences

Programming in Sketchup Below, we see the default situation

Programming in Sketchup Below, we have changed this to plain text

Programming in Sketchup A simple one-line Ruby program: UI.messagebox('Hello World!')

Programming in Sketchup We save the program in a filled called helloWorld.rb in this folder: /Library/Application Support/Google SketchUp [n]/plugins Now, when we restart Sketchup,...

Programming in Sketchup... a message box pops up, containing the string we specified

A program which adds a menu item module Say_Hello def Say_Hello.main UI.messagebox("Hello world!") end UI.menu("Plugins").add_item("Greet the world") { Say_Hello.main }

Programming in Sketchup Let's overwrite the previous program with this new one

Programming in Sketchup When we re-start Sketchup, we do not see the greeting we saw before

Programming in Sketchup But notice that there is a new item in the Sketchup menu bar It now contains the following items Sketchup File Edit View Camera Draw Tools Window Plugins Hello

Programming in Sketchup When we click on the Plugins menu item, we see the option Greet the world

Programming in Sketchup If we choose the option Greet the world,...

Programming in Sketchup... we receive the Hello World greeting

Programming in Sketchup If we click OK on the message box, we can start drawing

Programming in Sketchup Let's create a box

Programming in Sketchup We can then use the Greet the World option again and...

Programming in Sketchup... we receive the greeting again

A program which draws geometry module Draw_triangle def Draw_triangle.main point1 = [0,0,0] point2 = [20,20,20] point3 = [20,20,0] Sketchup.active_model,entities.add_face point1,point2,point3 end UI.menu("Plugins").add_item("Draw triangle") { Draw_triangle.main }

Programming in Sketchup Saving the program in the plugins folder in a file called draw_triangle.rb

Programming in Sketchup Re-starting Sketchup

Programming in Sketchup Now, we have two of our own plugins

Programming in Sketchup Let's choose the new one

Programming in Sketchup A triangle is created

Programming in Sketchup If we remove Sang, we can see the triangle more clearly

Programming in Sketchup Let's move the triangle and...

Programming in Sketchup... use the plugin again

Programming in Sketchup As expected, we get another triangle

Exercise Tackle Exercise 34