Tuesday, April 06, 2010

Autodesk Products and VBA - VBA is Going (Gone) with the Wind

Unless you are a VBA programmer this won't mean much to you, but I felt it was important to let you know a little about futures in AutoCAD programming:

AutoCAD 2011 and AutoCAD-based verticals no longer ship with VBA (Microsoft’s Visual Basic for Applications). The 32– and 64-bit versions are still available as a download from www.autodesk.com/vba-download. VBA will not be supported by AutoCAD 2012. The VBA module will no longer be available as a download then.

 We can point ti Microsoft as the reason for this change. They discontinued the sale of new VBA distribution licenses back in 2007 and they are not planning any further development. This leaves software companies and customers in a bind. Microsoft has promoted the use of VBA as a “universal” programming language only to abandoned it.


This means that programmers need to stop writing new VBA code now and eventually port their VBA code to other APIs. Autodesk was unsure which of Microsoft’s APIs might be the most future-proof one:
 
“We are still at an early stage in evaluating what (if any) in-product IDE should replace VBA. However, at this time, we do not expect to be embedding VSTA into Autodesk products. Revit software is currently the only Autodesk product that incorporates VSTA. However, our review of in-product IDEs will include an evaluation of whether VSTA is the best long-term IDE solution for Revit. Therefore, we encourage Revit add-in developers to concentrate on creating professional add-ins using Visual Studio rather than VSTA when possible.”

The elimination of VBA does not affect AutoCAD’s ActiveX COM (common object model), which was also designed by Microsoft originally.
 
For now, Autodesk’s recommends moving your VBA code to a .net language, such as VB.NET using Visual Studio 2008, including the free Express edition available from www.msdn.microsoft.com/enus/vstudio/aa718373.aspx.
 
Autodesk provides the following resources for migrating VBA code to .net, and plans more in the future:
• AutoCAD VBA to VB.NET Migration Basics – on using .net COM Interop to simplify migration
 <through-the-interface.typepad.com/through_the_interface/2009/04/ devtv-autocad-vba-to-net-migration-basics.html>.
