Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD - description of the profile name in the title bar

14 REPLIES 14
SOLVED
Reply
Message 1 of 15
Anonymous
1493 Views, 14 Replies

AutoCAD - description of the profile name in the title bar

Hello everybody,

 

is there a possibility that the AutoCAD profile name (e.g. <<ADADMPP>>)

could be displayed in the title bar? Is there a registry key or some other way? I would like to help those users who often switch between different profiles in AutoCAD.

 

For example like this:

Title bar.PNG

 

14 REPLIES 14
Message 2 of 15
ВeekeeCZ
in reply to: Anonymous

THIS might put some light...

Message 3 of 15
Shneuph
in reply to: Anonymous

If it doesn't need to go in the titlebar, it may be much easier to put it in the MODEMACRO variable.

 

Shneuph_0-1594917644656.png

 

MODEMACRO

$(getvar, cprofile)

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Message 4 of 15
CodeDing
in reply to: Shneuph

@Shneuph ,

 

I had no idea this existed until today. Thank you.


Need AutoLisp help? Try my custom GPT 'AutoLISP Ace':
https://chat.openai.com/g/g-Zt0xFNpOH-autolisp-ace
Message 5 of 15
Shneuph
in reply to: CodeDing

For an example.. Here is the string we use.  You should be able to copy and paste into the commandline for modemacro:

 

$(if,$(eq,$(getvar,pstylemode),0),"STB DWG" ,"CTB DWG") " | OsnapZ: "$(if,$(eq,$(getvar,osnapz),0),"OFF" ,"ON") " | Txt S: " $(RTOS, $(*,$(getvar,TEXTSIZE),8)[, 2, 2])" | Dim S: " $(RTOS, $(getvar,DIMSCALE)[, 2, 2]) " | LTS: " $(getvar,LTSCALE) " | OS " $(getvar,osmode) " | Profile " $(getvar,cprofile) " | Mtext Editor: " $(getvar,mtexted) " | CenterMT: " $(if,$(eq,$(getvar,centermt),0),"Not Centered" ,"Centered")

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Message 6 of 15
Anonymous
in reply to: Shneuph

Hi @Shneuph ,

 

when I restart the AutoCAD, the value of MODEMACRO is overwritten with "". I need a pemanent solution.

 

The value of the string "$(getvar, cprofile) is also not shown. I can only create a command macro with this string.

Message 7 of 15
cadffm
in reply to: Anonymous

For this you have your (own) ACADDOC.lsp 😶

Sebastian

Message 8 of 15
cadffm
in reply to: Anonymous


@Anonymous  schrieb:

Hi @Shneuph ,

The value of the string "$(getvar, cprofile) is also not shown.


???

Modemacro appears in your statusbar, if you set statusbar off, you can't see the Modemacro string 😂

Please upload a screenshot of the whole program windows after you set modemacro this way:

MODEMACRO
Aktuelles Profil ist: $(getvar,CPROFILE)

 

Sebastian

Message 9 of 15
ВeekeeCZ
in reply to: Anonymous

Use this expression:

 

(setvar 'modemacro "$(getvar,cprofile)")

 

Save it as a *.lsp file, add the file to the StartUp Suite.

Then you would see the profile name in this part of your screen... as the very first item of the status bar. 

 

Z9E3zK5E_0-1594970269488.png

 

So not much close to what you had in mind when starting this thread.

 

Tags (1)
Message 10 of 15
Anonymous
in reply to: ВeekeeCZ

Thank you very much to you all, especially to Vilík 😀

Message 11 of 15
ВeekeeCZ
in reply to: ВeekeeCZ

Another simple idea of how to clearly distinguish profiles can be using QAT with some dummy icons. As this example...

You can create/download eg icons of letters... whatever. 

 

Z9E3zK5E_1-1594971291367.png

 

Message 12 of 15
cadffm
in reply to: ВeekeeCZ

Creative idea,

But hard to handle if you are using the same main.cuix&workspace,

in this case you need to know how so set up a command/button with linked icons.png and then you can set different paths for customer icons.

 

 

My Q:

Or does i miss some way to use this idea?

Sebastian

Message 13 of 15
ВeekeeCZ
in reply to: cadffm

That was just an idea for the OP to consider. No more.

If I would want such a thing for myself, I would consider that as feasible. But I'm not really one who needs to care about a bunch of users. But your point of view is legit. Sure.

 

BTW I am switching between C3D and ACAD profiles a lot. Often having them side by side. I use a background to visually distinguish them. Whether C3D is by default in dark gray-blue color, ACAD is black. All I need. Personally consider MODEMACRO as "not enough" for such a case. Also, have more interesting/interactive stuff to show in the status bar than a simple profile name.

Message 14 of 15
cadffm
in reply to: ВeekeeCZ


@ВeekeeCZ  schrieb:

That was just an idea for the OP to consider. No more.


And i like the idea (generally interest)!

That's why i took time to think about a solution for this and i ends up with:

Possible, but to complicated in most of cases.

 

Thanks for sharing the idea 🙂

 

Sebastian

Message 15 of 15
Sea-Haven
in reply to: ВeekeeCZ

Rather than jumping between 2 workspaces I just made a custom menu that had a lot of the most used CIV3D stuff and added it to my Drafting workspace much easier, just used notepad and cut and pasted stuff out of CUI.

 

 

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report