gigi.iacu
Guest
ilogic makro numeri ilerlemesi: creato una regola su ilogic che al click del fare mi posiziona un numero ilerlemeivo. però, rastgele, esce dalla makro. Ne vorrei capire perchè.
Allego programma. si basa su un foglio.idw.
creato una nota sugli editör dei testi chiamata premontaggio ( ostyle = odoc.stylesmanager.textstyles.item("premontaggio")
creato una Variabile kişiselizzata chiamata premontaggio che va aprendere valore attraverso un modlo. Sulla makro sotto trovate anche un input box con apice youale.
alt ana()
'Parameter.update afterchange = true
dim n_premontaggio as Full
dim ointeraction as etkileşimi
Ointeraction = thisapplication.commandmanager.createinteractionevents
dim omouse as mouseevents
omouse = ointeraction.mouseevents
Addhandler omouse.onmouse display, addressof omouse_onmousedown
Ointeraction.start
"Parametre ("premontaggio") = giriş kutusu ("inserire numero premontaggio", "premontaggio", parametre ("premontaggio")
Sonunda alt alt
Sub omouse_onmousedown (button as mousebuttonenum, switchkeys as changestateenum, modelposition as point2d, view as mucit.view)
parametre.update afterchange = true
dim odrawdoc as çizimdocument
Odrawdoc = buapplication.activedocument
“ Aktif sayfaya bir referans ayarlayın.
dim oactivesheet as page
Oaktif tablo = odrawdoc.aktif tablo
“Genel nesnelere bir referans ayarlayın
dim o generalnotes as generalnotes
O genel notlar = oaktif tablo.drawingnotes. genel notes
dim heg as Geçicigeometry
Og = buapplication.transientgeometry.
“Derin olarak basit bir dize ile metin oluşturun. Bu kullanılmadığından beri
“Herhangi bir metin overrides, aktif metin stiline varsayılan olacaktır.
dim stext as string
"messagebox.show (1,1)
dim o generalnote as generalnote
“Solun yanında numaralandırılmış ve hizalanmış bir dizi not oluşturun.
dim dycoord çift olarak
dim dxcoord çift olarak
dycoord = modelleme.y
dxcoord = modelleme.x
dim ostyle as textstyle
dim odoc as çizimdocument
Odoc = buapplication.activedocument
Ostyle = odoc.stylesmanager.textstyles.item ("premontaggio")
"messagebox.show(2,2)
O genel note = o generalnotes.addfized(otg.createpoint2d(dxcoord, dycoord), parametre ("premontaggio") ostyle)
"messagebox.show(3,3)
parametre ("premontaggio") = parametre ("premontaggio") + 1
'messagebox.show(4,4)
Sonunda alt alt
Allego programma. si basa su un foglio.idw.
creato una nota sugli editör dei testi chiamata premontaggio ( ostyle = odoc.stylesmanager.textstyles.item("premontaggio")
creato una Variabile kişiselizzata chiamata premontaggio che va aprendere valore attraverso un modlo. Sulla makro sotto trovate anche un input box con apice youale.
alt ana()
'Parameter.update afterchange = true
dim n_premontaggio as Full
dim ointeraction as etkileşimi
Ointeraction = thisapplication.commandmanager.createinteractionevents
dim omouse as mouseevents
omouse = ointeraction.mouseevents
Addhandler omouse.onmouse display, addressof omouse_onmousedown
Ointeraction.start
"Parametre ("premontaggio") = giriş kutusu ("inserire numero premontaggio", "premontaggio", parametre ("premontaggio")
Sonunda alt alt
Sub omouse_onmousedown (button as mousebuttonenum, switchkeys as changestateenum, modelposition as point2d, view as mucit.view)
parametre.update afterchange = true
dim odrawdoc as çizimdocument
Odrawdoc = buapplication.activedocument
“ Aktif sayfaya bir referans ayarlayın.
dim oactivesheet as page
Oaktif tablo = odrawdoc.aktif tablo
“Genel nesnelere bir referans ayarlayın
dim o generalnotes as generalnotes
O genel notlar = oaktif tablo.drawingnotes. genel notes
dim heg as Geçicigeometry
Og = buapplication.transientgeometry.
“Derin olarak basit bir dize ile metin oluşturun. Bu kullanılmadığından beri
“Herhangi bir metin overrides, aktif metin stiline varsayılan olacaktır.
dim stext as string
"messagebox.show (1,1)
dim o generalnote as generalnote
“Solun yanında numaralandırılmış ve hizalanmış bir dizi not oluşturun.
dim dycoord çift olarak
dim dxcoord çift olarak
dycoord = modelleme.y
dxcoord = modelleme.x
dim ostyle as textstyle
dim odoc as çizimdocument
Odoc = buapplication.activedocument
Ostyle = odoc.stylesmanager.textstyles.item ("premontaggio")
"messagebox.show(2,2)
O genel note = o generalnotes.addfized(otg.createpoint2d(dxcoord, dycoord), parametre ("premontaggio") ostyle)
"messagebox.show(3,3)
parametre ("premontaggio") = parametre ("premontaggio") + 1
'messagebox.show(4,4)
Sonunda alt alt
Son düzenleme: