Door Label Lisp Routine with Field

Door Label Lisp Routine with Field

jeff_Moskovciak
Enthusiast Enthusiast
160 Views
4 Replies
Message 1 of 5

Door Label Lisp Routine with Field

jeff_Moskovciak
Enthusiast
Enthusiast

Hi, I have a lisp routine that create a door label in mtext based on the dor AEC Door's style and size. For example, if it's a 3'-0"x8'-0" interior door, it displays as 3/0. If it's an exterior door, it displays as 3080.

 

I'm trying to turn this label into a field that can update the size automatically, and possibly the text label format if it changes from an interior door to exterior.

 

Any guidance on how to do this is much appreciated. 

 

Thank you. 

0 Likes
161 Views
4 Replies
Replies (4)
Message 2 of 5

David_W_Koch
Mentor
Mentor

Why not use a Schedule Tag?  It could display the results of a formula property that transforms the Door's width and height into the desired format and would update if the size of the Door is changed.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 3 of 5

jeff_Moskovciak
Enthusiast
Enthusiast

Hi David, we actually have a custom doortag, but we've found them more difficult to manage when it comes to things like mirroring plans. 

0 Likes
Message 4 of 5

pendean
Community Legend
Community Legend

@jeff_Moskovciak wrote:

...more difficult to manage when it comes to things like mirroring plans. 


How? Unless you use static text inside your static custom blogs (aka avoid using attributes or creating dynamic blocks) mirroring hasn't been an issue for quite some time now.

0 Likes
Message 5 of 5

jeff_Moskovciak
Enthusiast
Enthusiast

Every time you set the doortag, you have to specify "NO" to constraining the tag to the object. This is important when the tag is angled per the door swing, otherwise it does not retain it's position when the plan is mirrored. This becomes a very tedious process.  

 

I have a routine that labels all doors and windows with MTEXT, and rotates the text accordingly. Some labels need to be adjusted, but it is a way quicker process than using AEC Door/Window tags. 

 

I really like that AEC Door/Window tags update automatically, which is why I'm trying to bring that functionality to my routine. 

0 Likes