• AutoCAD .NET Developers Guide – contains many comparative samples of native .NET API and the VBA code required to perform the same task (docs.autodesk.com/ACD/ 2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html>.

TIll next time
Bob

Friday, March 26, 2010

Autodesk Virtual Event, April 19th, 2010

Sign up fpr the Autodesk 2011 Virtual Event here:
or
Click on the picture!
See you there!
Bob

Thursday, March 25, 2010

AutoCAD 2011 is here!

What's new in AutoCAD 2011?
  • 175 New Commands
  • 86 enhanced commands and system variables
  • 41 new shortcuts, file types, and aliases
  • 19 undocumented commands and system variables
OK, that's way too much information for one blog entry. You can expect several entries in the near future informing you of the great new features available.

  • How about the ability to control your object visibility independant from the layer visibility! 
  • Can you say Point Clouds? Yes they can now be inserted into your AutoCAD world! 
  • Do you work with constraints that were introduced in AutoCAD 2010?  How about the ability to temporarily relax them for editing?  Yes you can!
  • Apply transparency to your AutoCAD objects in the same way you apply color, linetype and linewidth. Wow are you kidding me!
  • Additional secondary grips on polylines.... Oh my!
  • You are no longer forced to specify a replacement for a missing .SHX file!  Ya-Hoo!
  • New 3D workspaces
I can't stop myself I'm so excited!  I have been looking at this for a few weeks now and today I can tell you about it!  It doesn't stop here.  I'll be back real soon with more of the latest and greatest AutoCAD ever!

Till next time.

Bob

Wednesday, March 03, 2010

X Marks The Spot!

Almost every AutoCAD class that I instruct, be it a basic or advanced course the question comes up, “What is the difference between a DWF and a DWFx?”



DWF is an open format from Autodesk. It has been around since AutoCAD 2005. You can view them and mark them up in Autodesk Design Review (Markups available in releases 2009 and 2010). Initially they were a single sheet file but have now evolved into multi-sheet. Autodesk Design Review supports all versions of DWF.


Now, what about that ”X”? For programming purposes, open formats can be based on XML. This is eXtensible Markup Language. Microsoft’s version is called XPS-XML Paper Specification. Microsoft uses it to communicate with printers as well as other applications. Autodesk reprogrammed the DWF to XML to make dwf more widely acceptable in the programming world. This enables a DWFx file to be viewed by Microsoft Internet Explorer.


So, concerning Autodesk Design Review, if you create a DWFx, it can be viewed in Versions 2008, 2009, and 2010. Internet Explorer users can only view the file.


If you create a DWFx and want to use Markup Set Manager to view comment, you will need AutoCAD 2009 or later. Markup Sets were not supported in AutoCAD 2008 even though you could create a DWFx file.


So now you can impress your CAD BFF’s by sharing this Xtra tidbit of information with them!


Keep the lines straight and the circles round.


Till next time


Bob

Tuesday, February 09, 2010

Are You Certifiable? I am!

The AutoCAD 2010 Certification Exams are out and available at your nearby Autodesk Authorized Testing Center.

I took both the Associate and Professional Exam last week.  If you go through my five day AutoCAD 2010 Essentials course or at your local Autodesk Authorized Training Center and get 30 to 60 days of experience you should not have a problem passing both exams.  The Associate exam is 30 multiple choice questions and you have 60 minutes to complete it.  The Professioanl exam has 20 questions and you have 90 minutes to complete.  You will actually use AutoCAD 2010 to answer the questions on the Professional exam.

What are the Benefits of Autodesk Certifications
  • In addition to improving your skill set, earning Autodesk Certification provides advantages and benefits:
  • Enhanced skills and recognition: Autodesk Certification provides validation of your skills and knowledge along with recognition of your achievements.
  • Electronic certificate: Once certified, you receive access to an electronic certificate, suitable for printing and framing. You may reprint this certificate as often as you like.
  • Certification logo: After passing the certification exam, you will receive the official Autodesk certification logo identifying you as Autodesk Certified, which you can use on business cards, résumés, and letterhead.
  • Immediate diagnostic feedback: Whether or not you pass the exam, you will receive immediate feedback on areas to improve your Autodesk application skills.
  • Listing in the Certified Professionals Database: Once certified, you can choose to have your contact information and certifications listed in our publicly available database. This is an excellent way to demonstrate your certification status to prospective employers.
If you have any questions you can comment on my Blog, Follow me on Twitter (www.twitter.com/SrAppEngr) or you can also find me on Facebook.  If you live in the midwest You can find a course schedule and schedule a test by going to http://www.mwcad.com/ or call Mid-West CAD at 1-800-279-3221.

See you in a class soon...

Bob

Wednesday, February 03, 2010

Asleep at the Wheel

In my years of training I have found that AutoCAD users use the ZOOM and PAN command more than any other command in AutoCAD. The reason for this is they are always searching for things to edit in their drawing. There are a few things that you can do to optimize your performance that allows you to zoom around your drawing without ever entering an AutoCAD ZOOM command.

Settings that effect your mouse performance are:
• ZOOMFACTOR
• MBUTTONPAN
• ZOOMWHEEL


ZOOMFACTOR
You can adjust the zoom percentage by adjusting this value. The initial value is set to 10. You can enter an integer value between 3 and 100. The figure represents the change in zoom level for each increment of wheel rotation. As an example with the value set to 10, each increment of the turn of the wheel changes the zoom level by 10%.

MBUTTONPAN
This system variable toggles the Pan functionality of the wheel. The MBUTTONPAN must be set to one (1) so that when you depress the wheel it will activate the PAN command. When MBUTTONPAN is set to zero (0) you’ll get the Object Snap popup menu.

ZOOMWHEEL
ZOOMWHEEL toggles the direction of transparent zoom operations when you scroll the middle mouse wheel. When set to zero (0), scrolling the wheel forward zooms in; scrolling the wheel backwards zooms out. Set to one (1) , scrolling the wheel forward zooms out; scrolling the wheel backwards zooms in. (You can mess with your co-workers head by changing this value. I do not endorse such actions!)

In Conclusion:
You can Zoom and Pan using the wheel. Roll the wheel away from you to zoom in; roll the wheel towards you to zoom out. When you zoom in and out, AutoCAD zooms in and out around the location of the cursor. Press the wheel down and move the mouse to pan. Double-click on the wheel to zoom extents.

For you gamers, hold the CTRL button on the keyboard while you hold down the wheel and move the mouse to use another mode of panning called Joystick Pan.
Now you are Wheel smart! Take care and thanks for viewing my Blog!
Later
Bob

Friday, January 15, 2010

Share Your Work with Autodesk Design Review 2010

A powerful tool that you might be ignoring is Autodesk Design Review 2010. The good news is IT'S FREE! If you have AutoCAD 2010 it's on your DVD, if not you can go get it at the link below or simply click the title of this post.

What does it do? Design Review allows you to share your work with team members and consultants. You can publish and share drawings, models or both from you Autodesk applications including AutoCAD, Revit, Inventor, Civil 3D, and MAP 3D. This neat little package allows the non-CAD user to view and analyze a design. You can combine multiple PDF's, DWF's, and DWG's into a single DWF file, and add a digital signature. Other features include Ribbon Interface, Mark up Tools, 3D Navigation, Batch Printing, Measurement Tools, and support of georeferenced map data.

To learn more and download go to: http://www.autodesk.com/designreview

Till next time.

Bob

Tuesday, January 05, 2010

AutoCAD 2010 Subscription Advantage Pack

Are you a subscription customer?  If so check out the Subscription Advantage Pack for AutoCAD 2010.  The features are amazing.  This 23 minute video gives you a heads up on how to install and use the functionality.

Friday, October 02, 2009

Scaling Multiple Blocks

Here's a handy way to scale up mutliple blocks in your drawing and have them keep their basepoints. Watch the video to see how easy it is!

Friday, July 10, 2009

Working with PDF's in AutoCAD 2010

The new EXPORTPDF command exports drawings as PDF files and allows you to set individual page setup overrides on a sheet-by-sheet basis in a dialog box interface. The resulting PDF is opened in Acrobat Reader automatically, (Adobe Reader V7 or newer is required). In Reader you can search for text in a PDF generated with AutoCAD. The Save As PDF dialog box contains the same options as the ExportDWF dialog box.


The ExportPDF Dialog box will look like this:

The right side of the dialog box shows your settings:




Upon clicking on the options button you get this the options below:















Here you can modify some useful setting. As you can see, PDF capabilites are vastly inproved in this release of AutoCAD! Check it out!



Tuesday, June 16, 2009

Object Size Limits in AutoCAD

In previous versions of AutoCAD, no single object could be larger than 256 MB. In AutoCAD 2010, the object size limit has been increased to at least 4 GB depending on your system configuration. These large objects area not backward compatible though. A new compatibility option has been added to the Open and Save tab of the OPTIONS dialog box.

Thursday, May 07, 2009

Hatch Boundary Not Found


How many times have you used the "pick points" option when hatching only to have it tell you "Valid Boundary Not Found"? Then you have no idea where the problem lies within your drawing. AutoCAD 2010 fixes this issue. Now it will put two red circles at the open portion of the boundary and displays a dialog box with explanations!!! No more guesswork! Thank you Autodesk!

Friday, April 17, 2009

Get Lynn Allen's Tips and Tricks for AutoCAD 2010!

AUGI Exclusive! - AutoCAD 2010 Tips & Tricks Get a sneak preview of AutoCAD 2010 Tips and Tricks written by Autodesk Technical Evangelist, Lynn Allen.
Click on the title to go there!


Bob

Monday, April 06, 2009

Get a Grip!

New grip options for hatch objects without boundaries.



Once a hatch is create you can modify it’s boundaries with the Remove Boundary, Recreate Boundary, or the new Select Boundary Objects tool. You can find this new option in the Boundaries Section of the Hatch Edit Dialog box.









You can use this tool to display all of the grips available in a hatch boundary as well as the centroid grip. This can be particulary helpful whe you are editing associative hatches as normally you would only get a grip at the centroid.














AutoCAD 2010 non-associative hatches will display grips at each corner, and edge grips at the midpoint of each side. This allows you to add a vertex, convert a linear edge to an arc or an arc to a linear edge as well as change the midpoint of an arc.














To add a vertex on the edge grip at the midpoint of a linear edge click on the edge grip then click it again in a new location.







To convert a linear edge to an arc, click on the edge grip and press the key. This converts the entire linear edge with an arc. You can drag the midpoint to you desired location.

You can edit the arc by clicking on the edge grip, change the location of the arc midpoint or convert it to a line.

Pretty cool stuff! Happy Grips to you!
Bob

Wednesday, March 25, 2009

Flashback to the past!

As I was surfing around this evening I ran across an AutoCAD picture that took me way back in time. I attached to my header above. It is the infamous drawing of the Space Shuttle. It is pictured in AutoCAD Version 2.18. You old timers will certainly remember this drawing. It was drawn in 2D. I remember my boss at the time loved that picture. Everytime a client would come in the door he would bring them into my CAD room and have them watch as I plotted out a copy of it for them on our Calcomp 1040 pen plotter. I went through a lot of paper and pens back then. Ah the memories.

Does that take some of you back in time?

Bob