Author Topic: Intersection Point of Hatch  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

udaafri

  • Mosquito
  • Posts: 16
Intersection Point of Hatch
« on: February 11, 2023, 05:26:34 AM »
Is it possible to get the Intersection Point of Hatch with Lisp?

Crank

  • Water Moccasin
  • Posts: 1503
Re: Intersection Point of Hatch
« Reply #1 on: February 11, 2023, 05:31:45 AM »
Make sure the variable OSNAPHATCH=1
Vault Professional 2023     +     AEC Collection

udaafri

  • Mosquito
  • Posts: 16
Re: Intersection Point of Hatch
« Reply #2 on: February 11, 2023, 05:43:40 AM »
Make sure the variable OSNAPHATCH=1
Thanks for your reply.
I plan to collect all intersection points of the hatch.
I can find the intersection point of the line or Pline using AutoLisp, but not for the hatch.

ribarm

  • Gator
  • Posts: 3274
  • Marko Ribar, architect
Re: Intersection Point of Hatch
« Reply #3 on: February 11, 2023, 08:24:58 AM »
Temporarily explode hatch, find intersection points between each pair of lines and finally do undo - before explode...
It shouldn't be so hard - look for LeeMac's intersection sub functions...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

BIGAL

  • Swamp Rat
  • Posts: 1414
  • 40 + years of using Autocad
Re: Intersection Point of Hatch
« Reply #4 on: February 11, 2023, 06:59:44 PM »
There is HB.lsp hatch boundary which makes a boundary  pline of the hatch. Is this what you want ?

A man who never made a mistake never made anything

udaafri

  • Mosquito
  • Posts: 16
Re: Intersection Point of Hatch
« Reply #5 on: February 12, 2023, 10:54:03 PM »
Temporarily explode hatch, find intersection points between each pair of lines and finally do undo - before explode...
It shouldn't be so hard - look for LeeMac's intersection sub functions...

Thanks for your info.
If the hatch exploded that's no problem. I have found Lisp code.

udaafri

  • Mosquito
  • Posts: 16
Re: Intersection Point of Hatch
« Reply #6 on: February 12, 2023, 11:02:12 PM »
There is HB.lsp hatch boundary which makes a boundary  pline of the hatch. Is this what you want ?

Not this one.
I wanna get the intersection point from the hatch and create something like a circle or put the point from these points.
 

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Intersection Point of Hatch
« Reply #7 on: February 13, 2023, 01:25:08 PM »
You could create a copy of the hatch, explode the copy, and iterate over the objects generated from the explode operation using entnext, detecting intersections between such objects.

udaafri

  • Mosquito
  • Posts: 16
Re: Intersection Point of Hatch
« Reply #8 on: February 14, 2023, 04:55:02 AM »
You could create a copy of the hatch, explode the copy, and iterate over the objects generated from the explode operation using entnext, detecting intersections between such objects.

Thanks for your explanation Lee.

danAllen

  • Newt
  • Posts: 133
Re: Intersection Point of Hatch
« Reply #9 on: February 14, 2023, 12:15:37 PM »
For example of a lisp that iterates objects and finds intersections, see CAB's break lisp. This is the latest version I could find:
http://www.theswamp.org/index.php?topic=10370.msg594917#msg594917

udaafri

  • Mosquito
  • Posts: 16
Re: Intersection Point of Hatch
« Reply #10 on: February 15, 2023, 09:55:30 PM »
For example of a lisp that iterates objects and finds intersections, see CAB's break lisp. This is the latest version I could find:
http://www.theswamp.org/index.php?topic=10370.msg594917#msg594917

danAllen Thanks for your info.