How to define size to textbox?

How to define size to textbox?

Anonymous
Not applicable
2,198 Views
4 Replies
Message 1 of 5

How to define size to textbox?

Anonymous
Not applicable

Hello,

 

I am Brazilian, and I started studies with revit API and Macro Menager.

 

My doubts is how to size the textbox?

 

I would like to scale textbox as text size.

 

 

 

Revit.JPG

 

thanks for help.

0 Likes
2,199 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

1. Work through the getting started material:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

2. Install and use RevitLookup:

 

https://github.com/jeremytammik/RevitLookup

 

3. Set up the textbox by hand the way it is initially. Explore its propoerties and parameters with RevitLookup. Modify it manually to be the way you would like. Explore it with RevitLookup again and note the differences.

 

4. Start exploring how to programmatically achieve the same differences.

 

I hope this helps.

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 5

arnostlobel
Alumni
Alumni

Actually, it is quite easy to do in Revit 2016. Two of the four TextNote.Create method take a width that determines the with of the new Text note. The other two methods do not take a width, which will cause the the created text note grow with the text length. Height of a text note is never specified explicitly - it is always calculated from the text content of a text note - in other words, the height is always set to fit the text.

Arnošt Löbel
0 Likes
Message 4 of 5

Anonymous
Not applicable

Helo,

 

I'm finding difficulties to install Revit Lookup, I found the following problem:

 

erro revit.PNG

 

Am I doing something wrong?

What's the solution?

 

Please

 

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

It looks as if your add-in manifest is not pointing at the correct DLL location.

 

Please do work thorugh the getting started material and all will become clear.



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

0 Likes