• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
  • CADnotes on YouTube
You are here: Home / AutoCAD / Dynamic Block Tutorial #3: Door

Dynamic Block Tutorial #3: Door

August 27, 2009 by Edwin Prakoso 35 Comments

This is the last object we are going to create using AutoCAD dynamic block. We are going to create a door. Basically it’s not that different with what we did with dynamic block before. But this time, we are going to learn about action properties in dynamic block. We are going to use wipeout as well.

Now, open your previous dynamic block tutorial file. We are going to create all of our dynamic blocks in a single AutoCAD file. This file will be our block library. We will create several dynamic blocks here. Don’t loose it until we finish our tutorial.

Creating the Geometry

In your AutoCAD file, create a new layer: A-Door, with color: blue, and lineweight: 0.09 mm. Set this layer as current layer.

Draw a 50×150 rectangle as the frame. Copy it to it’s right with 700mm distance. Draw a rectangle 30×650 as door panel. Then draw an arc for swing symbol to complete it.

door geometry

The last thing we are going to add is a wipeout. Activate it, and draw a rectangle wipeout that covers the whole door width.

wipeout

You will see the door frames are covered by the wipeout. Select the wipeout, right click, then from context menu select draw order>send to back.

send to back

Why do we use wipeout? We are going to host our door to a wall. We don’t want to trim or modify our wall after door placement. And modifying the wall length will be reported incorrectly. So we add wipeout to cover our wall later. We will try this at the end :)

Now as usual, create a block from this object. We will create it as dynamic block. Give it name ‘Single Door’. You can define insertion point wherever you think appropriate. Open your block in block editor.

Adding Parameters and Action

We are still using linear parameter. Add a linear parameter as below.

door parameter

Delete the left arrow. Or you can change ‘number of grips value’ to 1 in properties palette.

There are 3 action we need to add, based to this parameter:

1. Add a stretch action to stretch our door width. Similar to what we do with adding action to dynamic block wall. This time we only need to create a small rectangle to include the right door frame and the wipeout.

stretch width action

2. Add scale action to resize the arc door swing symbol. This action is very simple to add. Just select the parameter, then select the arc. [ENTER] to finish.

3. Add another stretch action for resizing the door panel. Only select the door panel when this action ask you to select object.

door panel action

Parameter and Action Properties

Placing those action is easy I believe. But we are not finish yet. We are going to limit the size. We don’t want AutoCAD users to change the door size without a guidance. We will change some parameter properties just like we did when we create column. Select the parameter. Change the Dist type to ‘List’ and click the … button to input distance value list.

Don’t forget to change this parameter name to something like ‘width’ or ‘door width’.

*You may want to use Increment. But since the last time we used it, I think it will be better to use list now.

parameter value set

Add more values to define your door width.

distance list

The last one, is changing an action properties. Not only parameter has properties! Remember the stretch action for the door panel? Where do you think the door panel will be stretch? Horizontally!

We need to change a property to override this behavior. Select this action, open your palette property. Under overrides category, change the angle offset to 90 degrees.

action overrides

This will override the stretch action, it will stretch the door panel vertically even the parameter is stretch horizontally.

Ok, we are done! Save block, and close block editor.

save block

If you have difficulties with the tutorial, you can watch this video. But sorry, this video don’t use WIPEOUT. But shouldn’t be a problem, because we are emphasizing on parameters and actions.

One more thing. We still can see our wipeout frame. Let’s turn it off. Activate wipeout, then type F [ENTER] to activate frame option. Type OFF [ENTER] to turn it off.

Command: WIPEOUT
Specify first point or [Frames/Polyline] <Polyline>: F
Enter mode [ON/OFF] <ON>: OFF
Regenerating model.

Try to stretch your door and don’t forget to try placing your door at walls!

door

*Notes:

  1. If you can’t see the wipeout covering your wall, select your wall and change the drawing order: send it to back.
  2. You might want to add flip actions so you don’t need to mirror it.

About Edwin Prakoso

I work as a Solution Consultant in Datech Solutions, Tech Data Indonesia. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn. If you want to have my new articles sent to your email inbox, you can subscribe to the newsletter.

Filed Under: AutoCAD Tagged With: dynamic block tutorial

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

35 Comments
Inline Feedbacks
View all comments
Clemence
Clemence
4 years ago

What autocad dou you use?I want to create a door block but i cant catch up your steps ! i dot see the menu’wipeout’ in my autocad 2007? Can you please do a tutorial video to show these steps when using autocad 2007

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Clemence
4 years ago

WIPEOUT is available since AutoCAD 2004. Have you tried to type the command in the command line?

0
Reply
Ian Surplice
Ian Surplice
6 years ago

I can not get the door to stretch up watrds it stretches across to the right.

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Ian Surplice
6 years ago

It looks like you haven’t set the angle offset.
Have you checked this property?
Angle property

0
Reply
zoe
zoe
8 years ago

hi,my dynamic door works well, but the wipeout did not work .
Here is the file:https://www.dropbox.com/s/juo7ixhvqx46412/dynamic%20door.dwg?dl=0
Hope you can help me

0
Reply
Arqetec
Arqetec
9 years ago

Anyway to make this work with a 45° angle and flip points can't get it to work

0
Reply
Cadmasta
Cadmasta
Reply to  Arqetec
9 years ago

I tested also with 90° and the flips dont work the door shrinks

0
Reply
Prashanta Bhaumik
Prashanta Bhaumik
10 years ago

Hello Edwin
How can I convert a drawing which has no block definition with blocks like i have column layer and i want column sizes(parameter) varying for different columns in the drawing

0
Reply
Børre Haugen
Børre Haugen
10 years ago

Hello Edwin!

This is my first attempt on blocks in general, and i kinda got it working. But i would prefer to have the door with the width parameter to the outer end of the door frame, which will be more logic regarding actual door sizes. This gives me a problem with scaling the arc, and what i'm looking for is something like a "invisible parameter" that isn't resizable in itself, but scales to the main width. Then the arch could be relative to this "invisible parameter".

Thank you for this tutorial, it really helped me, and i even figured out how to successfully add a wall thickness parameter :)

0
Reply
« Previous 1 2 3
wpdiscuz   wpDiscuz
Join Our Free Email Newsletter
  Thank you for Signing Up
Please correct the marked field(s) below.
1,true,6,Contact Email,2 1,false,1,First Name,2 1,false,1,Last Name,2

Featured

best training

The Best, the Rest, the Rare: 100 AutoCAD Tips You Should Know

A compilation of AutoCAD tips. Read all 100 of them to increase your productivity!

Recent Articles

  • Revit 2024.1 Update is Released
  • What’s New in Revit 2024: Bending Detail
  • What’s New in Revit 2024: The Dark Theme

Advertisement

New on CADnotes

  • Revit 2024.1 Update is Released
  • What’s New in Revit 2024: Bending Detail
  • What’s New in Revit 2024: The Dark Theme
  • Autodesk Build: Using Assets for Progress Tracking
  • My Home on the ACC Unified Platform

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2023 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz