• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD P&ID

    Reply
    Valued Contributor
    Heckmeck
    Posts: 53
    Registered: ‎10-10-2011

    Attribute Blank Space

    490 Views, 6 Replies
    11-07-2012 11:13 PM

    Hi Forum!

     

    I attached to images which describe my problem.

    I want to have a blank space in my attribute text, for example:

     

    Pressure: #(TargetObject....)

     

    In the documentation, it works with blank spaces, however if I try, it doesnt.

     

    What can I do here?

     

    Thanks for your help!

     

    Please use plain text.
    Distinguished Contributor
    Rave.Tam
    Posts: 144
    Registered: ‎05-19-2011

    Re: Attribute Blank Space

    11-08-2012 02:42 AM in reply to: Heckmeck
    It doesn't work from properties palette because AutoCAD does not allow space inside attribute. You should edit that using edit annotation tool (#). It bypass the UI limitation
    If my post answers your question, please click the "Accept as Solution" button.

    Check out my blog http://lazcad.com
    Please use plain text.
    Valued Contributor
    Heckmeck
    Posts: 53
    Registered: ‎10-10-2011

    Re: Attribute Blank Space

    11-08-2012 07:12 AM in reply to: Rave.Tam

    Unfortunately that does not work for me.

     

    I either get an ()# in front of my desired text with blank spaces, or all letters become capital letters and blank spaces produce an error.

     

    I could not find a way to achieve blank spaces, mixed letters and no ()# in front of it, at the same time.

     

     

    Please use plain text.
    Distinguished Contributor
    Rave.Tam
    Posts: 144
    Registered: ‎05-19-2011

    Re: Attribute Blank Space

    11-08-2012 07:49 AM in reply to: Heckmeck

    I write my .net plugin to set the attribute from clipboard. 

     

    Another way is to recreate the attribute using "-attdef". When ask for the tag name, just use double quote 

     

    "Pressure: #(TargetObject.DesignPressure)"

    If my post answers your question, please click the "Accept as Solution" button.

    Check out my blog http://lazcad.com
    Please use plain text.
    Distinguished Contributor
    craig.wood
    Posts: 115
    Registered: ‎02-20-2012

    Re: Attribute Blank Space

    11-08-2012 07:13 PM in reply to: Heckmeck

    Just use Alt+255 for a space character and it will accept it. Also when the attribute generates a "#()", just edit it again to delete the "#()" from your attribute. It will likely make everything all caps when you do it, but it doesn't effect anything. All caps or no caps yields the same results.

     

    Craig

    Please use plain text.
    Valued Contributor
    Heckmeck
    Posts: 53
    Registered: ‎10-10-2011

    Re: Attribute Blank Space

    11-09-2012 12:52 AM in reply to: craig.wood

    Thanks for the tip with Alt+255!

    This works fine, using the ATTDEF dialog.

     

    Using project properties, AutoCAD still rejects the space character.

     

    Your comment with all caps is true concering the attribute itself, but the dumb text in front really gets all in capital letters, which is not wanted by us.

     

    I guess I will live with that....

     

    Some might say: Why don't you make the dumb text via an original text field, why must it be in the attribute? I want to achieve, that my attribute is automatically set to the right place, when I change the dumb text in front and has the same textstyle.

     


    When using the button to insert drawing properties or userdefined properties (dont know the english name of that button right now) this works perfect, by the way.

     

    Thanks again for your answers!

    Please use plain text.
    Distinguished Contributor
    Rave.Tam
    Posts: 144
    Registered: ‎05-19-2011

    Re: Attribute Blank Space

    11-09-2012 03:12 AM in reply to: craig.wood

    great tips!

    If my post answers your question, please click the "Accept as Solution" button.

    Check out my blog http://lazcad.com
    Please use plain text.