Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API set default TextNote.LeaderRightAttachment

API set default TextNote.LeaderRightAttachment

When creating multiple TextNote elements, it's annoying to have multiple lines after each (cluttering up the code):

 

TextNote myTextNote = TextNote.Create(...);
myTextNote.LeaderLeftAttachment = LeaderAtachement.TopLine;
myTextNote.LeaderRightAttachment = LeaderAtachement.TopLine;
TextNote myTextNote2 = TextNote.Create(...);
myTextNote2.LeaderLeftAttachment = LeaderAtachement.TopLine;
myTextNote2.LeaderRightAttachment = LeaderAtachement.TopLine;
etc.

 

It would be nice if we could set the default before creating multiple elements. Sure, I'll probably just wind up writing a wrapper class, but if you implement the default functionality it would also solve this problem: 

 

Set Defaults for Leader Options on Text - Autodesk Community

 

In addition, the API-created text doesn't follow the user's default setting (i.e. it always goes right-bottom, even when the user has already changed the default for that session to right-top). At the minimum, it should follow the user's setting.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report