© 2011 Autodesk CP417-7 - Leveraging ActiveX® Libraries with AutoLISP® Lee Ambrosius – Autodesk, Inc. Sr. Technical Writer – PSEB User Assistance.

Slides:



Advertisements
Similar presentations
CP308-1L: Working with Actions and the Action Recorder Lee Ambrosius Autodesk, Inc Sr. Technical Writer.
Advertisements

© 2011 Autodesk Go Big or Go Home! Part 1 – Large Scale Autodesk Vault Deployments Irvin Hayes Jr. Technical Product Manager.
© 2012 Autodesk AC2075-L - AutoCAD® Customization Boot Camp: No Experience Required Lee Ambrosius – Autodesk, Inc. Principal Content Developer – IPG- AutoCAD.
© 2011 Autodesk Capitalize on Corridor Improvements in AutoCAD ® Civil 3D ® Don Quinn Civil Engineer / Eagle Point Product Specialist.
CP Managing CAD Standards with VB.NET Lee Ambrosius – Autodesk, Inc. Sr. Technical Writer – AutoCAD/AutoCAD LT/ AutoCAD for Mac Image courtesy of.
© 2011 Autodesk Charging on from Schematics to Panels in AutoCAD ® Electrical (MA4757-L) Todd Schmoock Solutions Engineer - Synergis Technologies, Inc.
© 2011 Autodesk AC AutoCAD® Customization Boot Camp: No Experience Required Lee Ambrosius – Autodesk, Inc. Sr. Technical Writer – PSEB User Assistance.
© 2011 Autodesk Navigating Through the Corridor using AutoCAD® Civil 3D®.NET API Augusto Goncalves Senior Developer Consultant at Autodesk.
© 2012 Autodesk AC2724 – 2D Parametrics in AutoCAD® and Why You Need to Use Them Rick Ellis President, Cadapult Software Solutions
© 2012 Autodesk Conceptual and Design Workflows Using Autodesk ® 360 Integrated Applications Anirban Ghosh Principal User Experience Designer – DLS Mobile.
© 2011 Autodesk Shop Drawings in Autodesk® Revit®. What? It can Do That? Ron Palma Application Specialist.
Scripting Components for AutoCAD Plant 3D
© 2012 Autodesk Do More With Less ETO API’s Ishwar Nagwani Technical Consultant.
© 2011 Autodesk CP5239 Demand-Loading AutoCAD®.NET Plug-ins James E. Johnson Synergis Software Sr. CAD Developer.
© 2011 Autodesk AB4211: The Revit Viz Toolbox: Simplifying Presentations with Showcase and 3ds Max Mark LaBell Jr. BIM/CAD Technical Specialist – SSOE.
© 2011 Autodesk MA4299: A Sneak Peek into the Manufacturing Simulation Future Peter Maxfield Principal User Experience Designer.
© 2012 Autodesk AutoCAD ® Virtualized and Digitized michael trachtenberg - AE BackOffice Software Director.
© 2012 Autodesk BIM on an Etch a Sketch Jose Guia Janitor extraordinaire
© 2011 Autodesk MA Photorealistic Rendering of Autodesk® Inventor® Designs Using Autodesk 3ds Max® 2012 and iray® Steven Schain Autodesk Certified.
© 2011 Autodesk Mechanical Simulation in AutoCAD ® 2012 Craig A. Miller – Pennsylvania College of Technology CAD Technology Specialist.
© 2012 Autodesk Project Architect-Times-a-Changing: How to transition from yesterday to today Christopher Ozog Project Architect.
© 2012 Autodesk AutoCAD on Electrical Steroids Randy Brunette Electrical Subject Matter Expert (Autodesk)
© 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 2: User Interface Autodesk® Revit® Structure Software User Interface.
© 2011 Autodesk Converting Existing Piping Specs Ian Matthew Technical Marketing Manager, Autodesk.
© 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 AutoCAD® API.NET Tips and Tricks James E. Johnson Application Developer for Synergis Software.
© 2012 Autodesk Rolling Your Own: Building Apps in Autodesk® PLM 360 Joseph Piggee Trung Nguyen.
© 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.
© 2011 Autodesk Importing the Most Useful Data Into Survey in AutoCAD Civil 3D 2012 Russ Nicloy Civil Applications Engineer.
© 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.
© 2011 Autodesk Autodesk® Revit® MEP: Not Enough Content - What is the Problem Again? Plamen Hristov Virtual Design Manager.
© 2012 Autodesk Parametrics Master Class Martin Duke Business Systems Manager.
© 2012 Autodesk Going for the Gold with Data Management AB6022-V Adam Peter Customer Success Engineer.
© 2012 Autodesk Chutes and No Ladders – Using Inventor Professional’s Tube and Pipe For Facilities Design Mike Jolicoeur Field Product Manager, Factory.
Join us on Twitter: #AU2014. Class summary text goes here Class summary.
© 2011 Autodesk Showcase your Inventor Models David Edward Gaskill CAD Designer or
© 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.
© 2011 Autodesk AC2182 P - Autodesk 3ds Max for Starters Create Stunning Renderings For All Situations Christopher Fernandez Senior Applications Specialist,
© 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.
© 2012 Autodesk Collaboration Systems – It’s good to share Martin Duke Business Systems Manager.
© 2011 Autodesk Painless Productivity Programming with the AutoCAD Action Recorder – Revealed! Matt Murphy Director of Content Management and Development.
© 2014 Autodesk Getting started with Desktop Subscription.
© 2011 Autodesk The Autodesk® Revit® Theory of Relativity: Understanding Shared Coordinates Paul F. Aubin Author/Consultant.
© 2012 Autodesk From CAD to Awesome: AutoCAD® and Autodesk® SketchBook® Designer Guillermo Melantoni Product Line Manager: Personal Design & Fabrication.
© 2012 Autodesk The new AUGI UGA / UG Handbook Shaun Bryant Director, AUGI Board of Directors.
Managing the Construction Administration Phase in Autodesk® Revit®
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.
Autodesk® Revit® Rendering Tips You Can Use
Creating Intelligent Details in Autodesk® Revit®
Check Out These ‘Suite’ Workflows
Using Scripts, AutoLISP® and
Using Quantity Takeoff and Linked Models in Revit to Estimate a Project as the Design Changes Kevin R. Miller, Brigham Young University Scott Davis & TJ.
CM1847 Migrating AutoCAD Standards to Revit
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.
Using Quantity Takeoff and Linked Models in Revit to Estimate a Project as the Design Changes Kevin R. Miller, Brigham Young University Scott Davis & TJ.
Beyond Massing: Conceptual Design in Autodesk® Revit® Architecture 2012 David Fano Partner | CASE Design, Inc |
Presentation transcript:

© 2011 Autodesk CP Leveraging ActiveX® Libraries with AutoLISP® Lee Ambrosius – Autodesk, Inc. Sr. Technical Writer – PSEB User Assistance

© 2011 Autodesk Where Am I and Who Should Be Here You are in session: CP Leveraging ActiveX® Libraries with AutoLISP® You should know:  AutoCAD 2012 (or AutoCAD 2007 and later)  Basics of AutoLISP

© 2011 Autodesk Overview This session will help you get more out of AutoLISP. In this session, you will learn to:  Access objects in an open or closed drawing  Access and store values in the Windows® Registry  Learn about reactors  Manipulate the Windows environment  Drive Microsoft® Office applications; Word, Excel, and Access

© 2011 Autodesk Who Am I? My name is Lee Ambrosius  AutoCAD user for over 16 years; started on R12 DOS  Customizing and programming on AutoCAD for 15 years  Sr. Technical Writer at Autodesk for AutoCAD/AutoCAD LT/AutoCAD for Mac  Contributing Author and Technical Editor of many AutoCAD related books and articles  AutoCAD for Dummies  AutoCAD and AutoCAD LT Bible Series  Mastering AutoCAD for Mac  AUGI HotNews and AUGIWorld

© 2011 Autodesk Session Rules A few rules for this session:  Silent your cell phone  If you have to leave at anytime, please do so quietly  I will allow time to ask questions during the session unless we start getting behind Thanks for Your Cooperation

