diff --git a/DrawPanel/DrawPanelV.xaml b/DrawPanel/DrawPanelV.xaml
index ea843cd..1f2b439 100644
--- a/DrawPanel/DrawPanelV.xaml
+++ b/DrawPanel/DrawPanelV.xaml
@@ -74,17 +74,27 @@
Command="{Binding PolygonSideCommand}" IsEnabled="{Binding bLayerOk}">
-
-
+
+
+
+
diff --git a/DrawPanel/DrawPanelVM.vb b/DrawPanel/DrawPanelVM.vb
index c4ea23b..7dbc221 100644
--- a/DrawPanel/DrawPanelVM.vb
+++ b/DrawPanel/DrawPanelVM.vb
@@ -97,12 +97,22 @@ Public Class DrawPanelVM
End Property
Public ReadOnly Property TextToolTip As String
Get
- Return EgtMsg( 5214)
+ Return EgtMsg( 5214) ' Testo Testo Avanzato (Shift)
End Get
End Property
Public ReadOnly Property LinearDimensionToolTip As String
Get
- Return EgtMsg( 5155)
+ Return EgtMsg( 5155) ' Quota Lineare Quota Allineata (Shift)
+ End Get
+ End Property
+ Public ReadOnly Property AngularDimensionToolTip As String
+ Get
+ Return EgtMsg( 5167) ' Quota Angolare Quota Angolare Avanzata (Shift)
+ End Get
+ End Property
+ Public ReadOnly Property DiamRadDimensionToolTip As String
+ Get
+ Return EgtMsg( 5168) ' Quota Diametrale Quota Radiale (Shift)
End Get
End Property
@@ -460,6 +470,8 @@ Public Class DrawPanelVM
Private m_cmdPolygonSide As ICommand
Private m_cmdText As ICommand
Private m_cmdLinDim As ICommand
+ Private m_cmdAngDim As ICommand
+ Private m_cmdDiamRadDim As ICommand
Private m_cmdModifyCurve As ICommand
Private m_cmdAddPointCurve As ICommand
Private m_cmdPlane As ICommand
@@ -878,6 +890,60 @@ Public Class DrawPanelVM
#End Region ' LinearDimensionCommand
+#Region "AngularDimensionCommand"
+
+ '''
+ ''' Returns a command that do Angular Dimension.
+ '''
+ Public ReadOnly Property AngularDimensionCommand As ICommand
+ Get
+ If m_cmdAngDim Is Nothing Then
+ m_cmdAngDim = New RelayCommand(AddressOf AngularDimension)
+ End If
+ Return m_cmdAngDim
+ End Get
+ End Property
+
+ '''
+ ''' Execute the AngularDimension. This method is invoked by the AngDimCommand.
+ '''
+ Public Sub AngularDimension(ByVal param As Object)
+ If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
+ Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.ANGULARDIMENSIONPLUS)
+ Else
+ Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.ANGULARDIMENSION)
+ End If
+ End Sub
+
+#End Region ' AngularDimensionCommand
+
+#Region "DiamRadDimensionCommand"
+
+ '''
+ ''' Returns a command that do DiamRad Dimension.
+ '''
+ Public ReadOnly Property DiamRadDimensionCommand As ICommand
+ Get
+ If m_cmdDiamRadDim Is Nothing Then
+ m_cmdDiamRadDim = New RelayCommand(AddressOf DiamRadDimension)
+ End If
+ Return m_cmdDiamRadDim
+ End Get
+ End Property
+
+ '''
+ ''' Execute the DiamRadDimension. This method is invoked by the DiamRadDimCommand.
+ '''
+ Public Sub DiamRadDimension(ByVal param As Object)
+ If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
+ Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.RADIALDIMENSION)
+ Else
+ Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.DIAMETRALDIMENSION)
+ End If
+ End Sub
+
+#End Region ' DiamRadDimensionCommand
+
#Region "ModifyCurve"
'''
diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj
index 09364cc..71905cc 100644
--- a/EgtCAM5.vbproj
+++ b/EgtCAM5.vbproj
@@ -1005,6 +1005,12 @@
+
+
+
+
+
+ IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe
diff --git a/OptionsWindow/OptionWindowVM.vb b/OptionsWindow/OptionWindowVM.vb
index e421938..53fa86c 100644
--- a/OptionsWindow/OptionWindowVM.vb
+++ b/OptionsWindow/OptionWindowVM.vb
@@ -386,7 +386,7 @@ Public Class OptionWindowVM
End Get
Set(value As String)
Dim nVal As Integer = 0
- If Integer.TryParse(value, nVal) AndAlso nVal > 0 Then
+ If Integer.TryParse(value, nVal) Then
OptionModule.m_nDecDigit = nVal
EgtSetCurrDimensionStyle(m_dExtLineLen, m_dArrowLen, m_dTextDist, m_nLenIsMM, m_nDecDigit, m_sFont, m_dTextHeight)
WritePrivateProfileString(S_DIMENSIONSTYLE, K_DECDIGIT, OptionModule.m_nDecDigit.ToString())
diff --git a/Resources/DrawPanel/AngularDimension.png b/Resources/DrawPanel/AngularDimension.png
new file mode 100644
index 0000000..b8bed05
Binary files /dev/null and b/Resources/DrawPanel/AngularDimension.png differ
diff --git a/Resources/DrawPanel/DiametralDimension.png b/Resources/DrawPanel/DiametralDimension.png
new file mode 100644
index 0000000..7e8705e
Binary files /dev/null and b/Resources/DrawPanel/DiametralDimension.png differ