Hello Tharwat, that is really spectacular, congratulations again on a job very well done.
It is sort of hypnotic watching it work.
I don't know when I might have occasion to use it in my work, but I will definitely download it
and look forward to a time when I might have use of it.
Thanks very much and keep up the great work.
A 1st step You can add the area after d (vlax-curve
Need to add a check is the property area obtainable for the object, as a Line has no area so use a IF
(if (= "AcDbLine" (vla-get-objectname))
(setq area 0.0)
(setq area (vla-get-area (vlax-ename->vla-object ent)))
)
2nd Step need to probably do a check of layer name in list and do totals writing to table when layer name changes.
Lastly a google should find what you want its a common request.