Kukhazikitsa Zopangira VBA ndi Microstation

Kuti apange ntchito, Microstation imathandizira zinenero zosiyana, kuphatikizapo Language Microstation Development (MDL) zomwe zimakonda ndi Bentley gurus. Ikuthandizanso zowonjezera zakale zaka zambiri zapitazo ndipo nthawi ina anapirira Java, motero Baibulo limatchedwa Microstation J.

Koma kukhala ndi kukoma ndi wopanda kwambiri kumbuyo, wothandiza monga ndi za zithunzi Basic gawo amene amabwera ndi pulogalamu, Mabaibulo isanafike XM (8.9) zikuphatikizapo mkonzi wathunthu Zooneka Basic 6.3, mu zaposachedwapa tiziwakonda.

masewera oyambirira a microstation

Kuyambira

N'zoonekeratu kuti munthu yemwe sakudziwa mapulogalamu alibe zambiri zoti achite. Komabe, kwa wina yemwe amamvetsa mapulogalamu osakondera, ndipo wasewera ndi Visual Basic 6, mudzapeza kuti mukufa pafupi ndi kuseka. Ndi pulogalamu nthawi zambiri mumabwera zitsanzo, koma apa, chinyengo chimene ndachiwona chikugwiritsira ntchito akatswiri: Gwiritsani ntchito macros.

Microstation imathandizira kupulumutsa miyambo monga mawonekedwe a macro mu mvba, pamene kuyang'ana code kuli kovuta kuyamba momwe mapulogalamu amagwirira ntchito Microstation mmalo mwa pangani malaya a manja anu kuyambira pachiyambi Kwa tsopano ine ndigwiritsa ntchito chitsanzo cha amzanga a Mexico, omwe sabata yatha iwo anandipempha ine kuti ndiwathandize kuwongolera mu Geographics.

Momwe mungapangire macro.

Zida> macro> oyang'anira polojekiti.

masewera oyambirira a microstation

Apa ntchito yatsopano imalengedwa, ndipo imapatsidwa dzina. Kawirikawiri amasungidwa Mapulogalamu a Pulogalamu / Bentley / workspace / projects / vba koma mukhoza kusankha malo alionse.

masewera oyambirira a microstation

Momwe mungapulumutsire.

Kuti muyambe kujambula, pezani chithunzi cha blue wheel. Pulogalamuyi idzachita zonse kuyambira pamenepo.

Mwachitsanzo: Lembani mpanda wawonekedwe, Zimitsani misinkhu yonse kupatula malire a apulo ndi centroid, kuchotsa limasonyeza malire kwa centroids, kulenga akalumikidzidwa mu mlingo 62, zimitsani malire, kuchotsa limasonyeza centroids kuti akalumikidzidwa, katundu lamulo theming, theming malinga ndi gawo la iwo ali maapulo ndi mtundu enieni wina gawo, ikani nthano.

Njirayi ikhoza kuyimitsidwa, kapena kutsekedwa ndi icon yofiira. Ngati batani atsekedwa kusewera, pulogalamuyi idzachita ndondomeko yonse monga momwe ndasungira. Phindu la izi ngakhale popanda mapulogalamu ndi lochititsa chidwi kwambiri ngati mutha kupeza phindu, ndakhala ndikuwona mndandanda wopangidwa ndi osakhala mapulogalamu.

Ngati mukufuna nthawi iliyonse yomwe timachita Zambiri macro imatengedwa, ndime yachinayi imayikidwa Yongolerani mosavuta, ndipo izo zidzapanga kusintha kwa fayilo msgeo.ucf.

Momwe mungasinthire code.

Kuti muwone code, panikizani batani limene limatsegula Visual Basic editor.

masewera oyambirira a microstation

Chilichonse chimasungidwa ngati gawo limodzi, koma ngati mukuchita izo pang'onopang'ono, ndiye kuti amathandizira kuphatikiza mafotokozedwe. Ikhozanso kuchitidwa ndi mwayi sitepe ndi sitepe, zomwe zingalole kuti izi ziwonongeke ndi ziwalo monga wogwiritsira ntchito.

masewera oyambirira a microstation

Chitsanzo chimene ndikukuwonetsani, chomwe chagwiritsanso kale ntchito ndi mabwenzi ochokera kumpoto, chikuphatikizapo ma modules kuonetsetsa kugwirizana kwa deta, kuwonetseratu chizoloŵezi cha ziyanjano, kulengedwa kwa mabungwe ogwirizana, kugwiritsa ntchito mutuwu ndi imodzi yokonzekera padziko lonse. Code ikhoza kunyamula achinsinsi, zomwe zimalepheretsa ogwira ntchito kuti asapangitse tsoka kapena zimapangitsa kupatukana kwa makanema a masukulu omwe sitikufuna kugawana ndi wolemba pulogalamuyo.

3 Mayankho ku "Kukula kwa VBA ntchito ndi Microstation"

Siyani yankho

Anu email sati lofalitsidwa.

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.