Hi!
I have 2 lisp programs that I want to make to one good working program.
The first program “demo.lsp” is by pbjse. Strong point of this, is that it returns the area taking in account the islands.
De second program “arealabelV1-9.lsp” Is by lee mac. it returns the area without taking in account the islands. Strong point of this program is that you can chose for a table on the drawing or in an excel sheet.
I can’t get the strong points of both these progamms to combine so that there is one programm that works.
Someone who can help me?
see attachments
gr. Laszlo
Solved! Go to Solution.
Laszlo, I told you that you can use AreaLabelV1-9.lsp by LM to acomplish your tasks completly...
In my previous post, I showed you that you'll have to change (_centroid) subfunction to be applicable to REGIONS entities...
And for boundary with Island detection, you'll have to change all occurs of this line :
(vl-cmdf "_.-boundary" "_A" "_I" "_N" "" "_O" "_P" "" "_non" p1 "")
To this :
(vl-cmdf "_.-boundary" "_A" "_I" "_Y" "_O" "_P" "" "_non" p1 "")
I thought you can figure this out by yourself... It should work...
HTH, M.R.
Sorry, it should be :
(vl-cmdf "_.-boundary" "_A" "_I" "_Y" "_O" "_R" "" "_non" p1 "")
Sorry, I still had to modify it more...
See attachment...
HTH, M.R.
Thank you very much Marko!
It works fantastic!
Now I will read it carefully to learn from it.
Lisp is not so easy like vba.
You did a great job!
gr. Laszlo