© 2011 Autodesk Access Open and Closed Drawings The AutoCAD COM libraries allow you to work with open or closed drawing.  vl-load-com loads the Visual LISP functions which are part of acax18enu.tlb  Accessing drawings not loaded into AutoCAD is accomplished with axdb18enu.tlb The COM libraries allow you to:  Create and modify objects in model or paper space  Work with named objects, such as layers and blocks  Open and work with a drawing in memory

© 2011 Autodesk Access Open and Closed Drawings  Create a circle with Visual LISP  CreateCircle-VL  Change the some object properties to ByLayer for all objects in the current space  Change2ByLayer  Access a drawing not open and copy its dimension styles to the current drawing  AccessExternalDrawing

© 2011 Autodesk Access and Store Information for Use Later You can store values in different ways based:  Global variables can hold information while a drawing remains open  Windows Registry allows you to store information that can be accessed across and between different sessions of AutoCAD  Xdata, Xrecords, and custom dictionaries can be stored in a drawing and accessed when a drawing is opened the next time

© 2011 Autodesk Access and Store Information for Use Later  Read from and write to the Windows Registry  WinReg  Assign and read xdata to an object in a drawing  SetXdata-VL and RemoveXdata-VL  ListXdata  Work with custom dictionaries  CreateDictionary-VL and DeleteDictionary-VL  PrintXrec-VL

© 2011 Autodesk Monitor Activity in AutoCAD with Reactors Reactors watch for and react to certain situations to occur in a drawing, to an object, or at the application level. Some of the basic reactors that are available:  VLR-Editor-Reactor  VLR-Command-Reactor  VLR-Lisp-Reactor Reactors in action:  Using a command reactor to monitor the creation of hatch objects  Using an editor reactor to plot a DWF file of the current drawing being closed

© 2011 Autodesk Work with Windows through AutoLISP The Windows Scripting Object allows you to access and manipulate the Windows environment in many different ways.  Identify installed printers  Obtain information about network and local drives  Access hardware on the current machine  List special folders and files on the local machine  Use user and machine specific environment variables

© 2011 Autodesk Work with Windows through AutoLISP Harness the power of Windows:  Work with the Windows shell and special folders  CreateDesktopShortcut  Access and write to environment variables  ExpEnvStr  GetEnvStr  SetEnvStr

© 2011 Autodesk Work with Microsoft Office With the Microsoft Office COM libraries you work with:  Word and DOC/DOCX document files  Excel and XLS/XLSX spreadsheet files  Access and MDB database files  Among much more…

© 2011 Autodesk Work with Microsoft Office Pass and get information to and from Microsoft Office applications:  Work with Word  PrintMSWordDoc  CreateMSWordDoc  Work with Excel  ExtractDrawingToExcel  UpdateDrawingFromExcel  Work with an Access MDB file using DAO or ADO  AccessDatabase

© 2011 Autodesk Not ActiveX Related, but New to AutoCAD 2012 (Win/Mac) AutoCAD 2012 introduced four new functions that allow you to emulate methods of the COM library. The new functions are:  dumpallproperties - Outputs all the properties and their current value for the specified entity  getpropertyvalue - Returns the current value of the specified property for an entity  ispropertyreadonly - Returns T or nil of the specified property for an entity is read- only or not  setpropertyvalue - Sets the specified property to a new value for an entity

© 2011 Autodesk Final Questions… ??? Going Once… Going Twice…

© 2011 Autodesk Closing Remarks Thanks for choosing this session, and do not forget to complete the evaluation. If you have any further questions, I can be reached at: twitter: Enjoy the rest of the conference.

© 2011 Autodesk Autodesk, AutoCAD* [*if/when mentioned in the pertinent material, followed by an alphabetical list of all other trademarks mentioned in the material] are registered trademarks or trademarks 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. © 2011 Autodesk, Inc. All rights reserved.