How get correct text of Independent tag

How get correct text of Independent tag

Anonymous
Not applicable
2,393 Views
8 Replies
Message 1 of 9

How get correct text of Independent tag

Anonymous
Not applicable

Hello!

 

I try get text from pipe tag, like on the picture:

 

 

pipe tag.png

 

My pipe tag is family with 3 labels.  In property "tag text", the text exists as one line, and not 2 lines as on the label.

How can I get the text in two lines?

 

0 Likes
2,394 Views
8 Replies
Replies (8)
Message 2 of 9

jeremytammik
Autodesk
Autodesk

Maybe the text shown in the RevitLookup snoop form is all the text there is.

 

The line break in the middle may be caused by text formatting, e.g., fitting it into s specified width, that the text itself knows nothing about.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 9

Revitalizer
Advisor
Advisor

Hi,

 

RevitAPI.chm says:

 

"IndependentTag.TagText

 

The text associated with the tag. If there are several strings assiciated with the tag, the strings will be returned concatenated."

 

You clearly can see a gap between "CW DN" - I think that's the snoop tool's way to display the line break.

 

Just check the real string returned by the TagText property and check the separator.

 

Revitalizer

 




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 9

Anonymous
Not applicable

The real string does not have a separator (already checked programmatically)

0 Likes
Message 5 of 9

aclarke
Advocate
Advocate

Edit the family, Select the label and expand the text box.

When I look at a tag in snoop with more than one label filled out, there is not a space between the first, second and third label information.  So I am thinking your text box is just too small for the text width, simply expand the text box in the family editor to meet your needs.  If you want text on two lines, fill the first and second label parameter out separately and they should stack accordingly as long as the text box is wide has enough to fit the words.

 

textbox.pngIMAGETAG.png

Message 6 of 9

Anonymous
Not applicable

Jeremy, good afternoon.
Could you send me a code, to get
independent tag.
Thank you in advance.
claudiosouzacc@gmail.com
Rio de janeiro Brazil

0 Likes
Message 7 of 9

jeremytammik
Autodesk
Autodesk

Dear Claudio,

 

Most definitively not.

 

I am not here to serve you.

 

My job is to encourage you to do it yourself.

 

We do not want to feed you, we want you to learn to fish!

  

For instance, you can search the Internet for 'revit api independent tag':

  

https://duckduckgo.com/?q=revit+api+independent+tag

  

Or, simpler still, you can search this forum for 'independent tag'.

  

I see numerous hits.

  

Why waste your time waiting for me to answer?

  

And waste my time doing this job for you?

 

Sorry for being so blunt, but can you imagine how many times I have experienced this?

   

Thank you for your understanding.

   

Cheers,

  

Jeremy

   



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 8 of 9

Anonymous
Not applicable
Jeremy,
I'm sorry for the inconvenience caused. In Brazil, we do not have
facilities to get a raw like this. more like you said, I will continue to
face it alone, and maybe I can.
Thanks again for your attention.
Claudio- Brasil.
0 Likes
Message 9 of 9

jeremytammik
Autodesk
Autodesk

Dear Claudio,

 

I am sorry to hear that your facilities in Brazil are more limited.

 

I do not know what you mean by 'get a raw'. From the context, I assume it means 'perform Internet search'?

 

I assure you, you do not need to face the Revit API questions alone... I do not believe anyone could ever do that.

 

Please do feel and enjoy the full support of the community and this forum.

 

Many, many answers are already available here.

 

Best regards and good luck!

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder