N
NAdir
If I want to delete the geometry rows (excluding the first and last) using
the following procedure it works, but if I try to modify a cell in the same
procedure just after modifying the geometry(see REM line), an unexpeceted
behavior happens, If one can try the code and let me know what is the
problem, I will appreaciate :
Sub removePoints(ByVal aShape As Shape)
Dim index As Integer
If aShape.Cells("user.removePoints").Formula = True Then
For index =
aShape.RowCount(VisSectionIndices.visSectionFirstComponent) To 0 Step -1
aShape.DeleteRow VisSectionIndices.visSectionFirstComponent,
VisRowIndices.visRowVertex + index
Next
REM aShape.Cells("user.removePoints").Formula = False
End If
End Sub
I want to keep only the firt and last rows so the line shape will appear
straight. This is same as Visio resetConnector but this is not working.
the following procedure it works, but if I try to modify a cell in the same
procedure just after modifying the geometry(see REM line), an unexpeceted
behavior happens, If one can try the code and let me know what is the
problem, I will appreaciate :
Sub removePoints(ByVal aShape As Shape)
Dim index As Integer
If aShape.Cells("user.removePoints").Formula = True Then
For index =
aShape.RowCount(VisSectionIndices.visSectionFirstComponent) To 0 Step -1
aShape.DeleteRow VisSectionIndices.visSectionFirstComponent,
VisRowIndices.visRowVertex + index
Next
REM aShape.Cells("user.removePoints").Formula = False
End If
End Sub
I want to keep only the firt and last rows so the line shape will appear
straight. This is same as Visio resetConnector but this is not working.