Create TextElement with C#

rita.aguiar
Advocate
Advocate

Create TextElement with C#

rita.aguiar
Advocate
Advocate

How can I create a TextElement through the Revit API in C#?

Any help would be appretiated.

Reply
1,145 Views
5 Replies
Replies (5)

jeremytammik
Autodesk
Autodesk

Please search the Internet before raising a new question.

 

You can use the various overloads of TextNote.Create:

 

https://www.revitapidocs.com/2020/465d02a9-8bc8-8e9f-cc57-642c2626e4d6.htm

 

Samples demonstrating its usage are available in The Building Coder blog and the Revit SDK samples.

 



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

0 Likes

rita.aguiar
Advocate
Advocate

I should have reformulated my question.

I want to create a Label of family Title Blocks which is of type Text Element.

I do not want to create an element of type Text Note.Convert.png

 

Label.png

 

0 Likes

rita.aguiar
Advocate
Advocate

@jeremytammik 

 

I meant System Family Label

0 Likes

stever66
Advisor
Advisor
0 Likes

rita.aguiar
Advocate
Advocate

@stever66 

Thanks. I already looked up that post.

However, I do not want to create a new System Family Label Type. I want to create a new instance of a Label Type on a Revit sheet.

Do you know how I can do this?