Author Topic: hatch with no area  (Read 3770 times)

0 Members and 1 Guest are viewing this topic.

DEVITG

  • Bull Frog
  • Posts: 481
hatch with no area
« on: October 22, 2008, 09:29:12 PM »
In a DWG , I have a few hachts .
Task to do : put a text with the area value , inside or near the hatch.
Problem : despite one or more hatch have the AREA property , it can not be retrieved.
Find attached  the before and the after DWG and the lisp I apply to it.
Why can it be happen.


Location @ Córdoba Argentina Using ACAD 2019  at Window 10

KewlToyZ

  • Guest
Re: hatch with no area
« Reply #1 on: October 22, 2008, 09:38:21 PM »
Without even looking at the file, what version of CAD are you running it on and does the client use Revit or one of the verticals?
i.e. C3D, MEP, ADT, 2009, 2008, etc....
Or worse yet, could they be MicroStation files?
May want to convert the hatches to a new layer in some cases with a routine to solve the issue.
The reason I ask is because once again I am as well running into client files that are a data disaster when all they needed were entity files 1/3rd the size if not smaller. Same tasks are getting done with much less resources and AEC is just not floating my boat at all.
<-- mutterings of a disgruntled manager. and yeah I am smashing the little violins playing in the background like a rock concert :P
« Last Edit: October 22, 2008, 09:43:51 PM by KewlToyZ »

DEVITG

  • Bull Frog
  • Posts: 481
Re: hatch with no area
« Reply #2 on: October 22, 2008, 09:48:38 PM »
Without even looking at the file, what version of CAD are you running it on and does the client use Revit or one of the verticals?
i.e. C3D, MEP, ADT, 2009, 2008, etc....
The reason I ask is because once again I am as well running into client files that are a data disaster when all they needed were entity files 1/3rd the size if not smaller. Same tasks are getting done with much less resources and AEC is just not floating my boat at all.
<-- mutterings of a disgruntled manager. and yeah I am smashing the little violins playing in the background like a rock concert :P
I do not know what version is .
I  make the dwg from the whole dwg by a WBLOCK .
I run 2008 plain acad.
 
the original show it at the first file line
AC1021


Location @ Córdoba Argentina Using ACAD 2019  at Window 10

KewlToyZ

  • Guest
Re: hatch with no area
« Reply #3 on: October 22, 2008, 09:56:17 PM »
does -exporttoautocad work from your command line?

KewlToyZ

  • Guest
Re: hatch with no area
« Reply #4 on: October 22, 2008, 10:09:19 PM »
How are you initializing this lisp routine? Is this separate to another routine?
I had a few beers, so I just did an AEC removal, cant tell if it fixed your issue though.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: hatch with no area
« Reply #5 on: October 23, 2008, 12:23:31 AM »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

DEVITG

  • Bull Frog
  • Posts: 481
Re: hatch with no area
« Reply #6 on: October 23, 2008, 12:36:10 PM »
How are you initializing this lisp routine? Is this separate to another routine?
I had a few beers, so I just did an AEC removal, cant tell if it fixed your issue though.


Hi, it is the  first step on a routine , no  my first step ,at  the routine.

Despite all work done by you , it keep that 2 hatch with no area available.

Thanks for it

 
Location @ Córdoba Argentina Using ACAD 2019  at Window 10

hmspe

  • Bull Frog
  • Posts: 367
Re: hatch with no area
« Reply #7 on: October 23, 2008, 02:31:14 PM »
Have you read this thread?
http://www.theswamp.org/index.php?topic=16236.0


It may or may not be significant, but there appears to be something hidden in Autocad that can affect whether hatch areas are shown.  I had two computers here where one would always give an area when a hatch was listed but the other would never give an area.  The computers were built in-house and had different motherboards and RAM, but the operating systems were the same (64 bit XP) and the Autocad installations were as identical as I could make them.  All of our drivers, lisp files, menus, etc. were copied from the "does show area" computer to the "does not show area", and all the settings in Tools/Options were cross checked as being identical.  I cross checked systems variables and everything  matched except the "last used" stuff.  I never found out why one computer would show area and the other would not.  I've since rebuilt the computer that did show areas and moved it back to 32 bit XP (because of the lack of 64 bit object enablers) and the new configuration does not show hatch areas.

Martin
"Science is the belief in the ignorance of experts." - Richard Feynman

jvillarreal

  • Bull Frog
  • Posts: 332
Re: hatch with no area
« Reply #8 on: November 25, 2008, 05:17:06 PM »
This a pretty late response...but for future reference, couldn't you just get the boundary of the hatch and display the area of that?..(i don't think there should be a problem posting hatchb as i've seen it here before)..
This program uses hatchb by JTBWorld to obtain the boundary of each hatch, then the area calculation..leaving an area field in square feet tied to the boundary..you could always modify the code to use text or mtext instead of a field so you don't have to keep the boundaries or explode the fields..It also will create a temporary text file of the areas if selected...Hope it helps in the future...
« Last Edit: November 25, 2008, 05:24:30 PM by jvillarreal »

jvillarreal

  • Bull Frog
  • Posts: 332
Re: hatch with no area
« Reply #9 on: November 25, 2008, 05:37:05 PM »
Forgot to mention that these lines may have to be modified depending on your Operating System/File Structure
(setq f (open "c:\\documents and settings\\new.txt" "w"))
(startapp "explorer" "c:\\documents and settings\\new.txt")

CarlB

  • Guest
Re: hatch with no area
« Reply #10 on: November 25, 2008, 07:22:08 PM »
A hatch will have no area property when created from a polyline that has "errors", usually overlaps within the interior.  I used "hatch_boundary" lisp from JTB World, recreated boundaries for the problem hatches, and indeed the boundary polyline was glitchy.

jvillarreal

  • Bull Frog
  • Posts: 332
Re: hatch with no area
« Reply #11 on: November 25, 2008, 07:36:08 PM »
This program seems to work for DEVITG's justparking dwg. Maybe you could post a dwg with your problem hatch so someone can try to help?