Author Topic: Arrows & Dim  (Read 65295 times)

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7408
    • View Profile
    • Cambam V1.0 French Doc
Arrows & Dim
« on: August 03, 2014, 22:50:41 pm »
Hello,

A 'crude' beta version of a plugin designed to do arrows and dimensions.

Warning ! works only for V 0.9.8 P of Cambam

The plugin adds 3 items in the 'plugin' menu:

- Arrows: Draw an arrow ; click the start and end point to draw an arrow. The size and angle is given in the bottom window when finished.

- Dimension: Draw an arrow and allow to place a dim text

- Dimensions and Arrows - settings: shows the following window:

 

* you can choose between 5 arrows terminations or no arrow for each ends of the line.

* you can define the width and height of the arrow and also use a scale factor. the scale factor is a quick way to change the arrow termination size without changing the ratio width/height.

* you can choice the font and size used for the dim text. If scale is checked, the height is equal to Arrow height x scale. If size is checked, the size given below is used.

* If text centered is checked, dim text is automatically placer at the center of the arrow, if unchecked, you can place the text by mouse with a 3th clic. (if Esc is used at this moment, the text is placed to the center)

* If fixed is checked, number are formatted with fixed length.

revisions

version 1.0.0.7 : first beta version published (04/08/2014)

version 1.0.0.8 : (04/03/2015) make the arrows data persistent after Cambam is closed.

version 1.0.0.9 : (07/03/2015) repeat the arrow command until ESC or middle MB is clicked

version 1.0.1.0 : (08/03/2015) add a very basic dimension tool

version 1.0.1.2 : (08/03/2015)

- bug corrected: the arrow scale is not taken in account for texte size
- bug corrected: an undo is created when abort edit is clicked
- add font name, size and scale management
- add a setting for number of decimals
- memorize windows position between sessions

version 1.0.1.3 : (11/03/2015)
- shortcut added: CTRL D -> Dimensions, CTRL H -> Arrows, CTRL K -> settings

version 1.0.1.4 : (12/03/2015)
- add text placement by mouse
- add fixed decimals option
- add an option to choice between mouse placement or auto centered

version 1.0.1.5 : (20/07/2015)
- bug correction (remove handler after usage)

http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/arrowdim.html

++
David
« Last Edit: July 20, 2015, 15:43:51 pm by dh42 »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8969
    • View Profile
Re: Arrows & Dim
« Reply #1 on: August 03, 2014, 23:03:41 pm »
KRUNCH! (Sound of metal on metal... Sorry!)

