Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Combine strong points of two great lisps.

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
lanieuwe
923 Views, 4 Replies

Combine strong points of two great lisps.

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

4 REPLIES 4
Message 2 of 5
marko_ribar
in reply to: lanieuwe

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.

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 3 of 5
marko_ribar
in reply to: marko_ribar

Sorry, it should be :

 

(vl-cmdf "_.-boundary" "_A" "_I" "_Y" "_O" "_R" "" "_non" p1 "")

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 4 of 5
marko_ribar
in reply to: marko_ribar

Sorry, I still had to modify it more...

 

See attachment...

 

HTH, M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 5 of 5
lanieuwe
in reply to: marko_ribar

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost