Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

add username in view name when user create or duplicate view

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Ning_Zhou
731 Views, 1 Reply

add username in view name when user create or duplicate view

is it doable via postcommand? or other API means? well, user will be responsible for their own views (delete it if no longer used or rename it in order to be put in sheet), currently we have projects w/ lots of views in project browser seems no longer used but NOT 100% SURE if they should be deleted, will be great if each view (name) has username attached automatically when creating or duplicating

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Ning_Zhou

Dear Ning,

 

Thank you for your query.

 

My initial reaction is to assume that this is easily doable programmatically.

 

You can determine the current user name in your add-in, can't you?

 

You can also implement a dynamic model updater DMU that react to new view creation.

 

Then you can attach the user name to the view in any manner you prefer.

 

Personally, I would probably not include it in the view name, because that might be rather inaesthetic in the user interface.

 

Another alternative would be to store it on the view using extensible storage.

 

In that manner, your add-in can access the data, and it does not disturb the user.

 

Here are The Building Coder topic groups on DMU and extensible storage:

 

 

I hope this helps.

 

Best regards,

 

Jeremy

 



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

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

Post to forums  

Rail Community


Autodesk Design & Make Report