Change Username in AutoCAD Attribute

Change Username in AutoCAD Attribute

Chris_Cal1
Participant Participant
1,492 Views
3 Replies
Message 1 of 4

Change Username in AutoCAD Attribute

Chris_Cal1
Participant
Participant

Currently, the username (as shown in Last Saved By and when checking standards and other places) is the users Windows Login name (LOGINNAME in ACAD).

We use a CAC to login to our computers so we have a number as our user name.

 

How can I set ACAD to use an actual name?

 

0 Likes
1,493 Views
3 Replies
Replies (3)
Message 2 of 4

john.vellek
Alumni
Alumni

Hi @Chris_Cal1,

 

Since Windows has recorded your login information as your name this will be a bit trickier than linking a field to the DWG Property.

 

You could possibly accomplish this by keeping a text file on your computer and use a lisp routine to grab the information to populate the attribute.

 

I will move this thread to the Customization forum so you might get some suggestions there.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.

 


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 3 of 4

scot-65
Advisor
Advisor
I'll expand on John's idea...

q1) Does an individual have the same login number each time?
q2) Does an individual log into the system using the same workstation?

In lieu of a text file, use the registry [HKCU] to store the user name.
A nag dialog written in LISP/DCL could be used to initiate storage.
Then the same LISP can determine if the key is present at next launch.
If not, then display the nag dialog again...

If q1=no, Create (build as you go) a list in the registry of all the user names and use a drop-down or list box (in DCL) to display the names.

If q2=no, Storage might be limited to an external file located in a common place, such as a server. Then follow the previous paragraph and read/write to that external file...

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

Message 4 of 4

vladimir_michl
Advisor
Advisor

You can also try the ONLINEUSERNAME variable - if you are logged-in with your actual name as an Autodesk ID.

 

Vladimir Michl, www.cadstudio.cz  www.cadforum.cz

0 Likes