Message 1 of 17
lentityp during mapimport

Not applicable
05-25-2018
07:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
this is my code so far.
_$ (defun c:shp_hir () (command "._mapimport" "n" "fólia" "Adott" (vl-string-trim ".shp" (strcat "Default:"(getfiled "Válaszd ki az shp fájlokat" "" "shp" 8))) "fólia" "adatmezőből" (if (=(entnext "v_elhmod")"v_elhmod") "v_elhmod" "V_ELHMOD") "adat" "létrehoz" "tovább" "tovább") (if (tblsearch "Layer" "2") (progn (setq OLDLAY "2") (setq NEWLAY "Opa") (command "-laymrg" "N" OLDLAY "" "N" NEWLAY "i"))) (if (tblsearch "Layer" "3") (progn (setq OLDLAY "3") (setq NEWLAY "Opa") (command "-laymrg" "N" OLDLAY "" "N" NEWLAY "i"))) (if (tblsearch "Layer" "1") (progn (setq OLDLAY "1") (setq NEWLAY "Opl") (command "-laymrg" "N" OLDLAY "" "N" NEWLAY "i"))) ) _$
With this line I am trying to get one of the object data's name from a layer that I want to import.
(if (=(entnext "v_elhmod")"v_elhmod") "v_elhmod" "V_ELHMOD")
Sadly i get lentityp. Once I get the correct object data's name (v_elhmod or V_ELHMOD) I am going to set the imported layer's name to the object's data. Then the "if part" takes place.
Can anyone help with this?
Thanks
David