10bulls
|
 |
« on: November 26, 2012, 10:13:01 am » |
|
I have just uploaded a new plugin which adds some extra 'View' toolbar buttons, including ISO... http://www.cambam.info/ref/plugin.viewtoolbaraddinsThe source code is also available, which demonstrates adding custom tool bar buttons. The plugin just uses quick and dirty text labels at the moment, but if anyone wants to add their own fancy bitmap buttons they are more than welcome. 
|
|
|
Logged
|
|
|
|
Jeff_Birt
|
 |
« Reply #1 on: November 26, 2012, 16:46:38 pm » |
|
I added a 'Reset' button as well. It basically does the same thing as 'XY' but also does zoom to fit so the drawing is centered in the view. In other words it works just like the 'Reset' does in the context menu.
|
|
|
Logged
|
|
|
|
BR52
|
 |
« Reply #2 on: November 26, 2012, 18:57:40 pm » |
|
Thanks Andy for his initiative.
I added the view orthogonal to your plugin. I created a resource icon. The file is complete, all users can replace this. Andy you can use in future version of cambam.
The source code is attached with resource. Thank you again.
Armando
|
|
|
Logged
|
|
|
|
dh42
|
 |
« Reply #3 on: November 26, 2012, 19:52:40 pm » |
|
Hello, Nice  Thanks all  Just for info, that works also on L or only on N rev ? ++ David
|
|
« Last Edit: November 26, 2012, 19:55:08 pm by dh42 »
|
Logged
|
|
|
|
alexr
CNC Ewok
Offline
Posts: 9
|
 |
« Reply #4 on: December 02, 2012, 06:43:21 am » |
|
All I get is this.
As you can see I used latest software version (registered) and I followed the instructions to the letter.
using Windows 7, freshly installed, fully updated.
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.MissingMethodException: Method not found: 'CamBam.UI.ViewProjection CamBam.UI.ICADView.get_ViewProjection()'. at ViewToolbarAddins.ViewToolbarPlugin.ViewISO_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- CamBam Assembly Version: 0.9.4339.27541 Win32 Version: 0.9.4339.27541 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/CamBam.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5462 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- CamBam.CAD Assembly Version: 0.9.4339.27540 Win32 Version: 0.9.4339.27540 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/CamBam.CAD.DLL ---------------------------------------- CamBam.Geom Assembly Version: 0.9.4339.27539 Win32 Version: 0.9.4339.27539 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/CamBam.Geom.DLL ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Design Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll ---------------------------------------- 9nbngfo7 Assembly Version: 0.9.4339.27540 Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- CamBam.OpenGL Assembly Version: 0.9.4339.27539 Win32 Version: 0.9.* CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/CamBam.OpenGL.DLL ---------------------------------------- CamBamLathe Assembly Version: 1.1.4338.23085 Win32 Version: 1.1.4338.23085 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/plugins/CamBamLathe.dll ---------------------------------------- hqv4nxy5 Assembly Version: 1.1.4338.23085 Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- CamBamPlus_Toolkit Assembly Version: 1.1.4338.23086 Win32 Version: 1.1.4338.23086 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/plugins/CamBamPlus_Toolkit.dll ---------------------------------------- CutViewer Assembly Version: 1.1.4338.23086 Win32 Version: 1.1.4338.23086 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/plugins/CutViewer.dll ---------------------------------------- HeightMapPlugin Assembly Version: 1.3.4338.23086 Win32 Version: 1.3.4338.23086 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/plugins/HeightMapPlugin.dll ---------------------------------------- ViewToolbarAddins Assembly Version: 1.0.4713.18503 Win32 Version: 1.0.4713.18503 CodeBase: file:///C:/Program%20Files%20(x86)/CamBam%20plus%200.9.8/plugins/ViewToolbarAddins.dll ----------------------------------------
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
|
|
|
Logged
|
|
|
|
alexr
CNC Ewok
Offline
Posts: 9
|
 |
« Reply #5 on: December 02, 2012, 06:49:31 am » |
|
Oh that error goes for all additional buttons on the tool bar via the new plugin
if you know how to fix this or need any further information please reply or PM me.
thanks
AlexR
|
|
|
Logged
|
|
|
|
alexr
CNC Ewok
Offline
Posts: 9
|
 |
« Reply #6 on: December 02, 2012, 10:14:15 am » |
|
plugin doesnt work on 0.9.8 L which was the version i did the error report for but version N with the new views works fine.....
|
|
|
Logged
|
|
|
|
BR52
|
 |
« Reply #7 on: December 02, 2012, 12:55:47 pm » |
|
Hello AlexR
Does not work in version 98L, seed in version 0.9.8N (rc-4). See image below.
Attention make a copy of file "CamBamPro.lic" and stores this copies. Uninstall the old version completely. And install the new version 0.9.8N (rc-4).
Armando
|
|
« Last Edit: December 02, 2012, 12:58:31 pm by BR52 »
|
Logged
|
|
|
|
|