add username in view name when user create or duplicate view

add username in view name when user create or duplicate view

Ning_Zhou
Advocate Advocate
852 Views
1 Reply
Message 1 of 2

add username in view name when user create or duplicate view

Ning_Zhou
Advocate
Advocate

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

0 Likes
Accepted solutions (1)
853 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

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