YAPgml support
YAPgml runs from a single dialog panel inside MicroStation: choose İşlem Türü (operation type) and Yapılacak İşlem (operation), fill in the fields, then press Başlat (Start). Most problems come from missing values while drawing, area differences in the floor check, or the wrong coordinate zone. Messages appear in MicroStation’s Message Center, status bar and prompt line; floor check results are also written to a .log file next to the DGN. The application’s interface and messages are in Turkish.
Articles and guides
Step-by-step help with common YAPgml tasks.
Getting started
- 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.
- Enter building information and the EPSG codeThe building ID, block, parcel, TAKBİS and MAKS values and the coordinate zone are entered once in Bina Alanı; the CityGML conversion reads them from there.
Drawing and checks
- Draw independent units and common areasDraw the unit boundaries, create each area with one click using Alan Oluştur, and enter the title deed and MAKS details in the same panel.
- 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.
3D model and CityGML
- Raise the floors and merge them into a 3D fileUse Kat Yükseltme to move each floor to its elevation and build its surfaces, then Kat Birleştirme to collect them in <file>_3d.dgn.
- Georeference the model with ground pointsIn the merged 3D file, use Geo Referans to move the model onto the ground points measured on site; the footprint and TIC curve are drawn at the same time.
- 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.
Drawing guides
- 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.
Before you start
- Keep the current yapgml.ini in the same folder as yapgml.ma, with exactly that name.
- Start new projects from the BOS.DGN template; levels and tag sets rely on it.
- Draw all floor plans side by side in one 2D DGN, each with a Kat Planı Sınırı (floor plan boundary) and a Bina Aksı (building axis).
- In Bina Alanı, choose the EPSG code for the project’s TUREF/TM 3° zone; the ground and TIC point files must use the same zone.
- Watch the units: elevations and door/window sizes are in cm; Kat Zemin Kotu in Geo Referans and building height are in m; dates are dd.mm.yyyy.
- If there is a roof storey, set its Kat No to ÇK; Çatı Katı Trimleme looks for that value.
- Closing the YAPgml dialog also unloads the application; keep it open until you’re done.
Common issues
Messages the application shows and the points users get stuck on most, with causes and fixes.
Installation and start-up
yapgml.ini was not found
Cause
The settings file isn’t in the application’s (yapgml.ma) folder, or it was renamed.
Fix
Copy the current yapgml.ini into the same folder as yapgml.ma.
The dialog box could not be opened
Cause
The application’s dialog resource couldn’t be loaded.
Fix
Remove old .ma copies, reinstall the application and restart MicroStation.
Licence warning
Cause
The licence key isn’t plugged in, its driver is missing or outdated, or the licence period has ended.
Fix
Plug in the key and update its driver; if the period has ended, contact us.
New features are missing after an update
Cause
The new release came with a new yapgml.ini and template.
Fix
Install the new yapgml.ini and start new projects from the new BOS.DGN. In older projects, run Katmanları Filtrele (filter levels) and re-enter the Bina Alanı values.
Drawing
Click inside a floor plan boundary
Cause
You clicked outside every floor plan boundary while drawing an area, door or window.
Fix
Draw that floor’s Kat Planı Sınırı first, then click inside it.
A comma-separated list of fields appeared
Cause
The drawing was finished while required fields were empty, so no tags were written.
Fix
Fill the listed fields, then redraw the area or re-tag it with Çizim Şekli › Mevcut Alandan Oluşturma.
The area could not be created
Cause
Alan Oluştur couldn’t build an area from the lines around the point you clicked.
Fix
Check that the point you click is inside a region enclosed by the floor area and boundary lines.
A width is required
Cause
Serbest Çizim Dikey/Yatay was chosen for a door or window without a width.
Fix
Enter the width in cm; for doors you can also use one of the fixed-size (70–100 cm) options.
The tag set could not be created
Cause
The tag set couldn’t be added to the DGN file.
Fix
Start the project from the BOS.DGN template; if the problem continues, contact us.
Floor check and floor operations
The floor area doesn’t match the units and common areas
Cause
Units and common areas don’t tile the floor area exactly; the difference is over 0.1 m². This limit can’t be changed.
Fix
Draw units and common areas with no gaps or overlaps.
Unit gross area difference
Cause
The entered gross area differs from the drawn unit plus its balconies by more than the BB m² Hata (%) tolerance.
Fix
Correct the gross area or the drawing. An empty tolerance means 10%; 100 or more turns these warnings off.
No entrance door for a unit
Cause
No door touches the unit boundary. Doors that only open onto a balcony don’t count.
Fix
Draw an entrance door touching the boundary and choose Kapı Tipi › Bağımsız Bölüm Kapısı.
A window exceeds the floor height
Cause
Window height plus sill height is greater than the floor height.
Fix
Check the values in cm; the total must not exceed the floor height.
Where do I see floor check errors?
Cause
Kat Kontrol writes its results to the log file and to markers in the drawing.
Fix
Open the .log file in the DGN’s folder; small circles on levels named HATA_… mark the faulty elements. Running Kat Kontrol again clears the old markers.
Floor boundary or building axis not found
Cause
Kat Birleştirme stacks floors on their Bina Aksı; one floor has no axis or boundary.
Fix
Draw a Bina Aksı inside every floor boundary and run it again. The result is written as _3d.dgn in the same folder.
Georeference, roof and CityGML
No floor area found in the project
Cause
Geo Referans was run in the 2D file; floor areas are on floor-prefixed levels only in the merged 3D file.
Fix
Run Geo Referans in the _3d.dgn created by Kat Birleştirme.
The model is in the wrong place, validation reports coordinates
Cause
The GML is written with the EPSG code from Bina Alanı, while the coordinates come from the ground point file. If they use different zones, the position is wrong.
Fix
Correct the EPSG Kodu of the Bina Alanı in the 2D file: choose Alan Oluştur, enter all the values and click inside the same building area (Mevcut Alandan Oluşturma doesn’t change the EPSG code). The 3D file’s Bina Alanı is copied during merging, so then repeat Kat Birleştirme, Geo Referans and the conversion.
Roof storey (ÇK) not found
Cause
Çatı Katı Trimleme needs a floor whose Kat No is ÇK.
Fix
Set Kat No to ÇK in the roof storey’s floor area.
No usage code for a room name
Cause
The room name isn’t in the room-usage list in the settings file.
Fix
Use one of the room names in the drop-down list.
I can’t find the object from the validation report
Cause
The report gives a gml:id (e.g. Floor_…, BBK_…), which you can’t search for directly in the drawing.
Fix
In the 3D DGN, choose Yardımcı İşlemler › GML Obje Bulma, type the gml:id and press Başlat. The GML must be in the DGN’s folder or a subfolder.
Frequently asked questions
What is the workflow from drawing to CityGML?
1) Draw floors, areas, doors and windows in a 2D DGN. The roof is drawn like a floor too: the roof storey and the roof itself are each treated as a floor and are usually drawn in 2D. 2) Clear errors with Kat Kontrol. 3) Build the 3D file with Kat Yükseltme and Kat Birleştirme. 4) Run Geo Referans in the 3D file. 5) Produce M-<YapıID>.gml with CityGML Dönüştürme. Roof parts are drawn with Çatı İşlemleri by height or slope; roof surfaces are created with Çatı Yüzey Oluşturma, and if there is a roof storey, Çatı Katı Trimleme is run.
Which EPSG code should I choose?
Choose the project’s TUREF/TM 3° zone (TM27–TM45). For example, Istanbul is TM30 but Çatalca and Silivri are TM27; Ankara is TM33 but Nallıhan is TM30. Select a zone and hold the pointer over the list to see the provinces and districts in it.
What format should the ground and TIC point files have?
Plain text, one NoktaAdı X Y Z per line, separated by spaces, with a dot as the decimal separator. Don’t add a header line, and list the points in order around the building. TIC needs at least 3 points.
What is the floor check tolerance?
Oda m² Hata (%) and BB m² Hata (%) are percentage tolerances; empty means 10%. 100 or more turns the area warnings off. The floor area is compared with the units and common areas at a fixed 0.1 m².
Does the gross area check include balconies?
Yes. The gross value is compared with the unit plus its balconies, and the net value with the sum of the rooms (net only gives a warning).
Is Kat Zemin Kotu in cm or m?
Kat Zemin Kotu in Geo Referans is in metres (e.g. 15.30). Kat Taban and Tavan Kotu are in cm.
Why aren’t values imported from the NVİ or declaration file?
Matching uses block, entrance and unit numbers. Blok No, Giriş No and BB No in the drawing must match the file; in NVİ, “-”, APA and APT block names count as empty.
Can I rename the levels?
No. Operations rely on level codes (e.g. 100 KatPlaniSiniri, 102 KatAlani, 107 BagimsizBolumAlani). In the 3D file each floor has its own levels; use Level Display › Filters to control visibility.
I’d like to try YAPgml.
Email us for a trial and include your MicroStation version.
Still stuck?
Tell us your version, what you were doing and the message you saw; a screenshot helps. We reply on weekdays between 09:00 and 18:00 Turkish time.