Author Topic: Hatch Area Doubt  (Read 3465 times)

0 Members and 1 Guest are viewing this topic.

TopoWAR

  • Newt
  • Posts: 135
Hatch Area Doubt
« on: October 30, 2011, 02:30:57 PM »
Hi Everyone!
Here with a question, I have 2 hatch, but one of them gives me the area, I would like to know why, that was formed this hatch is it impossible to calculate the area, thanks for your help.
Thanks for help

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Hatch Area Doubt
« Reply #1 on: October 30, 2011, 02:40:46 PM »
Haven't looked at your drawing as yet, but I think the Area property can be inaccessible if the hatch has a self-intersecting boundary.

TopoWAR

  • Newt
  • Posts: 135
Re: Hatch Area Doubt
« Reply #2 on: October 30, 2011, 02:45:12 PM »
Master Lee Mac, you can see the attachment to see because you can calculate the area in one of the hatch.
thanks master.
Thanks for help

BuckoAk

  • Newt
  • Posts: 69
Re: Hatch Area Doubt
« Reply #3 on: October 30, 2011, 06:14:00 PM »
Hi Everyone!
Here with a question, I have 2 hatch, but one of them gives me the area, I would like to know why, that was formed this hatch is it impossible to calculate the area, thanks for your help.

Take a look at the attached file, after regenerating the hatch boundary's I found that the left side is composed of inner and outer polylines.  while the right side is composed of multiple hatch boundary's, in order to pull an area from a hatch it must be closed and one continuous segment like your example on the left.

Hope this helps

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: Hatch Area Doubt
« Reply #4 on: November 04, 2011, 04:38:07 PM »
Haven't looked at your drawing as yet, but I think the Area property can be inaccessible if the hatch has a self-intersecting boundary.
I recreated the boundaries and I think you are correct, there appear to be self intersecting boundaries (cause by overlapping lines on the closed plines) on the hatch that the area doesn't show on.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Hatch Area Doubt
« Reply #5 on: January 13, 2016, 04:13:23 AM »
Haven't looked at your drawing as yet, but I think the Area property can be inaccessible if the hatch has a self-intersecting boundary.
What does 'inaccessible' mean? Is the area property not available? Will vla-get-area error out? I am asking because BricsCAD does not have this issue.

HasanCAD

  • Swamp Rat
  • Posts: 1423
Re: Hatch Area Doubt
« Reply #6 on: January 13, 2016, 05:00:36 AM »
Give attached a try

Lee Mac

  • Seagull
  • Posts: 12929
  • London, England
Re: Hatch Area Doubt
« Reply #7 on: January 13, 2016, 05:36:35 AM »
Haven't looked at your drawing as yet, but I think the Area property can be inaccessible if the hatch has a self-intersecting boundary.
What does 'inaccessible' mean? Is the area property not available? Will vla-get-area error out? I am asking because BricsCAD does not have this issue.

Performing (vlax-dump-object) on a hatch with a self-intersecting boundary yields the following for the Area property:
Code: [Select]
;   Area (RO) = AutoCAD.Application: Invalid input
Attempting to retrieve the area for such object:
Code: [Select]
Command: (vla-get-area (vlax-ename->vla-object (car (entsel))))

Select object: ; error: Automation Error. Invalid input
Code: [Select]
Command: (vlax-get (vlax-ename->vla-object (car (entsel))) 'area)

Select object: ; error: AutoCAD.Application: Invalid input

The Properties Palette also does not list an area.
« Last Edit: January 13, 2016, 05:40:05 AM by Lee Mac »

Tharwat

  • Swamp Rat
  • Posts: 712
  • Hypersensitive
Re: Hatch Area Doubt
« Reply #8 on: January 13, 2016, 05:40:54 AM »
Haven't looked at your drawing as yet, but I think the Area property can be inaccessible if the hatch has a self-intersecting boundary.
What does 'inaccessible' mean? Is the area property not available? Will vla-get-area error out? I am asking because BricsCAD does not have this issue.

If I may , it is neither in AutoLISP as Lee earlier approved it and in C# , here is my program in C# confirming the same error message:


roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Hatch Area Doubt
« Reply #9 on: January 13, 2016, 07:19:48 AM »
Hasan, Lee and Tharwat, thank you for your clarifications.