Join us on Twitter: #AU2013 LISPing on Purpose – Parts 1 & 2 Craig P. Black Instructor of CAD Management, CAD Drafting, and Mechanical Design courses at.

Slides:



Advertisements
Similar presentations
Construction Documents and Details
Advertisements

Hidden Survey Gems: Using the COGO Editor and Mapcheck Analysis Tools and the New Survey Tools in AutoCAD® Civil 3D® 2013 Shawn Herring Civil Applications.
© 2012 Autodesk SE2070 Unlimited Round-Tripping with the RISA-Revit® Link Matt Brown, P.E. RISA Technologies.
CP308-1L: Working with Actions and the Action Recorder Lee Ambrosius Autodesk, Inc Sr. Technical Writer.
© 2011 Autodesk Capitalize on Corridor Improvements in AutoCAD ® Civil 3D ® Don Quinn Civil Engineer / Eagle Point Product Specialist.
© 2011 Autodesk Charging on from Schematics to Panels in AutoCAD ® Electrical (MA4757-L) Todd Schmoock Solutions Engineer - Synergis Technologies, Inc.
© 2010 Autodesk Autodesk Structural Curriculum 2013 Unit 1: Introduction to Structural BIM Building Information Modeling.
© 2012 Autodesk Conceptual and Design Workflows Using Autodesk ® 360 Integrated Applications Anirban Ghosh Principal User Experience Designer – DLS Mobile.
© 2011 Autodesk Mechatronics-Taming the Beast Randy Brunette Consultant, Trainer, All Around Good Guy Brunette Technologies, LLC.
© 2011 Autodesk Shop Drawings in Autodesk® Revit®. What? It can Do That? Ron Palma Application Specialist.
© 2011 Autodesk CP Leveraging ActiveX® Libraries with AutoLISP® Lee Ambrosius – Autodesk, Inc. Sr. Technical Writer – PSEB User Assistance.
Scripting Components for AutoCAD Plant 3D
© 2011 Autodesk CP5239 Demand-Loading AutoCAD®.NET Plug-ins James E. Johnson Synergis Software Sr. CAD Developer.
© 2012 Autodesk CI4820-V Feeling the Lay of the Land: Civil 3D and 3ds MAX Design for Landscape Architecture Robert Ward Landscape Architect LEED AP.
© 2006 Autodesk AutoCAD: Secrets Every User Should Know Chapter 8 - AutoLISP by Example: Getting Started.
© 2011 Autodesk MP4483 Ask the Experts: Autodesk ® Revit ® MEP Gregg Stanley Paul Aubin Darryl McClelland Martin Schmid Cindy Parvez.
© 2011 Autodesk AB4211: The Revit Viz Toolbox: Simplifying Presentations with Showcase and 3ds Max Mark LaBell Jr. BIM/CAD Technical Specialist – SSOE.
© 2012 Autodesk The Devil Is In The Workflow Module 1: Successfully Plan and Implement BIM Luis Rojas Building Design Product Line Manager, Eagle Point.
© 2011 Autodesk CM D Standards : New Thinking Allan Chalmers – Kempe Engineering Kevin J. Smedley – Engineering Design Systems, Inc.
© 2011 Autodesk Mechanical Simulation in AutoCAD ® 2012 Craig A. Miller – Pennsylvania College of Technology CAD Technology Specialist.
© 2012 Autodesk AutoCAD on Electrical Steroids Randy Brunette Electrical Subject Matter Expert (Autodesk)
Join us on Twitter: #AU2013 Roundtable: Electrical in a 3D World Randy Brunette Electrical Subject Matter Expert Janna Spicer Product Manager, Mechanical.
© 2011 Autodesk Islands in the Asphalt Parking Lot Grading for Commercial Site Projects Eric Chappell Author, Consultant, CAD Manager.
© 2012 Autodesk Matthew Stuver, LEED AP BD+C BIM Manager Dynamix Engineering Ltd. MP1425-R: AU2012 AutoCAD® Revit® MEP Family Reunion.
© 2012 Autodesk How to Get the Most from Integrated Project Delivery (IPD) David J. Patera Team Project Manager & VDC Coordinator.
© 2012 Autodesk Autodesk Structural Curriculum 2013 Unit 5: Advanced Structural Analysis & Coordination Advanced Structural Analysis & Coordination.
Join the conversation #AU2015. Class summary text goes here Class summary #AU2015.
© 2011 Autodesk Popular Design Patterns and How to Implement Them in.NET Gopinath Taget Senior Developer Consultant.
© 2011 Autodesk Managing Your Standards and Reusable Content with AutoCAD Tool Palettes – Revealed! Matt Murphy Director of Content Management and Development.
© 2012 Autodesk From Nothing to Something using AutoCAD ® Electrical Todd Schmoock Solutions Engineer - Synergis Technologies, Inc.
© 2012 Autodesk Adding Instrumentation and Electrical Capabilities to Autodesk® Plant Design Suite Andy Bonfield.
© 2013 Autodesk Autodesk Upgrade Discontinuation Presenter Name Presenter Title 2013.
© 2011 Autodesk Rain in the Plain: An Introduction to Autodesk® Storm and Sanitary Analysis Matthew Anderson, PE CFM QA Consultant – Autodesk. Inc. Lab.
© 2012 Autodesk AC4483-R - Extending the Power of AutoCAD® with Autodesk® Exchange Apps Karen Mason Principal User Experience Designer, Autodesk.
© 2012 Autodesk Nonfiction: A CAD Manager in a Box PL2027-R Tim BourdoisBrian Schanen Aluminum Curtainwall Systems / NetwiseAutodesk.
CI1697-R: Bridge Modeling Approaches Dave Simeone – Senior Product Manager, AutoCAD Civil 3D Edmundo Herrera – Autodesk Technical Specialist, Transportation.
Join us on Twitter: #AU2014. Class summary text goes here Class summary.
© 2011 Autodesk Showcase your Inventor Models David Edward Gaskill CAD Designer or
PD2297: AutoCAD® Plant 3D Tricks of the Trade
© 2012 Autodesk Customizing AutoCAD P&ID David Wolfe Process and Power Specialist.
© 2012 Autodesk AB1851 Optimizing the Design Development Stage using Revit Architecture Douglas Bowers, AIA, LEED AP BD+C Doug Bowers Consulting, LLC.
Join us on Twitter: #AU2013.  An appropriate image has been provided for your presentation based on the AU look and feel  You can replace the Title.
© 2012 Autodesk The Picture Says It All: Commercial Site Plan 3D Visualizations Using Autodesk® IDS John Sayre Civil Application Engineer.
© 2012 Autodesk Autodesk Structural Curriculum 2013 Unit 3: Modeling for Building Structures Building Information Modeling.
© 2011 Autodesk The Suite Life of AutoCAD® Guillermo Melantoni Sr Product Manager: Workflows and Interoperability at Autodesk.
© 2012 Autodesk Autodesk® Civil 3D® 3D Studio Max Design®: Civil View For All Vincent Sheehan Sr. Designer, Timmons Group.
© 2012 Autodesk SM3595-R | Thinking of Design, Engineering, and Simulation Differently! Luke Mihelcic Product Marketing Manager | ISM – Simulation Industry.
© 2011 Autodesk Painless Productivity Programming with the AutoCAD Action Recorder – Revealed! Matt Murphy Director of Content Management and Development.
© 2011 Autodesk The Autodesk® Revit® Theory of Relativity: Understanding Shared Coordinates Paul F. Aubin Author/Consultant.
Autodesk® AutoCAD® Raster Design: Advanced Tricks for Faster Raster Manipulation Russell Karshick Senior Drafter – PPL Corporation.
© 2012 Autodesk From CAD to Awesome: AutoCAD® and Autodesk® SketchBook® Designer Guillermo Melantoni Product Line Manager: Personal Design & Fabrication.
1.Click on the link below, this will open your web browser 2.Use “Extended Display” to project the.
© 2012 Autodesk Intersections from the Inside Out: A Different Workflow for AutoCAD® Civil 3D® Steve Boon AScT McElhanney Consulting Services Ltd.
1.Click on the link below, this will open your web browser 2.Use “Extended Display” to project the.
Everything You Need to Know About Autodesk® Revit® Structure View Filters Jared Rodrigues Senior CAD Drafter.
Civil 3D®: An All Around Geospatial Software Package
Are You STILL Not Using AutoCAD® Civil 3D ®?
Water! Water! Quenching Your Thirst for Water in AutoCAD® Civil 3D®
Step it up a Rung from AutoCAD® Designs to AutoCAD® Electrical (MA4762-L) Todd Schmoock Solutions Engineer - Synergis Technologies, Inc.
Creating Intelligent Details in Autodesk® Revit®
Check Out These ‘Suite’ Workflows
Using Scripts, AutoLISP® and
CM1847 Migrating AutoCAD Standards to Revit
Are Your Buildings Floating in the Air
Autodesk Navisworks: Practical Tips and Tricks from Seven Years in the Construction Industry Josh Lowe Project Lead, TURIS Systems.
BIM for Interiors: Making Autodesk® Revit® Work for You
MP1483 Massing and using Architecture Models for Revit MEP 2013 Analysis Simon Whitbread Application Specialist.
The Family Lab Harlan Brumm Product Support Technical Lead.
Beyond Massing: Conceptual Design in Autodesk® Revit® Architecture 2012 David Fano Partner | CASE Design, Inc |
Presentation transcript:

Join us on Twitter: #AU2013 LISPing on Purpose – Parts 1 & 2 Craig P. Black Instructor of CAD Management, CAD Drafting, and Mechanical Design courses at Fox Valley Technical College Twitter: CraigPBlack Facebook: Craig Black

CM1755-L & CM1757-L LISPing on Purpose – Parts 1 & 2

Teach technical drafting and Autodesk software related courses for the Mechanical Design Technology Associate of Applied Science Degree, CAD Management Certificate, and Mechanical CAD Drafting Technical Diploma programs Previous industry experience in mechanical, architectural, civil, and electrical disciplines Co-author, along with Terence Shumaker, David A. Madsen, David P. Madsen, Jeffrey Laurich, and J.C. Malitzke of AutoCAD And Its Applications – Advanced, published by Goodheart-Wilcox Former member and committee chair of the Autodesk Training Center Executive Committee, a liaison between Autodesk and Authorized Training Centers, focusing on educational issues Craig P. Black Fox Valley Technical College – Appleton, WI, USA

Lab Assistants Your resource for a successful session!

At the end of this class, you will be able to: Explain common AutoLISP programming terms Identify the common data types encountered within Autodesk® AutoCAD® software and AutoLISP Use the Visual LISP Editor to write and format simple LISP routines Load, use, and make available for future use those programs that will automate workflow (There will be a short quiz at the end of the session!) LISPing on Purpose: Learning Objectives (page 1)

