See the top rated post in this thread. Click here

Results 1 to 4 of 4

Thread: Can you have prefixes or suffixes on attributes?

  1. #1
    Login to Give a bone
    0

    Default Can you have prefixes or suffixes on attributes?

    Hello,

    I'm looking to add prefixes and suffixes to block attributes. Is there any option to this?

    For instance, an attribute value of a duct diameter size, with a prefix of the inches symbol and diameter symbol behind it so all you have to input is only the size.

    The input value from the user:
    8

    The final display of the full value:
    8"Ø

    This way the inches symbol and diameter symbol can be formatted correctly with the number, so if this value is 24 the "Ø will move over as the number of characters increase. I could always just have static text in the block but then my text formatting would have to go Right to Left and that is not desired. Any options to this? Thanks in advance!
    Last edited by Wanderer; 2017-02-10 at 02:09 PM. Reason: Please read the link to forum guidelines you were given and please adhere.

  2. #2
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,507
    Login to Give a bone
    1

    Default Re: Can you have prefixes or suffixes on attributes?

    Quote Originally Posted by advidscontact1735833 View Post
    Hello,

    I'm looking to add prefixes and suffixes to block attributes. Is there any option to this?

    For instance, an attribute value of a duct diameter size, with a prefix of the inches symbol and diameter symbol behind it so all you have to input is only the size.

    The input value from the user:
    8

    The final display of the full value:
    8"Ø

    This way the inches symbol and diameter symbol can be formatted correctly with the number, so if this value is 24 the "Ø will move over as the number of characters increase. I could always just have static text in the block but then my text formatting would have to go Right to Left and that is not desired. Any options to this? Thanks in advance!
    Seems pretty straight forward... see attached examples.
    The attribute is right justified and the static text is left justified.. not perfect as far and being centered but it works.

  3. #3
    Member
    Join Date
    2006-07
    Location
    Portland, OR
    Posts
    28
    Login to Give a bone
    0

    Default Re: Can you have prefixes or suffixes on attributes?

    As far as I know there is no simple add suffix command available. There are a few work around options as there always is with AutoCAD.

    1. Dynamic block - since it's a diameter I'm guessing there is a limited number of values you will be using and you can add them all into your block. Yes this will probably require the user to select the proper size after placement in the drawing and may not be the time saver you wanted. Although depending on the way in which you invoke your blocks the selection might be able to be done by keyboard command which leads us to;

    2. A lisp that inserts the block and also asks for the size as a variable which is then used as a part of the string value with the suffix in the actual placement command.

    I tried using a combination of fields and variables before for a project, but it became unstable and unpredictable and I don't recommend that direction.

    Good luck.

  4. #4
    I could stop if I wanted to
    Join Date
    2015-10
    Location
    Central New Jersey
    Posts
    439
    Login to Give a bone
    0

    Default Re: Can you have prefixes or suffixes on attributes?

    Rather than typing in the value you could add a block table, add the attribute to the table and table all the complete values. Then all you need to do is to select the size from a little pull down menu.

Similar Threads

  1. Revision prefixes and suffixes
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2015-01-07, 08:55 AM
  2. dimension types need to support default prefixes and suffixes
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2011-12-27, 10:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •