Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Collaborator
1450 Posts
20 Kudos
5 Solutions
Post 1 of 9

Generic lisp file that summaries areas of hatches in a table,

1015 Views, 8 Replies
03-19-2013 02:49 PM

Generic lisp file that summaries areas of hatches in a table,

 

I’m wondering if there is a lisp file that can read the boundary of the study area and the hatches and stick there areas in a table as shown in the attached screenshot

 

 

The areas of the roads are derived by subtraction the total area of hatches from the area of the study area.

 

The dwg file is attached

 

This is very frequent sort of work and takes a lot of time to be constructed. I’m already using fields to perform this kind of work.

 

Thank you

 

Best

 

Jamal

----------------------------------------------------------
Jamal NUMAN, GIS and Civil Engineer, MSc
e-mail: JamaL9722060@yahoo.com
P.O.Box: 731, Ramallah, West Bank, Palestine.
----------------------------------------------------------
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
AUTODESK EXPERT ELITE
12960 Posts
1814 Kudos
1258 Solutions
Post 2 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-19-2013 02:55 PM in reply to: JamaL9722060

Hi,

 

am I right that you have Civil3D? Then it's a default function when using that objects as GIS-objects (look to the Map3D GIS functionality).

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Collaborator
1450 Posts
20 Kudos
5 Solutions
Post 3 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-19-2013 03:31 PM in reply to: Alfred.NESWADBA

Many thanks Alfred,

 

Do you mean AutoCAD Map 3D?

----------------------------------------------------------
Jamal NUMAN, GIS and Civil Engineer, MSc
e-mail: JamaL9722060@yahoo.com
P.O.Box: 731, Ramallah, West Bank, Palestine.
----------------------------------------------------------
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
AUTODESK EXPERT ELITE
12960 Posts
1814 Kudos
1258 Solutions
Post 4 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-19-2013 11:38 PM in reply to: JamaL9722060

Hi,

 

>> Do you mean AutoCAD Map 3D?

The Map3D fucntionality is built in in Civil3D. And as you have asked questions in the Civil3D-forum I guess you have Civil3D and so you have all the GIS-functionality available.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Collaborator
1450 Posts
20 Kudos
5 Solutions
Post 5 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-22-2013 01:57 AM in reply to: Alfred.NESWADBA

Many thanks Alfred for the prompt help,

 

Sure, I do have C3D!

 

Also, I have posted the issue I’m confronting in more details in the thread below

 

http://forums.autodesk.com/t5/AutoCAD-Map-3D/Deriving-a-legend-with-areas-of-hatches-and-their-perce...

 

 

one thing I should be clear about: our workflow is lines/hatches based! No polygons are required!

 

Best

 

Jamal

----------------------------------------------------------
Jamal NUMAN, GIS and Civil Engineer, MSc
e-mail: JamaL9722060@yahoo.com
P.O.Box: 731, Ramallah, West Bank, Palestine.
----------------------------------------------------------
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
AUTODESK EXPERT ELITE
12960 Posts
1814 Kudos
1258 Solutions
Post 6 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-22-2013 10:13 AM in reply to: JamaL9722060

Hi,

 

>> one thing I should be clear about: our workflow is lines/hatches based! No polygons are required!

Then I'm out, sorry ... as I don't do development based on LISP.

 

One additional tip to how I understand this forum here: you might ask how to do things, but I don't think that there will be anyone writing that for you (for free). So either you have started some code and you have now questions to what your code is not doing ok, or what function is available you are looking for to continue your code. In any of these cases you should better show your code so others know where you are and what problems you have.

 

>> Also, I have posted the issue I’m confronting in more details in the thread below

As you mentioned you have to use lines and hatches ==> the other thread will not help you I guess.

 

Sorry, - alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Collaborator
1450 Posts
20 Kudos
5 Solutions
Post 7 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-22-2013 02:21 PM in reply to: Alfred.NESWADBA

Many thanks Alfred for the help,

 

Sure, I’ll never ask anyone to do that for me! Just I wanted to be directed to the right track to accomplish what I’m looking for. And just in case if anybody has similar kind of work

 

I agree, lines/hatch workflow has nothing to do with M3D

 

Best

 

Jamal

----------------------------------------------------------
Jamal NUMAN, GIS and Civil Engineer, MSc
e-mail: JamaL9722060@yahoo.com
P.O.Box: 731, Ramallah, West Bank, Palestine.
----------------------------------------------------------
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
AUTODESK EXPERT ELITE
12960 Posts
1814 Kudos
1258 Solutions
Post 8 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-22-2013 02:26 PM in reply to: JamaL9722060

Hi,

 

if you have no way to solve that automatically (no tool/application to do that) I would start with:

  • run command _DATAEXTRACTION to export the hatches + it's area and layer
  • open the resulting file in Excel
  • do the calculation (percentage, sum area per layer ...) you need
  • insert the resulting XLS as table into the drawing with one column free
  • in that free column/cells manually do the hatch from the objects by layer

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Highlighted
Collaborator
1450 Posts
20 Kudos
5 Solutions
Post 9 of 9

Re: Generic lisp file that summaries areas of hatches in a table,

03-22-2013 02:55 PM in reply to: Alfred.NESWADBA

Many thanks Alfred,

 

I already do this kind of work step by step as you have described but using the dynamic table available in the AutoCAD. Once I get the area of hatch for each class, the calculations are done automatically.

 

A sample is attached

 

Best

 

Jamal

----------------------------------------------------------
Jamal NUMAN, GIS and Civil Engineer, MSc
e-mail: JamaL9722060@yahoo.com
P.O.Box: 731, Ramallah, West Bank, Palestine.
----------------------------------------------------------
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Community Alert

The Autodesk Community Forums, Blogs, and Idea Boards will be in read only mode starting on 2/12 at 9PM PST through 12PM PST on 2/13. Please see the following for more information: Site Maintenance Notification

Announcements
Community Alert | The Autodesk Community Forums, Blogs, and Idea Boards will be in read only mode starting on 2/12 at 9PM PST through 12PM PST on 2/13. Please see the following for more information: Site Maintenance Notification