Visibility issues in Revit from Dynamo

I’m currently experiencing an issue where I can’t see the text that I created using the TextNote.ByLocation node in Dynamo within Revit. I’m very new to both Dynamo and Revit, so I might be missing some basic steps. After running the Dynamo script, the text note should appear in my Revit view, but it’s not visible. I would greatly appreciate any feedback or suggestions on what might be causing this issue and how to resolve it.

Guess you have an issue with concat and need an aligment…try something here and see if it could help

I believe you’re having issues with concatenating string with a list of string. try doing this way.

I think you might be right, but he doesn’t necessarily need a Code Block
Just remove the third String in the String.Concat node.

image

if you dont wanna use a codeblock then try as here

unfortunately that won’t work as well. this node can’t concatenate lists. at least for me it never worked lol I’m a beginner too though so idk :sweat_smile:

1 Like

yes thats the wrong node in that case…concat joiner every single input

1 Like

the String.Concat was the problem… It now works with code block and the addition node.
now i have another problem where I want to control the decimal points I tried using the Math.Round command but when the number turns to strings I cant control the decimals anymore… does anyone have a solution for this?

String.Length and String.Substring are the solution here.

  1. Use a + node to join an empty string to your numbers which will convert the rounded values to a string.
  2. Use a String.Length to get the number of characters in each Substring.
    Subtract 6 and add the number of rounded digits to each length.
  3. Use a String.SubString node to get the characters from index 0 to the precision value (step 2) from your initial string (step 1).
  4. Use another + node to add “ sf” to each string.

Sounds like a lot but it is less steps than you’d think, and understanding this will help you with more advanced things like geometry manipulation and such.

1 Like