i am new to this Forum.
I am using Lighthouse for MAX 6.5 with a CPM-100 for printing and cutting labels.
I am using the printer mainly for printing inspection labels which specify when the last inspection of an equipment has been occured.
Long story short, i am placing cut shapes on the layout as can be seen in the attached image.
There are supposed to be twelve cut shapes, one over each month. All of them are temporarily deactivated. (neither cutting nor printing is enabled for these shapes).
To optimize the cutting process i would like the lighthouse software to automatically determine which cut shape is to be activated when the labels are supposed to be printed. So that the user doesn't have to do this manually to prevent user error.
Now i already found out that VB is supported and i already found the name for the shapes that are used for cutting. (Ellipse1, Ellipse2 etc.)
But i don't actually now how to exactly achieve my goal. Does declaring the Ellipse Shapes as Boolean(True/False) and activating them with currentDate and DateTime go somehwere in the right direction? I am not that comfortable with VB yet, so i dont know if this approach is somewhat correct.
Here is the code that i have written so far:
Code: Select all
Sub setCutShape()
Dim currentDate As DateTime = DateTime.Now
Dim Ellipse1 As Boolean, Ellipse2 As Boolean, Ellipse3 As Boolean, _
Ellipse4 As Boolean, Ellipse5 As Boolean, Ellipse6 As Boolean, _
Ellipse7 As Boolean, Ellipse8 As Boolean, Ellipse9 As Boolean, _
Ellipse10 As Boolean, Ellipse11 As Boolean, Ellipse12 As Boolean
If currentDate.Month = 1 Then
Ellipse1 = True
End If
If currentDate.Month = 2 Then
Ellipse1 = True
End If
If currentDate.Month = 3 Then
Ellipse1 = True
End If
If currentDate.Month = 4 Then
Ellipse1 = True
End If
If currentDate.Month = 5 Then
Ellipse1 = True
End If
If currentDate.Month = 6 Then
Ellipse1 = True
End If
If currentDate.Month = 7 Then
Ellipse1 = True
End If
If currentDate.Month = 8 Then
Ellipse1 = True
End If
If currentDate.Month = 9 Then
Ellipse1 = True
End If
If currentDate.Month = 10 Then
Ellipse1 = True
End If
If currentDate.Month = 11 Then
Ellipse1 = True
End If
If currentDate.Month = 12 Then
Ellipse1 = True
End If
End Sub
I hope my english isn't to bad and anyone can understand what i am trying to do.
I would appreciate any help.