Command missing for customizing a toolbox

Started by Dempsey, September 21, 2007, 11:40:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

I use a custom toolbox in both V17.2 and V18. I like to add the command "Set View by Drawing Center" (the red camera) to my custom toolbox, but that standard command is not in the command list.

How can I add it to the command list or add it to my custom toolbox?
Dempsey

Bob P

Create a button that calls a macro:

'svbdc.d3m - Set view by drawing center

>SetViewByDrawingCenter
{
}

Dempsey

Looks like SetViewByDrawingCenter is not a valid Macro Language command. I could not find it in the Macro17 help file documentation either.
Dempsey

Bob P

#3
Weird.  SetViewByDrawingCenter is a valid DC command, at least in V15 and V18 (The only versions I've got loaded).  Find it in cmdlist.ini (in Docs and Settings in V18).

The macro worked for me at home, but not at work.  ???

I hate when that happens...

prl

My version of this.


'Program: vc.d3m (set view center and start orbit)

if sys(1) = 0 then
  Setpoint "Set a point to view center . . ." 1
  if sys(1)=0 then end
endif 
 

>SetViewerPoints
{
  <Usepresetpoints
}


sys(1)=0


>setview
{
}

end

Dempsey

SetViewByDrawingCenter is indeed in cmdlist.ini, but that list is used for customizing menus. SetViewByDrawingCenter is missing in macrocmd.ini. I can add it there myself, but I am not sure about the impact. By the same token I can add it to custom.ini, but officially I should then not use SetViewByDrawingCenter as it is standard DC. I used another name and equated that to ID_VIEW_REALTIME_CENTER, and used the name in my macro and that works. I just cannot find the red camera icon. Any idea where I can find that?

prl, your solution is fine, but more than I was looking for.
Dempsey