- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Wondering if those of you who have more experience with Diesel Expressions might be able to tell me if the following idea is feasible: I am working on updating our company AutoCAD title blocks and templates this week, and we have an input for "Drawn By" in our blocks that should indicate the originator of the drawing, though many are not so good about filling this part out. In an attempt to rectify this, I wanted insert a field to pull the login name or better yet, their initials, and landed on the expression shown in this thread here as a potential solution: https://forums.autodesk.com/t5/autocad-forum/field-login-can-i-change-content-of-it/td-p/5197629
I customized that expression to be "$(upper,$(substr,$(getvar,loginname),1,1) $(substr,$(getvar,loginname),2,5))" which outputs my first initial, and last name with a space between, which would be adequate for our needs. However, a coworker pointed out, and we tested this to see if it's the case, that anybody who opens the drawing will cause the field to update to their name. That said, is there a way to set this up to capture the name of the initial draftsperson and not just anybody who opens the drawing? Please and Thank you for any thoughts on this.
Solved! Go to Solution.