Jump to content

lisp for extracting areas from closed area


emadageeb

Recommended Posts

Thanks LibertyOne - with my programming, I try to keep things short and simple :)

 

I suppose a community project would be beneficial to help those learning, however it would need some coordination and structure (we tried something similar recently at theSwamp).

 

How well did that go? How successful was it? I would still be interested in doing a project like that. First off, to see how others take a different approach in solving a problem. Secondly, the learning experience - I tend to use the basic AutoLisp functions and not those starting with vl- or vlax-. But I would like to learn using these effectively in programs.

 

I'm still new to this forum, and I'm getting back into AutoLisp from using it intensively about 5 years ago. And before I forget it I wanted to brush up on it again.

Link to comment
Share on other sites

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    23

  • emadageeb

    8

  • LibertyOne

    7

  • stevesfr

    4

Top Posters In This Topic

Posted Images

How well did that go? How successful was it? I would still be interested in doing a project like that. First off, to see how others take a different approach in solving a problem. Secondly, the learning experience - I tend to use the basic AutoLisp functions and not those starting with vl- or vlax-. But I would like to learn using these effectively in programs.

 

Its an ongoing project - it has taken a while to set up and currently moves along quite slowly whilst the tasks are delegated, but its interesting to see the community working together.

 

Here are the threads if you're interested in following it:

 

http://www.theswamp.org/index.php?topic=37684.0

http://www.theswamp.org/index.php?topic=37754.0

http://www.theswamp.org/index.php?topic=37929.0

http://www.theswamp.org/index.php?topic=37930.0

 

 

Lee

Link to comment
Share on other sites

Its an ongoing project - it has taken a while to set up and currently moves along quite slowly whilst the tasks are delegated, but its interesting to see the community working together.

 

Here are the threads if you're interested in following it:

 

http://www.theswamp.org/index.php?topic=37684.0

http://www.theswamp.org/index.php?topic=37754.0

http://www.theswamp.org/index.php?topic=37929.0

http://www.theswamp.org/index.php?topic=37930.0

 

 

Lee

Thanks! I also registered there about a week ago. I'll check it out.

Link to comment
Share on other sites

Updated the code to Version 1.1, adjustment menu added to top of code, along with a few other goodies.

 

Lee

 

See Later posts for Latest Code

Edited by Lee Mac
Link to comment
Share on other sites

Code updated to Version 1.7 - this version should now hopefully work in ACAD2008.

 

Notice also the new options in the adjustment menu at the top of the code.

 

Area Label

 

AreaLabelV1-3.gif

 

Full description of features here.

 

Enjoy!

 

Lee

AreaLabelV1-7.lsp

Edited by Lee Mac
Updated to Version 1.7
Link to comment
Share on other sites

Yes sir mate. You fixed it !!! Put this on your site. Most other area programs are now deemed junk.

thanks, works perfect in Acad2008.

Steve

Link to comment
Share on other sites

Yes sir mate. You fixed it !!! Put this on your site. Most other area programs are now deemed junk.

thanks, works perfect in Acad2008.

Steve

 

Excellent to hear Steve - really glad it works for you now! I would thank CAB from theSwamp for experimenting with the table methods and suggesting a different approach for me to try.

 

I definitely intend to add it to my site :)

 

Thanks!

 

Lee

Link to comment
Share on other sites

Updated the above code to Version 1.4 to allow users to choose between picking areas and selecting objects. If objects are selected and the option to use fields in the table is set, fields will be used to link the objects to the table.

 

Enjoy!

 

Lee

Link to comment
Share on other sites

Hello Mr. Lee Mac!

I am from Austria.

I love this Lisp, and would do one more question: I work with the millimeter (mm) and the field in the table should have the unit square meter (m²). If this still possible?

I would be very happy.

Please excuse my bad English .... It is after all of Google translator!:lol:

 

Best wishes Martin

Link to comment
Share on other sites

Hi Martin,

 

To change the area to m2 and add the suffix, you can alter the Field Formatting code (located in the Adjustment Menu at the top of the code), change it to the following:

 

"%lu6%qf1%ps[,m²]%ct8[1e-006]"

Regards,

 

Lee

Link to comment
Share on other sites

Hello Mr. Lee Mac!

 

Thanks for the quick reply.

I added the code.

so "%% LU6 QF1% ps [, m]% CT8 [1e-006] ";; Area field formatting

 

Unfortunately, in the table field just above the code (so "%% LU6 QF1% ps [, m]% CT8 [1e-006]"shall not (the result!)

 

Could you help me again!

 

Thank you Mr. Lee Mac!

 

Best wishes Martin

Link to comment
Share on other sites

Hi Martin,

 

The code you added is not the code I suggested, the code should not have spaces and only use single '%' symbols - please take another look at my above post (perhaps you have viewed the post through a translator? maybe this is scrambling the code?)

 

Lee

Link to comment
Share on other sites

Hello Mr. Lee Mac!

 

But you also know everything!

Now it works great great!

Thanks for your help!

Do you know Mr. Lee Mac I am a very big fan of them.

 

Thank you!

 

Best wishes Martin

Link to comment
Share on other sites

Program updated to Version 1.6 to fix bugs with UCS, Annotative Text and Open Polylines. My thanks go to Alanjt and CAB at theSwamp for reporting these bugs :)

 

Additional items have also been added to the Adjustment Menu, including: Area Prefix/Suffix and Area Conversion Factor.

 

Latest Version may be found here.

 

Enjoy!

 

Lee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...