Lloyd
--------------------------


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeLoadException: Could not load type 'CamBam.CAD.MeasureEditMode' from assembly 'CamBam.CAD, Version=0.9.4878.23990, Culture=neutral, PublicKeyToken=null'.
   at ClassDimArrow.DimArrowPlugin.Get_points()
   at ClassDimArrow.DimArrowPlugin.Arrow_clicked(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.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.ToolStripDropDown.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.ToolStripDropDown.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.3655 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
CamBam
    Assembly Version: 0.9.4878.23992
    Win32 Version: 0.9.4878.23992
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/CamBam.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3645 (GDR.050727-3600)
    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.3644 (GDR.050727-3600)
    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.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CamBam.CAD
    Assembly Version: 0.9.4878.23990
    Win32 Version: 0.9.4878.23990
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/CamBam.CAD.DLL
----------------------------------------
CamBam.Geom
    Assembly Version: 0.9.4878.23990
    Win32 Version: 0.9.4878.23990
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/CamBam.Geom.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3654 (GDR.050727-3600)
    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.3654 (GDR.050727-3600)
    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.3645 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
8x6dfssv
    Assembly Version: 0.9.4878.23990
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
we_hbrvh
    Assembly Version: 0.9.4878.23990
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ArcsCenters
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/ArcsCenters.dll
----------------------------------------
ArcText
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/ArcText.dll
----------------------------------------
BottomViewToolbarAddins
    Assembly Version: 1.0.5112.25486
    Win32 Version: 1.0.5112.25486
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/BottomViewToolbarAddins.dll
----------------------------------------
CamBam.CAD
    Assembly Version: 0.9.4878.23990
    Win32 Version: 0.9.4878.23990
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/CamBam.CAD.dll
----------------------------------------
Microsoft.JScript
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3643
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.JScript/8.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
Microsoft.Vsa
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3053
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Vsa/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Vsa.dll
----------------------------------------
OpenTK
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.278.44921
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/OpenTK.DLL
----------------------------------------
CamBamLathe
    Assembly Version: 1.1.4878.23997
    Win32 Version: 1.1.4878.23997
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/CamBamLathe.dll
----------------------------------------
m-eznld9
    Assembly Version: 1.1.4878.23997
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
CamBamPlus_Toolkit
    Assembly Version: 1.1.4878.23997
    Win32 Version: 1.1.4878.23997
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/CamBamPlus_Toolkit.dll
----------------------------------------
CamBamPrintV3200
    Assembly Version: 3.1.1.3
    Win32 Version: 3.1.1.3
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/CamBamPrintV3200.dll
----------------------------------------
Centroid
    Assembly Version: 1.2.0.0
    Win32 Version: 1.2.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Centroid.dll
----------------------------------------
CurvedSurfacePlugin
    Assembly Version: 1.0.0.10
    Win32 Version: 1.0.0.10
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/CurvedSurfacePlugin.dll
----------------------------------------
CutViewer
    Assembly Version: 1.1.4878.23997
    Win32 Version: 1.1.4878.23997
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/CutViewer.dll
----------------------------------------
Demo_Plugin
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Demo_Plugin.dll
----------------------------------------
DimArrow
    Assembly Version: 1.0.0.7
    Win32 Version: 1.0.0.7
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/DimArrow.dll
----------------------------------------
ExcellonIO
    Assembly Version: 1.3.5002.22522
    Win32 Version: 1.3.5002.22522
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/ExcellonIO.dll
----------------------------------------
HeightMapPlugin
    Assembly Version: 1.3.4878.23997
    Win32 Version: 1.3.4878.23997
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/HeightMapPlugin.dll
----------------------------------------
Hypocycloid
    Assembly Version: 1.0.4028.20405
    Win32 Version: 1.0.4028.20405
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Hypocycloid.dll
----------------------------------------
MakePartStock
    Assembly Version: 2.0.5.2
    Win32 Version: 2.0.5.2
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/MakePartStock.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
NumMove
    Assembly Version: 1.1.0.8
    Win32 Version: 1.1.0.8
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/NumMove.dll
----------------------------------------
Polygon
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Polygon.dll
----------------------------------------

    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Polygon.dll
----------------------------------------
SelectByObjectType
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/SelectByObjectType.dll
----------------------------------------
SelectUnused
    Assembly Version: 1.0.0.3
    Win32 Version: 1.0.0.3
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/SelectUnused.dll
----------------------------------------
Translations
    Assembly Version: 1.0.4244.16006
    Win32 Version: 1.0.*
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Translations.dll
----------------------------------------
VEngrave_Plugin
    Assembly Version: 0.0.0.8
    Win32 Version: 0.0.0.8
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/VEngrave_Plugin.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
bwt4dnnt
    Assembly Version: 0.0.0.8
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ViewToolbarAddins
    Assembly Version: 1.0.4753.731
    Win32 Version: 1.0.4753.731
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/ViewToolbarAddins.dll
----------------------------------------
Zoom
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%200.9.8/plugins/Zoom.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.


"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7408
    • View Profile
    • Cambam V1.0 French Doc
Re: Arrows & Dim
« Reply #2 on: August 03, 2014, 23:36:13 pm »
Hello Lloyd

Arggg !!

Works on XP pro 32bit and W7 64 bit with rev 0.9.8 P, but not with 0.9.8 N ... ;D ;D

(P works well and solve little bugs of N version)

I adds the source if you want try to do a N version for you ..

++
David

« Last Edit: August 03, 2014, 23:38:02 pm by dh42 »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8969
    • View Profile
Re: Arrows & Dim
« Reply #3 on: August 03, 2014, 23:40:24 pm »
Thanks, David.

No time right now.  The only reason I have not upgraded to P is because I'm on a downhill slide to finish a product, and can't afford anything unexpected.

I'll look at it, and upgrading to P in two weeks.

BTW... thank you for that!  I waste a lot of time drawing little dimensioning elements.  That will be quite useful.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Arrows & Dim
« Reply #4 on: August 04, 2014, 00:28:06 am »
BTW... thank you for that!  I waste a lot of time drawing little dimensioning elements.  That will be quite useful.
+++++++++++++++++++++++++++++

+1  :D
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline lockie

  • Ewok
  • *
  • Posts: 40
    • View Profile
Re: Arrows & Dim
« Reply #5 on: March 03, 2015, 22:02:27 pm »
Thanks for all the good people on this forum that work so hard to make things easier for the rest of us. I do not want to rush anybody here but I would still love to see this for version N. This would be a very handy plugin.   Thanks Al

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8969
    • View Profile
Re: Arrows & Dim
« Reply #6 on: March 03, 2015, 22:05:40 pm »
Lockie,

Unless you have a business-critical reason to NOT upgrade to "P", just do it.  So far, I've not heard any objections to it over "N", and I will soon upgrade (I never have yet finished that project!).

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lockie

  • Ewok
  • *
  • Posts: 40
    • View Profile
Re: Arrows & Dim
« Reply #7 on: March 03, 2015, 22:56:17 pm »
OK Thanks Lloyd will do I just wondering how do I save all of my N work with upgrade?? Thanks Al

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8969
    • View Profile
Re: Arrows & Dim
« Reply #8 on: March 03, 2015, 23:04:41 pm »
Lockie, I ALWAYS make a copy of all my work before upgrading anything.  Just copy your work folders to another temporary folder NOT in the CamBam path before starting.

That said, I've never lost anywork upgrading CamBam (but your mileage may vary!!!).

LLoyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1826
    • View Profile
Re: Arrows & Dim
« Reply #9 on: March 04, 2015, 08:15:59 am »
Hi All
Works here win7 32bit p version
Dave

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Re: Arrows & Dim
« Reply #10 on: March 04, 2015, 08:26:47 am »
Ha ha! what a clown I am, I hadn't even tried it, it also works for me in version P Win7 64bit.
And furthermore, I like it !

Edit:  ??? lost my marbles a bit today, I thought the jist was , won't work in version P but it was the other way round.
« Last Edit: March 04, 2015, 15:17:51 pm by EddyCurrent »
Filmed in Supermarionation

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Arrows & Dim
« Reply #11 on: March 04, 2015, 13:42:15 pm »
Ha ha! what a clown I am, I hadn't even tried it, it also works for me in version P Win7 64bit.
And furthermore, I like it !

The same here. ;D
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline lockie

  • Ewok
  • *
  • Posts: 40
    • View Profile
Re: Arrows & Dim
« Reply #12 on: March 04, 2015, 15:11:11 pm »
Downloaded to version P windows 7 32 bit works well. The original measurement tool changed, it only allows 1 measurement now then closes even when OK is pressed. no bigge good tradeoff for the dimension tool.  Thanks to all.    Al

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7408
    • View Profile
    • Cambam V1.0 French Doc
Re: Arrows & Dim
« Reply #13 on: March 04, 2015, 15:17:22 pm »
Does anyone know why it won't work on version P ?
Is it because of this ?
System.TypeLoadException: Could not load type 'CamBam.CAD.MeasureEditMode' from assembly 'CamBam.CAD,

Hello,

Yes, If I well remember, Andy has done some change in the measure tool in P rev (the measure text is shown on the measure line)

@Lockie: before upgrading your cambam version, in cambam, menu tools/browse system folder to open the folder where CB save the posts, tools, etc, and save all the file and folder (it contain your styles, tools, posts ...)

P works well and solves some little bugs existing in N

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Re: Arrows & Dim
« Reply #14 on: March 04, 2015, 15:19:33 pm »
David, will you be adding the dimensions options any time soon ?
Filmed in Supermarionation