1. Extremely Relevant 2. Just Right 3. 10, 10, 10, 10, Yes, just right 6. Yes Comments:Invite this guy back next year! Best Instructor Ever at AU! (See? This stuff isnt that hard!) Answers to Quiz at the end of class...

Cell phones off or on vibrate Try to hold questions until the end Stretching break at end of class Comfortable working with AutoCAD 2010 or later Concerns and Expectations

LISPing on Purpose – Part 1

List – anything contained within a set of parenthesis Atom – the individual items within a list Function – AutoLISPs commands, typically the first element within a list Argument – the elements that follow, or are passed to the function (arguments will be of specific data types) Expression – a list that involves a function, and possibly, arguments Data Types – see the next 4 terms Integers – whole numbers, no decimal point Reals – floating point numbers, always has a decimal point Strings – words, always contained in a set of quotation marks: Like This Lists – since AutoLISP stores point coordinates, or X, Y, and Z values within a set of parenthesis, or more specifically as a point list (see the first term!) – a list can be considered a data type Terminology (page 4)

Toggle off Dynamic Input Expand Command Prompt Window Prep Work for Practicing (page 5)

(functionname argument1 argument2...) Basic Syntax (page 5)

(+ num num …) (- num num …) (* num num …) (/ num num …) Rules for numbers: Decimal numbers MUST have a number in front of the decimal An integer will be returned if all arguments are integers Math Functions (pages 6 and 7)

(setq sym value) (setq A 1)returns 1 (setq B 2.5)returns 2.5 (setq C AutoLISP)returns AutoLISP Storing Data (page 6)

(getint str) (getreal str) (getpoint pt str) (getstring flag str) Getting Specific Data (page 8)

(setq ROWS (getint Enter number of rows: )) (setq RAD (getreal Enter circle radius: )) (setq CPT (getpoint Enter circle center point: )) (setq FRSTNM (getstring Enter your first name: )) (setq FULLNM (getstring T Enter your full name: )) Nesting Expressions (page 8)

Command: (setq X 1.25) 1.25 Command: !X 1.25 Command: offset Current settings: Erase source=No Layer=Source OFFSETGAPTYPE=0 Specify offset distance or [Through/Erase/Layer] : !X 1.25 Select object to offset or [Exit/Undo] : … Using Stored Data – Method 1 (page 9)

(command arguments…) Command: (command circle CPT RAD) Using Stored Data – Method 2 (page 10)

(setq PT1 (getpoint "\nEnter first point: ")) (setq PT2 (getpoint "\nEnter next point: ")) (setq PT3 (getpoint "\nEnter next point: ")) (setq PT4 (getpoint "\nEnter next point: ")) (command "line" PT1 PT2 PT3 PT4 "c") Putting It All Together

LISPing on Purpose – Part 2

(defun sym list expressions…) Open the Visual LISP Editor... Save, load, activate AutoCAD, run the program Defining a Function (page 11)

(prompt), (initget), (princ), error trapping (page 14)

(getvar), (setvar) (page 15)

(getstring) (page 16)

(getcorner), (car), (cadr), (list) (page 17)

(repeat), new bit code for (initget), looping (page 18)

(foreach), more looping (page 19)

(if), (getreal), (getint) (page 20)

Functions you have learned about: (+ num num …) (- num num …) (* num num …) (/ num num …) (setq sym value) (getint str) (getreal str) (getpoint pt str) (getstring flag str) (command str …) (defun sym list (functions…)) (load str) (getvar str) (prompt str) (initget int str) (setvar str value) (princ value) (getkword str) (getcorner str) (car list) (cadr list) (list atoms) (foreach sym list (functions)) (repeat int (functions)) (if list (function) (function))

I appreciate your attention over the last 2.5 hours I will be in the hall, happy to answer all questions thank you, Thank You, THANK YOU!! Do not forget to fill out and turn in your evaluations And That Concludes Our Training Session

Autodesk is a registered trademark of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing at any time without notice, and is not responsible for typographical or graphical errors that may appear in this document. © 2013 Autodesk, Inc. All rights reserved.