Automatic insertion angle in Dynamic Blocks
Print This Post
![]() |
Author | Erhan Toker |
| Profession | Architect M.Sc. | |
| Autodesk Authorized Consultant | ||
| Software Specialist | ||
AutoCAD 2006 and higher versions
In this article, I will explain how to make a smart block which determines the angle of the line over which the block is placed and aligns itself to that angle.

Fig. 1
Of course, I am assuming that whoever tries to get use of this article should have enough knowledge about dynamic blocks or have read my articles dynamic blocks I, II and III. All of their links are given at the beginning of article. In order to start our block, we first enter dynamic block editor. Here, I drew a simple washbasin. You can start with a simple rectangle. Insertion point of our block will be as shown in Fig. 2.

Fig. 2
Then, let’s assign an ALIGNMENT parameter to the marked point (Fig. 3).

Fig. 3
While assigning the parameter, mark the ALIGNMENT TYPE as TANGENT. I would like to remind you that if we select PERPENDICULAR here, then our block will be perpendicular to the entity over which it is placed.
Specify alignment direction or alignment type [Type] : T
Enter alignment type [Perpendicular/Tangent] : T
Specify alignment direction or alignment type [Type] : 0
Aligning parameter does not require any operation. As soon as you assign the parameter, it will look like as shown in Fig. 4.

Fig. 4
As we have finished our work, now it is time to close the block editor and have a look at how good we have done. Let’s run the usual INSERT command that we always use and select the insertion point of the block as the midpoint of a line that is not straight but angular. Then, you will notice that our block will be immediately inserted as aligned to this line. However, it still needs some practice to determine which side it will be placed. Alignment will be towards the side where you approach the line. You can easily understand this by making some practice.
Technorati Tags: AutoCAD, blocks, dynamic blocks
Read in other languages:
Similar Posts
Rate this article:


June 25th, 2007 18:14
How can I make text in a dynamic block always at “0″ no matter what the angle of the block is?
January 3rd, 2008 23:27
Yes I would like to know this two.
April 4th, 2008 09:55
thank for all teachers on this websit.
April 7th, 2008 23:18
I’ve found that if you create a separate node in the dynamic block for text, you can create a rotation parameter that rotates everything except the text, then set the default rotation in the dynamic block.