YAPgml Training
YAPgml is a MicroStation add-in that runs from a single dialog panel and turns a building application project into a TKGM-compliant CityGML building model. This guide summarises the basic workflow from installation to conversion.
Video Lessons
YAPgml brings drawing, data entry and GML conversion for 3D digital building models together in one application. This series covers the basics of using it.
25 videos · 5 modules · about 64 minutes
User Guide
Read the guide on this page or download it as a PDF.
Section 1
Installation
YAPgml is a MicroStation add-in (an MDL application). The installer and the licence are arranged with Ekistika. Keep the following in mind when you install or update:
- The settings file
yapgml.inimust be in the same folder as the application fileyapgml.ma, with exactly that name. Otherwise you seeyapgml.ini dosyası bulunamadı.(yapgml.ini was not found). - The settings file can change with a release. Version 2.17 requires the new
yapgml.ini, and projects must be created from the newBOS.DGNtemplate. - If you get a licence warning, check the licence key and its driver; if the problem continues, contact Ekistika.
- The application opens a single dialog panel titled Y.A.P.gml v2.17.4. Closing the panel also unloads the application. The interface and messages are in Turkish.
Section 2
First Steps
For every operation you choose İşlem Türü (operation type) first, then Yapılacak İşlem (operation). The panel rows change with the operation; unused rows stay grey. Drawing operations start as soon as you select them; other operations run when you press Başlat (Start). Messages appear in MicroStation’s Message Center, status bar and prompt line.
How a Project Flows
The HKMO training videos follow this order:
- Open the project from the
BOS.DGNtemplate, then reference the architectural project and scale it. - For the first floor, draw the Kat Planı Sınırı (floor plan boundary), Bina Aksı (building axis) and Kat Alanı (floor area). All floors sit side by side in the same 2D DGN.
- Draw the rooms (Oda Alanı), the door and window openings (Kapı, Pencere) and the balconies (Balkon Sınırı, Balkon Duvarı, Balkon Alanı).
- Create the Bağımsız Bölüm Alanı (unit areas) and Ortak Alan (common areas), then move on to the other floors.
- Draw the Bina Alanı (building area) and enter the building information and EPSG code.
- Draw the roof. Both the roof storey and the roof itself are treated as floors and are usually drawn in the 2D file.
- Use Kat İşlemleri (floor operations) to check the drawing (Kat Kontrol), move the floors to their elevations (Kat Yükseltme) and merge them into a 3D file (Kat Birleştirme).
- In the 3D file, move the model onto the ground points with Geo Referans (georeference).
- Produce
M-<Yapı ID>.gmlwith CityGML Dönüştürme (CityGML conversion).
MicroStationÇizim için nokta giriniz
Section 3
Key Features
| Operation type | What it’s for |
|---|---|
| Çizim İşlemleri (drawing) | Floor plan boundary, building axis, building and floor area, inner floor area, outer floor structure, unit boundary and area, common area, room area and inner room structure, balcony, door and window. Areas can be drawn freely, defined by selection, or built from boundary lines in one click with Alan Oluştur (create area). |
| Kat İşlemleri (floors) | Kat Kontrol writes its results to a .log file next to the DGN and to HATA_ levels in the drawing. Kat Yükseltme moves the floors to their elevations and builds their surfaces. Kat Birleştirme collects the floors on their building axes in <name>_3d.dgn. |
| Georeferans İşlemleri (georeference) | Geo Referans moves the model onto the ground points and draws the footprint and the TIC curve. Model - Bina Eşleştirme matches the model by hand from corner points. |
| Çatı İşlemleri (roof) | Drawing the main structure, details, annexes, roof lines, lower and upper domes and roof surfaces; Çatı Yüzey Oluşturma (create roof surfaces) and Çatı Katı Trimleme (trim the roof storey). |
| Dönüşüm İşlemleri (conversion) | CityGML Dönüştürme reads the details from Bina Alanı and writes the CityGML 2.0 file to the DGN folder. |
| Yardımcı İşlemler (helpers) | Katmanları Filtrele (filter levels), NVİ Dosyadan Al and Beyanı Dosyadan Al (CSV import), Üçgen Döndürme (flip triangles), Nokta Editörü (point editor), Koordinat Bulma (find coordinate), GML Obje Bulma (find GML object), Yükseltilmiş Yüzey Temizleme (clean raised surfaces). |
Roofs: Height or Slope
When you draw roof parts, a Yükseklik (height, m.) value takes priority. If Yükseklik is empty, each clicked point’s height is calculated from the previous point using Eğim (slope, %), which can be + or −. If there is a roof storey, set its Kat No to ÇK; Çatı Katı Trimleme looks for this value.
MicroStationÇizim için nokta giriniz
Units
| Value | Unit |
|---|---|
| Kat Taban Kotu, Kat Tavan Kotu, Kat Tavan Kalınlığı, Bina Çatı Kotu | cm |
| Door and window sizes, Zeminden Yüksekliği, Balkon Yüksekliği, Duvar Kalınlığı, axis sizes | cm |
| Bina Yüksekliği, Kat Zemin Kotu in Geo Referans, roof Yükseklik | m |
| Unit, room and balcony areas | m2 |
| Eğim (slope); Kat Kontrol tolerances | % |
| Proje Onay Tarihi (project approval date) | dd.mm.yyyy |
Levels and Filters
Operations rely on level codes (for example 100 KatPlaniSiniri, 102 KatAlani, 107 BagimsizBolumAlani), so don’t rename the levels. In the 3D file, each floor is on prefixed levels (for example 1_KatAlani). To switch floors on and off easily, choose Filters instead of Levels in Level Display. Filters are created with Katmanları Filtrele; a floor filter, for example, groups all of that floor’s levels. In older versions, filters were created during Kat Birleştirme.
Section 4
FAQ
Which operations belong in the 2D file and which in the 3D file?
Drawing, Kat Kontrol, Kat Yükseltme and Kat Birleştirme are done in the 2D file. Geo Referans and CityGML Dönüştürme work in the _3d.dgn file created by Kat Birleştirme. NVİ Dosyadan Al and Beyanı Dosyadan Al work in both files.
The panel closed and the commands stopped working. What happened?
Closing the YAPgml dialog also unloads the application. Load YAPgml again and keep the panel open while you work.
Why are some Seçenek and Parametre rows grey?
The rows change with the selected operation. Rows the operation doesn’t use aren’t hidden; they appear grey with a generic label (Seçenek, Parametre 1 …).
Can there be more than one building area?
Yes. You can define more than one Bina Alanı inside the same Kat Planı Sınırı. All values except Bina Çatı Kotu must be identical; roof drawing and trimming can then be done separately for each building area.
How do I use the new features in a project drawn with an older version?
Open the 2D drawing. Run the level operation in Yardımcı İşlemler (Katmanları Filtrele). Re-create the Bina Alanı or edit its tags to enter the EPSG, Yapı ID, neighbourhood, block and parcel details. Then continue with Kat Yükseltme and Kat Birleştirme. Because the level structure changed, version 2.17 is recommended especially for projects drawn from scratch.
How do I find an object from the validation report?
In the 3D file, choose Yardımcı İşlemler › GML Obje Bulma, type the gml:id from the report (for example Floor_…, BBK_…) and press Başlat. The GML file must be in the DGN’s folder or a subfolder.
Is there a training video?
Yes. HKMO’s training videos (in Turkish) cover every step from referencing to GML conversion; the second video also has a roof drawing chapter. The link is on the YAPgml support page.
Detailed Support Articles
Step-by-step help with the topics in this guide.
- Start a New Project in YAPgmlStart from the BOS.DGN template, lay the floor plans side by side, and draw a Kat Planı Sınırı, Bina Aksı and Kat Alanı for each floor.
- Check the Drawing with Kat KontrolRun Kat Kontrol, review the results in the .log file and on the HATA_ levels in the drawing, and set the area tolerances.
- Convert to CityGML and Find Validation ErrorsProduce M-<YapıID>.gml with CityGML Dönüştürme in the 3D file, and use GML Obje Bulma to see an object from the validation report in the model.
- TKGM CityGML door typesBuilding entrance, exterior, independent unit and internal doors; rules for drawing doors.
- TKGM CityGML window typesExterior and internal windows; default values when the project gives no dimensions.
- Drawing balconies and terracesDrawing the outer boundary of balconies and terraces, the balcony wall and the balcony door.