Jump to content

Looking for a Room Dimension tag routine


Grigs

Recommended Posts

Someone came to me and asked if it was possible to draw a rectangle and have the x and y dimensions placed in the center along with a attribute. For example, you draw a 8'x10' rectangle and in the middle of it would be placed an editable attribute and right below it the X and Y dimensions of the rectangle. Is this doable?

Link to comment
Share on other sites

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

  • Grigs

    8

  • SLW210

    6

  • qball

    4

  • Spinxy

    2

Top Posters In This Topic

Posted Images

I figured it might have to do with fields. Just not sure which. There are alot :) I was able to get the perimeter but not the width and height

Link to comment
Share on other sites

I believe you want to use object. It will be easier if you use individual lines to make up the rectangle and use object and length. A dynamic block would be good to make a stretchable rectangle if needed and also keep everything in a neat package. If you use a continuous polyline for the rectangle it will give you the perimeter and you will need to do a little math to get the value for the sides.

Link to comment
Share on other sites

Thanks. I tried it with just lines and it gets the correct values now. Just trying to package it into a nice, neat dynamic block.

Link to comment
Share on other sites

Do you need a dynamic block ? maybe a normal one of size 1x1 then scale x & Y is room size with attributes as fields = scale

Link to comment
Share on other sites

Do you need a dynamic block ? maybe a normal one of size 1x1 then scale x & Y is room size with attributes as fields = scale

 

Good one BIGAL! I like that idea.

Link to comment
Share on other sites

Ok, I got that. I had to make the square a block first before the Scale X, Y and Z showed up. What I did was create a 1x1 square and made it a block, I then used the mText command to add the X and Y Scale fields. This works. But, if I try to make those into a block and scale it, the fields don't change. I have to explode it first then it will update when scaled.

Link to comment
Share on other sites

Tried both. If I make the square and text/attribute into a block, the fields do not update. I have to explode the block in order for the fields to change. Also, if I insert the block with a different X and Y scale and then goto explode it, the text reverts to single line text. But if I insert it with a uniform scale and explode it, it stays as mText.

Link to comment
Share on other sites

I think the simplest route is to make the dynamic block from individual lines or plines and use the length field.

Link to comment
Share on other sites

scaling the 1x1 block seems complicated because you have to use the properties box and already know the x and y to scale. Because scale by reference scales uniformly, no?

 

This might work (for rectangular rooms only)

 

edit: no dynamic blocks in 2007 is there?

roomtag.dwg

Link to comment
Share on other sites

scaling the 1x1 block seems complicated because you have to use the properties box and already know the x and y to scale. Because scale by reference scales uniformly, no?

 

This might work (for rectangular rooms only)

 

edit: no dynamic blocks in 2007 is there?

 

FYI....I believe 2006 was first with dynamic blocks. :thumbsup:

Link to comment
Share on other sites

Hi qball,

Can i ask how you made that roomtag file. i am trying to get my dynamic blocks to appear like this but can't (in an indivial file with dynamic properies).

the closest i get is to make a dynamic block in a drawing, re-inserting it, then wblock to get it to it's own file. these however need exploding when inserting drawings.

Thanks

Link to comment
Share on other sites

open a new blank file, open Block Editor, make the block and save the file.

If you're doing it within a drawing, the way you mentioned with Wblock is the only way I know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...