AutoCAD Architecture Customization

Reply
New Member
Posts: 1
Registered: ‎03-11-2013
Message 1 of 4 (289 Views)

Residential Opening Tags

289 Views, 3 Replies
03-12-2013 01:19 PM

I need an opening (doors and windows) tag style that shows the opening dimensions as numbers only. So for instance, the tag for a 2'-8" x 6'-8" door would be 2868.

 

The tag needs to automatically update when the opening size is changed. So for instance, if I change the door size from 2'-8" x 6'-8" to 3'-0" x 8'-0" the tag needs to automatically change from 2868 to 3080. I do not want this tag to simply call out a door style. I want it to dynamically change when the width and height are edited.

 

The tag should be aligned with the door opening, not the door swing.

 

What would be even better is a window style and a door style with the tag included in each so that I do not have to layout then annotate. So it is one step. The ability to turn off the tag and/or the ability to text override the tag would also be a plus.

 

I am just now switching from a program called SoftPlan that does all of this out of the box, so I would like to stick with the same level of efficiency for residential design.

 

 

*Expert Elite*
Keith.Brown
Posts: 947
Registered: ‎03-13-2008
Message 2 of 4 (274 Views)

Re: Residential Opening Tags

03-12-2013 02:28 PM in reply to: jcawthorn

You will need the [Width] and the [Height] property set definitions to create the property set definition that you want.  Inside of the DoorObjects property set create a new formula based property set definition and call it Size

 

Then paste the following formula into the formula box.  Replace [Width] and [Height] by selecting them from the Insert Property Definitions box below.  They will be under DoorObjects.

 

WidthArray = Split("[Width]", "-", -1, 1)
HeightArray = Split("[Height]", "-", -1, 1)

Width1 = Replace(WidthArray(0), "'", "")
Width2 = Mid(WidthArray(1), 1, Len(WidthArray(1))-1 )

Height1 = Replace(HeightArray(0), "'", "")
Height2 = Mid(HeightArray(1), 1, Len(HeightArray(1))-1 )

RESULT = Width1 & Width2 & Height1 & Height2

 


The first two lines of the formula strips the hypen from the Width and Height and places the results into an array.

The second two lines of the formula takes the WidthArray and removes the foot and inches symbols

The third two lines of the formula takes the HeightArray and removes the foot and inches symbols

 

Since the inch symbol causes some problems with strings I needed to replace it different than with the foot symbol.  To do this I used the MID function to return all but the last charactor of the string.

 

The last line rebuilds the results into a single entity.

 

Some things to note.  You should set your units in the property data format used by this property set definition to round to the nearest inch and to always display 0 when needed.  Otherwise I think this will handle all situations as long as the input is in the following format      XX'-YY" x XX'-YY"

 

Drawing included with Sample.  I am an MEP Engineer so i used autocad mep with an autocad mep template but the doorobjects property set is included in the property sets along with a door with the psd attached.  2013 format.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
*Expert Elite*
Posts: 2,315
Registered: ‎12-09-2003
Message 3 of 4 (266 Views)

Re: Residential Opening Tags

03-12-2013 06:26 PM in reply to: jcawthorn

In addition to Keith Brown's samples, you may find these examples of interest.  They were originally posted some time back (when ADT 2004 was current), and the original attachments got lost in the shuffle during a reformatting of the Discussion Groups.  The links below go directly to a post in the thread where I had reposted the attachments.

http://forums.autodesk.com/t5/AutoCAD-Architecture-Content/Simple-Door-Tags-ADT2004/m-p/477041#M801

http://forums.autodesk.com/t5/AutoCAD-Architecture-Content/Simple-Door-Tags-ADT2004/m-p/477042#M802

David Koch
*Expert Elite*
Keith.Brown
Posts: 947
Registered: ‎03-13-2008
Message 4 of 4 (261 Views)

Re: Residential Opening Tags

03-12-2013 06:34 PM in reply to: David_W._Koch

I like your version better David,  I didnt realize there was an unformatted height and width.  I am doing some manipulations of the height and width in a string format while you are working with the raw data.  That is a much cleaner solution.


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community