Revit API

Distinguished Contributor
Posts: 724
Registered: ‎12-12-2003
Message 1 of 3 (183 Views)


183 Views, 2 Replies
04-24-2012 07:41 AM

Im tryint to call TextNote and asign the TextAlignFlags.TEF_ALIGN_LEFT parameters as variables. I cannot use strings as arguments, How can I do this? Thanks. 

ADN Support Specialist
Posts: 407
Registered: ‎08-20-2007
Message 2 of 3 (146 Views)

Re: TextAlignFlags.TEF_ALIGN_LEFT

05-08-2012 02:08 AM in reply to: bthatcher

Use an enum, since that is what it is, cf. Revit API help file RevitAPI.chm:

TextAlignFlags Enumeration: An enumerated type listing all the Text align flags.

Best regards,

Jeremy Tammik
Autodesk Developer Network --
The Building Coder --

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

Distinguished Contributor
Posts: 724
Registered: ‎12-12-2003
Message 3 of 3 (122 Views)

Re: TextAlignFlags.TEF_ALIGN_LEFT

05-15-2012 06:00 AM in reply to: jeremytammik

I can use Lookup to find the diferent interger values, but can you give me an example of how to use them? Also, i'm trying to find the enum values for VIEW_TYPE. But I'm not able to use Lookup when a view is selected. Thanks. 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit