Accueil > > > PRODUCTIQUE TOURNAGE
PRODUCTIQUE TOURNAGE
Information sur la source
Description
Voila mon programme permet de créer un programme ISO de tournage. Dedans il y'a des controles utilisateurs style xp et une gestion de la memoire. Son peut utiliser une richtextbox autrement merci dme le signaler.
Source
- Petite partie du code :
-
- Public Sub CreateCodeISO(Dec As Integer, AffiCoul As Integer, tAffiNom As Integer, tAffiNumBloc As Integer, tAffiComm As Integer, Comm As Integer, SautLigne As Integer)
- 'Fonction qui crée le programme ISO
-
- Dim strTemp As String
- Dim strTemp2 As String
- Dim strTemp3 As String
- Dim strTemp4 As String
- Dim intTemp As Integer
- Dim intTemp2 As Integer
- Dim intTemp3 As Integer
- Dim intTemp4 As Integer
- Dim intTemp5 As Integer
- Dim comptBloc As Integer
- Dim comptLigne As Integer
- Dim tabTemp() As String
-
- If AffiCoul = 0 Then
- AffiNom = 0
- AffiNumBloc = 0
- AffiComm = 0
- Else
- AffiNom = tAffiNom
- AffiNumBloc = tAffiNumBloc
- AffiComm = tAffiComm
- End If
-
- strTemp3 = "\f1\par}"
- comptBloc = 2
- comptLigne = 0
- intTemp4 = 0
- If Dec = 1 Then intTemp4 = 7
-
- With frmCodeISO.CodeISO
- .TextRTF = ""
- intTemp = 0
- If AffiNom = 1 Then intTemp = 1
- strTemp = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 " & optPolice & ";}{\f1\fswiss\fcharset0 Arial;}}{\colortbl ;\red128\green0\blue128;\red128\green0\blue0;\red0\green0\blue0;\red0\green0\blue128;}{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\cf" & intTemp & "\lang1036\f0\fs20 " & NomProgramme & "\cf0\par"
- intTemp = 0
- If AffiNumBloc = 1 Then intTemp = 2
- strTemp = strTemp & "\cf" & intTemp & Space(intTemp4) & " N10\cf0 G0 G52 X0 Z0 M9 G40 G80\cf2\par"
- For b = 1 To NbrCycles
- intTemp3 = tabNomCycles(b, 2) - tabNomCycles(b, 1)
- intTemp = 0
- intTemp2 = 0
- If AffiNumBloc = 1 Then intTemp = 2
- If AffiComm = 1 Then intTemp2 = 4
- strTemp2 = ""
- If SautLigne = 1 Then strTemp2 = "\par "
- strTemp2 = strTemp2 & "\cf" & intTemp & Space(intTemp4) & " N" & comptBloc * 10 & "\cf0 " & tabProgramme(comptLigne)
- If Comm = 1 Then strTemp2 = strTemp2 & " \cf" & intTemp2 & " ( " & tabNomCycles(b, 0) & " )"
- strTemp2 = strTemp2 & "\par"
- strTemp = strTemp & strTemp2
- For c = tabNomCycles(b, 1) + 1 To tabNomCycles(b, 2)
- comptBloc = comptBloc + 1
- intTemp = 0
- intTemp2 = 0
- If AffiNumBloc = 1 Then intTemp = 2
- If AffiComm = 1 Then intTemp2 = 4
- strTemp4 = tabProgramme(c)
- If Left(strTemp4, 1) = "@" Then
- strTemp4 = Right(strTemp4, Len(strTemp4) - 1)
- Select Case Left(strTemp4, 3) 'Fonctions spéciales
- Case "G79"
- intTemp5 = Right(strTemp4, Len(strTemp4) - 3)
- strTemp4 = "G79 N" & (comptBloc + intTemp5 + 1) * 10
- Case "G64"
- tabTemp = Split(strTemp4, "/")
- intTemp5 = tabTemp(4)
- strTemp4 = "G64 N" & (comptBloc - intTemp5) * 10 & " N" & (comptBloc - 1) * 10 & " I" & tabTemp(1) & " K" & tabTemp(2) & " F" & tabTemp(3)
- Case "G77"
- tabTemp = Split(strTemp4, "/")
- strTemp4 = "G77"
- For d = 1 To UBound(tabTemp)
- intTemp5 = tabTemp(d)
- strTemp4 = strTemp4 & " N" & (comptBloc + intTemp5) * 10
- Next d
- End Select
- End If
- strTemp = strTemp & "\cf" & intTemp & Space(intTemp4) & " N" & comptBloc * 10 & "\cf0 " & strTemp4 & "\cf" & intTemp2 & " \par"
- Next c
- comptLigne = comptLigne + intTemp3 + 1
- comptBloc = comptBloc + 1
- Next b
- If SautLigne = 1 Then strTemp = strTemp & "\par "
- intTemp = 0
- If AffiNumBloc = 1 Then intTemp = 2
- strTemp = strTemp & "\cf" & intTemp & Space(intTemp4) & " N" & (DerniereLigneProg + 2) * 10 & "\cf0 M2\par"
- .TextRTF = strTemp & strTemp3
- End With
- End Sub
Petite partie du code :
Public Sub CreateCodeISO(Dec As Integer, AffiCoul As Integer, tAffiNom As Integer, tAffiNumBloc As Integer, tAffiComm As Integer, Comm As Integer, SautLigne As Integer)
'Fonction qui crée le programme ISO
Dim strTemp As String
Dim strTemp2 As String
Dim strTemp3 As String
Dim strTemp4 As String
Dim intTemp As Integer
Dim intTemp2 As Integer
Dim intTemp3 As Integer
Dim intTemp4 As Integer
Dim intTemp5 As Integer
Dim comptBloc As Integer
Dim comptLigne As Integer
Dim tabTemp() As String
If AffiCoul = 0 Then
AffiNom = 0
AffiNumBloc = 0
AffiComm = 0
Else
AffiNom = tAffiNom
AffiNumBloc = tAffiNumBloc
AffiComm = tAffiComm
End If
strTemp3 = "\f1\par}"
comptBloc = 2
comptLigne = 0
intTemp4 = 0
If Dec = 1 Then intTemp4 = 7
With frmCodeISO.CodeISO
.TextRTF = ""
intTemp = 0
If AffiNom = 1 Then intTemp = 1
strTemp = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 " & optPolice & ";}{\f1\fswiss\fcharset0 Arial;}}{\colortbl ;\red128\green0\blue128;\red128\green0\blue0;\red0\green0\blue0;\red0\green0\blue128;}{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\cf" & intTemp & "\lang1036\f0\fs20 " & NomProgramme & "\cf0\par"
intTemp = 0
If AffiNumBloc = 1 Then intTemp = 2
strTemp = strTemp & "\cf" & intTemp & Space(intTemp4) & " N10\cf0 G0 G52 X0 Z0 M9 G40 G80\cf2\par"
For b = 1 To NbrCycles
intTemp3 = tabNomCycles(b, 2) - tabNomCycles(b, 1)
intTemp = 0
intTemp2 = 0
If AffiNumBloc = 1 Then intTemp = 2
If AffiComm = 1 Then intTemp2 = 4
strTemp2 = ""
If SautLigne = 1 Then strTemp2 = "\par "
strTemp2 = strTemp2 & "\cf" & intTemp & Space(intTemp4) & " N" & comptBloc * 10 & "\cf0 " & tabProgramme(comptLigne)
If Comm = 1 Then strTemp2 = strTemp2 & " \cf" & intTemp2 & " ( " & tabNomCycles(b, 0) & " )"
strTemp2 = strTemp2 & "\par"
strTemp = strTemp & strTemp2
For c = tabNomCycles(b, 1) + 1 To tabNomCycles(b, 2)
comptBloc = comptBloc + 1
intTemp = 0
intTemp2 = 0
If AffiNumBloc = 1 Then intTemp = 2
If AffiComm = 1 Then intTemp2 = 4
strTemp4 = tabProgramme(c)
If Left(strTemp4, 1) = "@" Then
strTemp4 = Right(strTemp4, Len(strTemp4) - 1)
Select Case Left(strTemp4, 3) 'Fonctions spéciales
Case "G79"
intTemp5 = Right(strTemp4, Len(strTemp4) - 3)
strTemp4 = "G79 N" & (comptBloc + intTemp5 + 1) * 10
Case "G64"
tabTemp = Split(strTemp4, "/")
intTemp5 = tabTemp(4)
strTemp4 = "G64 N" & (comptBloc - intTemp5) * 10 & " N" & (comptBloc - 1) * 10 & " I" & tabTemp(1) & " K" & tabTemp(2) & " F" & tabTemp(3)
Case "G77"
tabTemp = Split(strTemp4, "/")
strTemp4 = "G77"
For d = 1 To UBound(tabTemp)
intTemp5 = tabTemp(d)
strTemp4 = strTemp4 & " N" & (comptBloc + intTemp5) * 10
Next d
End Select
End If
strTemp = strTemp & "\cf" & intTemp & Space(intTemp4) & " N" & comptBloc * 10 & "\cf0 " & strTemp4 & "\cf" & intTemp2 & " \par"
Next c
comptLigne = comptLigne + intTemp3 + 1
comptBloc = comptBloc + 1
Next b
If SautLigne = 1 Then strTemp = strTemp & "\par "
intTemp = 0
If AffiNumBloc = 1 Then intTemp = 2
strTemp = strTemp & "\cf" & intTemp & Space(intTemp4) & " N" & (DerniereLigneProg + 2) * 10 & "\cf0 M2\par"
.TextRTF = strTemp & strTemp3
End With
End Sub
Conclusion
Mise a jour prévue pour le filtage bientot, ou si qq est motive pour le continuer (prévenez moi ^^).
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko [FRAMEWORK 4] LES TASKS ET LE THREAD UI[FRAMEWORK 4] LES TASKS ET LE THREAD UI par fathi
Je viens de passer quelques temps au TechDay's et j'ai pu voir pas mal de session intéressante. Par contre une chose m'a un peu étonné lors de certaines de ces sessions qui abordaient les améliorations du framework .NET (donc le 4.5) : en gros, bea...
Cliquez pour lire la suite de l'article par fathi
Logiciels
Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning COLLECTOR PLUS (3.00B)COLLECTOR PLUS (3.00B)COLLECTOR PLUS version 3.00B est un logiciel utilisant une base de données alimentée par :
- L... Cliquez pour télécharger COLLECTOR PLUS PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO LettresFaciles 2011 (8.0.0.1)LETTRESFACILES 2011 (8.0.0.1)LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types.
Son inte... Cliquez pour télécharger LettresFaciles 2011
|