I-VBA Microstation: Yenza imephu edibeneyo

Kwiintsuku ezimbalwa ezedlule ndibonise indlela yokuvelisa iindlela zokushicilela usebenzisa i-Microstation. Ngaphambi kokhetho lokuphatha amaphepha kunye neemodeli, kwakudingeka ukuba kwenziwe okokudala ngokudala iibhloko (iiseli) kunye nokwenza umxholo wokunciphisa.

Buyela kumzuzu wam sabatha, umzekelo endikubonisayo ngeli xesha ngumsebenzi ophuhlisiwe Visual Basic I-Microstation, apho imephu ekhonjiweyo iveliswa, okanye njengoko kuthiwa isitifiketi se-cadastral. Efanelekileyo kumasebe e-cadastre, okumele avelise imephu ngokucela, kwinqanaba, inkonzo endiyihlawulayo kodwa ukuba ngaba kungekhona i-automation kuthatha ixesha elininzi.

U-Ante wayenevidiyo endiyifumene okwesikhashana, kodwa ngeenjongo zemfundo apha ndishiya indlela yaphuhliswa ngayo kwaye yenziwe ngokwezifiso.

Iziphumo.

  • Ingqungquthela, edibeneyo kwinqanaba lefama
  • Idatha yokufikelela kwi-Access, equlethe ikholomu yommandla, i-perimeter kunye neendlela zokudibanisa. Emva koko ujoyine kwelinye idatha elinegama labarhafi berhafu (abantu), ukusuka kwikhi cadastral.
  • .Cel ifayile equlathe i iseli (block) isakhelo ne isikali 1: 100, uphawu ngasentla kunye iindawo ukongeza data evela ledatha. Oku kufuneka kufakwe kwindawo apho iilayibrari ezibhalisiweyo zigcinwa (indawo yokusebenzela / ukucwangciswa / iseli)

Kwi-VBA ifom yokubanjwa yenziwe ngefomathi yesakhiwo ngokukwikhowudi ye-cadastral yomasipala eya kuwusebenzisa. Unesithuba sokongeza ukuqwalasela kunye nezinketho ukuze zifakwe apha izichasiselo amagama abanikazi, izitshixo ze-cadastral okanye inombolo yepropati kuphela.

Indlela eyenziwa ngayo

Emva kokuba iimpawu zikhethiweyo, iqhosha "lokuvelisa isitifiketi" lixinyiwe kwaye inkqubo isebenza ngokuqhelekileyo imisebenzi eya kwenziwa ngesandla xa isicelo singatholakali.

imephu eboshwe

Ekubeni iqhutywe kwifayile entsha (umsebenzi), inkqubo ilandelayo:

  • I-flame yokubhekisela imephu edibeneyo enequlo
  • Bala inani ukusuka kwiinqununu eziqulethe icebo, ukuseka isilinganisi esifanelekileyo
  • Emva koko yakha ucingo malunga nepropati, ngobukhulu obufana nezakhiwo ezithandathu, ukwenzela ukuba ungafanele usebenze nayo yonke imephu
  • Emva koko wenza Klipu equlethe kuphela iziqendu eziyimfuneko, imida yepropati, iinombolo zefama, imida ye-apula kunye namagama esitalato. Kule nkqubo, umzekelo ukusebenza ixesha elide kuba iinqobo topological hayi afaneleka kahle kwezi iimaphu, endaweni onxulumanisa centroid edityaniswe imida, kwanyanzeleka ukuba ukudluliselwa Ukudlala edge ukuya centroid kunye nento Ukulawula imephu enye kunokuba iifayile zeendawo okanye ii-quadrants zenza uhlalutyo lunzima.
  • Ngoko ibala isikali, ukwenza ubungakanani reference block (iseli) kwinqanaba 1: 100 ukubona ukuba zibe kube utyebile okanye ubhityile kwaye beka iseli.
  • Emva koko uvelise ucingo kwisakhelo sezinto eziqukethe imephu eboshiweyo, kwaye unqumle ukwedlula.

Isiphumo

Apho kufuneka oku, isatifiketi cadastral, apho imodyuli data lifakwa njenge-arhente yokuphumeza le projekthi, i-logo kamasipala, ummandla abaliweyo, isikali, inombolo amagqabi kunye nenkcazo zibonisa.

imephu eboshwe

Xa unekhasi yesibini olwakha yokuququzelela isakhelo lwezikhululo ezahlukeneyo, imigama kunye nezalathiso eziqala kubhabho evela kocingo ngaphakathi kwisayithi, bahambisa ichaphaza kunye nenani enekona ukusuka kuloo afumaneka ngaphezulu ukuya entshona. Ukuba kuyimfuneko, ngenxa yokuba ipolgoni ineendima ezininzi, ivelisa amaqabunga afanelekileyo.

imephu eboshwe

Kuba kwiimeko kakhulu lucinga ukuba basondele kakhulu, bona ecaleni kwisitalato olubanzi kakhulu, ngoko ke iinketho wadalwa ukunyanzela isikali esilandelayo okanye usike i 1 isikali: 125 kwenkqubo ubalwe. Umzekelo walo mzekelo ufuna ukuba wenze oku kuye, kuba bebona ukuba abadibeneyo ngaphesheya kwesitrato abashiyi kuloo nqanaba.

Isicelo sisebenza kwi-Microstation Geographics V8, nangona kwithuba lexesha le nto yenziwa kunye nezinye izinto eziliwaka kuloo nkqubo ukuba ngenye imini ndiyathemba ukuthetha.

Iimpendulo ze-3 "I-VBA Microstation: Yenza imephu ehleliweyo"

  1. Ngaba unokundixelela apho ndingayithenga loo macro? kunye ne-cosnto yayo nceda? kukubonga ngokubonga

  2. Ndicinga ukuba yayiyintloko yam endiyithandayo ukuba ndikwazi ukushiya imephu echanekileyo imephu yenkqubo efanelekileyo yenkqubo jajajjaja

Shiya impendulo

Idilesi yakho ye email aziyi kupapashwa.

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.