Close
Autodesk | AutoCAD Exchange

Welcome

Close
Autodesk | AutoCAD Exchange

Sign In to Continue

It’s free and anyone can join

Sign In   Register

Benefits:

  • Free access to extensive online eLearning
  • View exclusive content only available to registered members
  • Share your designs
  • Comment, rate and exchange your thoughts and ideas
  • Ask the Industry Experts questions
  • Network, discuss and collaborate on everything AutoCAD

AutoCAD® Exchange

Ask the Expert

 

Mark Douglas

Please download Adobe Flash Player.

About Mark Douglas

Mark Douglas is the Assistant CAD Manager for MKM & Associates, a Residential & Commercial Structural Engineering company located in Santa Rosa, California USA. He specializes in AutoCAD Customization, Dynamic Blocks and all around general knowledge with AutoCAD 2000 through 2010 with more than 7 years of experience. He also uses DWF & Design Review to develop custom office applications for the engineering industry using VBA, AutoLISP & VB.NET. Mark, enjoys playing Ice hockey with friends, and watching his favorite NHL team the San Jose Sharks. Recently he's been contributing customization articles for Augi World magazine. Mark also enjoys holding yearly "What's new in AutoCAD" seminars for local architects in his home town to help them migrate to the next versions of AutoCAD. Mark is always looking to take MKM to the next level and utilizing new AutoCAD features each year helps him make that possible. View Mark's blog In the Dynamic Interface at http://mdouglas.blogs.com.





Company Information:

MKM & Associates is a Structural Engineering firm located in Santa Rosa,
CA, USA. www.mkmassociates.com. We have the experience and creativity to
find engineering solutions that work while taking "Green" products and
new Autodesk technologies to the next level."

 


All Videos with Mark Douglas

  • AutoCAD 2010
  • Tab Commands
  • Sketchy Drawing
  • Publish Steps
  • Insert Block
  • Question #1 - 03-30-2009 01:06pm

    I want to write an application for autocad customization. for example i will just enter the length and width of a rectangle in a questioning window or a vb from and the ok button will give me a dwg of a rectangle. how is this possible and which type of programming language should i choose. also the application will be an exe which will run outside autocad?? please help

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #1 - March 31 2009

      This is possible using a programming language like VB.net. You can get a free download here, http://www.microsoft.com/express/product/default.aspx or download your preferred language. Using VB.net you can build an exe so when a user clicks the OK button, it will launch AutoCAD (Either Visible or not your choice), draw the rectangle you want then close AutoCAD down saving the file. It’s relatively simple. But the catch is you must have AutoCAD installed to draw the data. If you don’t want to use “AutoCAD” you would need to license Autodesk “RealDWG” (www.autodesk.com\realdwg) which will allow you to create DWG’s with no AutoCAD installed, however it’s a expensive.

  • Question #2 - 03-31-2009 09:35am

    In a dynamic Block within a field can you make it round to specific values? additionally can you make it so that it only shows inches instead of feet and inches?

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #2 - March 31 2009

      Yes, to make a dynamic block round to specific values you would need to use a combination of a Lookup Table with a Range. Basically you would need to tell the parameter if you fall between these two values (1” & 4”) the lookup table will display the desired value for you. If you have a bunch of different values you need to round, you can only round up to the nearest inch. (3-1/8” would round to 4”) You can insert a Field into your attribute then suppress the leading zero in the additional format option inside the field editor. I’ve attached a block for you to see what both examples could look like. Hope this helps.


      Attachment: Block.dwg
  • Question #3 - 03-31-2009 09:57am

    Do you intend to leverage the new parametric tools within AutoCAD 2010 and if so, what kind of content will you be creating first?

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #3 - March 31 2009

      We do intend on leveraging the new parametric features, its just now where best to implement it. For our office a Structural Engineering firm, we see it helping in situations like Trusses always attached to edges of Roofs, Floor Joists attached to edges of foundation walls. Floor/Roof joists always in a horizontal or vertical direction in the drawing or even locking hangers or plates to ends of joists. Other instances are the symmetrical tool for rebar in foundations and the equal tool. The Auto Constrain button is nice if used correctly, and can really speed up some simple constraining operations. But its one of those tools you need to pay very close attention to when using. Creating parametric dynamic blocks would also be on my list of things to do, however, I’ve created a dynamic block here in our office for just about every possible thing, so im running short on ideas at the moment on what to create. But new blocks will be done via constraints in the block editor in the future.

  • Question #4 - 03-31-2009 12:47pm

    where to find the vb.net tutorials for autocad. are they available online.

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #4 - March 31 2009

      If you go to the url http://usa.autodesk.com/adsk/servlet/index?id=1911627&siteID=123112 you should see midway down the page a bold header “AutoCAD .NET Labs. This zip file has training material and sample files. You can also download the Object ARX zip file that has some .net samples hidden inside it. Looks like the Developer Network team has posted some “Dev TV” samples that walk you through on how to get started developing with AutoCAD .net. If you are looking for some hard copy references, I strongly recommend a book by Jerry Winters at VBCAD.com that has an AutoCAD .net Level 1 book. I have this book at my side when ever im coding AutoCAD for .net. It’s the book I started from as well.

  • Question #5 - 03-31-2009 01:45pm

    In a polyline I am able to enter a Global width of the true drawing unit distance and would like to do this for the line properties. Is there a way to do this and have it display as global width displays?

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #5 - March 31 2009

      Unfortunately I don’t believe this is possible using the actual line object and AutoCAD’s internal command set. This might be possible through arx or .net coding to manipulate the line object? Or using some sort of workaround utilizing other combinations of stuff. If it was me, and I needed to apply a width to a selected set of lines, I would write a small lisp program like the one attached to select the lines, enter the width then convert each to a polyline and apply the width.


      Attachment: WidLine.LSP
  • Question #6 - 04-01-2009 06:43am

    How to create an attribute for a tittle block having some tags like Project name, Dwg tittle, Company name...

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #6 - April 01 2009

      Well attached is a sample block displaying attributes you described you’d like to have. Basically you need to create a block, if using AutoCAD 2006 or higher click the Open in Block editor button. Then use the ATTDEF command to insert an attribute tag into the block, naming each tag a different name, so there is no name conflicts, (Blocks don’t like them the same). Then in the document tag insert a Field by right clicking in the default tag location and select Insert Field, go to document and that should automatically update as the document changes locations. If you go to the AutoCAD help there are better step by step instructions on how to create attributes but hopefully this gets you started.


      Attachment: Sample-Title.dwg
      Attachment: Sample-Title1.dwg
  • Question #7 - 04-01-2009 09:37am

    Our business is planing to give some AutoCAD training to few of our people. One of the things we have to decide is if we should invest in learning Visual LISP or VBA. Which one is the more accurate for a small business as there is no more VBA editor included with Acad 2010? We are actually running on AutoCAD 2008 but planning to move up to 2010 in the next year.

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #7 - April 01 2009

      My recommendation is definitely do not pursue the VBA route. For the exact reason you stated its not pre-installed anymore and who knows how much longer it will be a viable option to use inside AutoCAD. I don’t program in VBA anymore as it all might one day need to be ported to .Net so im not wasting my time. I would say if there is no programming experience in your business, I suggest starting in Visual Lisp to get customization going in your office, then once you guys need more “Horse Power” and Visual Lisp can’t do some things you want, I would look into using .Net for AutoCAD as you can pretty much do anything with it. There are tutorial links I posted a couple threads up here for you to get started from. Even though I code in .Net there are still many small programs I write directly in Lisp because its quick and easy. So a medium ground between both is good.

  • Question #8 - 04-01-2009 10:00am

    Do you know anything about the Lisp program Labcoor? Does it make a difference if you work with both imperial units and metric units? Our coordinates are not coming up with what is in the Properties of the drawing. We're working on a metric file.

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #8 - April 01 2009

      I have not worked with Labcoor before so I can't say if it makes a difference. As well as very rarely do we work with metric units so coordinates aren’t an issue for us in imperial units. Sorry I was not much help.

  • Question #9 - 04-01-2009 05:55pm

    I CRETEDED A DETAIL BLOCK WITH ATTRIBUTES DETAIL NO. SHEET NO. SCALE. IS THERE ANY WAY WHAT EVER SCALE I INSERT IN MY ATTRIBUTE IT WILL BE USED TO SCALE THE BLOCK. LIKE IF I TYPE SCALE 1:10 IN MY ATTRIBUTE THE BLOCK SHOULD BE SCALED 10 TIMES. THANKS

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #9 - April 02 2009

      I know what you are asking for but its not as simple as multiplying it by 10 times like you would hope. It you are using Annotation Scaling it is that easy, if your office uses annotation scaling let me know and I can get you a sample for that situation. Inside a dynamic block you can setup a scale action. What I did in the attached example is create your detail block at the 1:1 scale factor. (The scale you then would normally scale up 10 times). Now inside the block editor, you will see a linear parameter I have shown on the horizontal line. That will be our reference line. Scale the line up the 10 times from the one end point, then list the line’s length. That is the value for your 1:10 scale. Now undo so the line goes back to 1:1 scale. Then times it by say 20 times, for the 1:20. Continue this for all scales and write them all down. Next place all these lengths of that line inside the lookup table, then reference the lookup table through a field in your scale attribute. This will allow you to pick your scale and the block will update, and show you the correct scale factor (Once you change scales you need to issue a REGEN to update the field.) This is the work around to get what you want, if you are using Annotation Scaling like I said none of this stuff is required. Hope this helps.


      Attachment: SampleDetailBub.dwg
      Attachment: SampleDetailBub1.dwg
  • Question #10 - 04-02-2009 10:50am

    Have you heard of OpenDCL, I hear it makes customizing Acad with Lisp a breeze…

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #10 - April 02 2009

      I have heard of OpenDCL, however I’ve never customized using it as I typically write form based programs in .Net. I have heard many success stories and seen some very nice applications written in it. Here is a link to a helpful site. www.opendcl.com

  • Question #11 - 04-02-2009 01:19pm

    In Civil 3D my Mtext lockes up. I can't select it for editing. Whould you know how to overcome this problem. It is radom.

    • Profile Picture
      EXPERT Mark Douglas
      Reply to Question #11 - April 02 2009

      I’ve seen this issue as well. And like you said its sporadic. My suggestion is to ensure your graphics card is up to date with the latest and greatest drivers. Make sure you have the latest service pack for your Civil 3D and all hotfix’s. If you are running, 2010 version well you may need to wait it out until they develop a hotfix. That’s about all I can think of right now.