Toolspace palette display mode

Toolspace palette display mode

gccdaemon
Collaborator Collaborator
1,701 Views
8 Replies
Message 1 of 9

Toolspace palette display mode

gccdaemon
Collaborator
Collaborator

Does anyone know if there is a variable / system display state for the Toolspace palette? I can't seem to find anything.

<ex: ADSTATE for Designcenter, TPSTATE for Toolpalettes, etc.>

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
0 Likes
Accepted solutions (1)
1,702 Views
8 Replies
Replies (8)
Message 2 of 9

Ranjit_Singh
Advisor
Advisor

Civil3D elements are mostly accessible through .net. Post in this forum here

0 Likes
Message 3 of 9

gccdaemon
Collaborator
Collaborator

That's far too compliced for what I need. I'm trying to create a diesel expression to toggle all the palettes I use on / off. I'm just looking for a system variable or something of the sort to use in a (if (eq string. I know very little about .net.

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
0 Likes
Message 4 of 9

Ranjit_Singh
Advisor
Advisor
Accepted solution

I imagine simply typing the toolspace command will not help you. Toolspace command loads the toolspace. But if the toolspace is already loaded (before calling the toolspace command) then it will unload the toolspace.

 

Try the attached vlx. It will add a command loadtspace. Calling it should load the toolspace. If toolspace is already loaded it won't unload it.

Message 5 of 9

gccdaemon
Collaborator
Collaborator

Thank you, that's very helpful! Could you make another to unload it? This would get me where i need to be. Instead of looking for a variable, I could just unload all the palettes and reload them in a specific order.

 

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
0 Likes
Message 6 of 9

Ranjit_Singh
Advisor
Advisor

Calling loadtspace will ensure that the toolspace is loaded. If you need to unload it then simply call Civil 3d command toolspace after calling loadtspace

Message 7 of 9

gccdaemon
Collaborator
Collaborator

Just tested it and LOADTSPACE works. I'll take into account using both commands together. Thanks again!

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
0 Likes
Message 8 of 9

tcorey
Mentor
Mentor

Hello @Ranjit_Singh. Thanks for sharing the vlx solution. I know you also know lisp. Can you point me in the right direction if I were to want to do this with lisp instead of .net?



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 9 of 9

tcorey
Mentor
Mentor

@Ranjit_Singh :The command works great from the command line, but how do  I call it with LISP?

 

I can load the vlx just fine, but attempts at running the actual command, loadtspace, give me lisp errors. I have tried (vl-cmdf "loadtspace") and (command "loadtspace"), plus each with the variation of adding c: in front of the command. . All give me Unknown Command errors.

 

 



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes