Adding Custom Views to Tool Palettes

Adding Custom Views to Tool Palettes

Anonymous
Not applicable
766 Views
6 Replies
Message 1 of 7

Adding Custom Views to Tool Palettes

Anonymous
Not applicable

Jarod Schultz does a class at AU called super duper click savers.  In there, he creates hyperlinks to custom views and works off of them in the tool palettes.  I can create the custom view but cannot figure out how to add it to the a tool palette.  Can anyone help?

 

Link to video

 

0 Likes
Accepted solutions (1)
767 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Accepted solution

I found the answer by contacting the presenter.  In case of interest, it is a script inside of the tool.  If interested let me know, happy to pass it on.

0 Likes
Message 3 of 7

Anonymous
Not applicable
  1. Hi Ben03049, I am very interested in the script if you are still willing to share. Thanks
0 Likes
Message 4 of 7

cadffm
Consultant
Consultant

The command to set a named view as current view is _VIEW

so you have to create named views and create a toolpalette command-tool ,

like all other button in your ribbon too.

 

a) drag and drop a "command" from CUI dialog (lower left area in the opend dialog) to your palette

 or

b) copy an existing command-tool from a toolpalette palette to your palette

    You can find a sample command tool in the standard palette "Command Tool Sample" (rightClick, Copy->paste)

 

As Macro you can use:

'_.-VIEW;_restore;"My named View1"

 

 

Sebastian

Message 5 of 7

cadffm
Consultant
Consultant

Or you like to jump to named views in other files? Then use the hyperlink-function.

But this is not possible directly as normal command-tool,

you have to use Lisp or create an object, add a hyperlink to your view, follow the hyperlink and delete this dummy-object.

 

 

Note: In Video and in handout pdf -  i can not see where he handles named views in toolpalettes..

AutoCAD-Super-Duper-Click-Savers-2015AU 2014 CLASS GEN9992, 

 

 

Sebastian

0 Likes
Message 6 of 7

Anonymous
Not applicable
Wow, that worked so well and very easily. I never used Macros before and still managed to make it work. Thanks for that, this will save me heaps of time!
In the video the speaker was shifting between views by clicking on tools in the toolpallet.
0 Likes
Message 7 of 7

cadffm
Consultant
Consultant

Ok, just for you i watched a part of the video and at 40:05 you can see

that the toolpalette command tool uses exactly what my sample does.

Look at the commandline at 40:05 and you can see _-view with option _r(estore) to set named view "TK"

 

Your welcome

Sebastian

0 Likes