ModelText.ByTextSketchPlaneAndPosition


#1

Any reason why it’s only working in a family? Im trying to create model text in the project.

 

Thanks


ModelText 3D error
#2

Have you tried making a family containing model text, parametrizing the model text and then using that family with Dynamo in the project environment?


#3

Hi Daniel,

<span style=“text-decoration: underline;”>The so called “ModelText” seems to be some kind of a Revit API dinosaur</span> (at least I haven’t seen anyone using it). I have no idea why the dynamo team decided to implement only this method and not the standard text notes method, but luckily for you Andreas has implemented the text notes method in his Clockwork package under the name of “TextNote.ByStringAndPosition”.

There was a recent discussion about it here:

http://dynamobim.com/forums/topic/textnote-bystringandposition-is-it-possible-to-expand-the-resulting-textnote/

EDIT: Sorry I thought you need 2d text. I’d try Andreas’ suggestion for 3d text.

 


#4

There’s no method in the Revit API for creating model text in a project document, hence no node.

If your model text is already present in the project, you can change its text with TextElement.SetText from package Clockwork, but that’s as far as it goes…


#5

Makes total sense then Andreas :slight_smile:

I’m not sure where to start then. I created a generic model family with a TextValue parameter. Now i need to get all the rooms and theyre center point. Create the family at that point and fill the Text Value with the name.

Sounds easy i’m not just sure how to “match” the proper room name with the proper family

 


#6

You guys are such an inspiration… it was damn easy actually :slight_smile:

3dRoomName_01