Author Topic: A lisp to get intersection coordinates of any two objects  (Read 364 times)

0 Members and 1 Guest are viewing this topic.

Vikram

  • Newt
  • Posts: 29
A lisp to get intersection coordinates of any two objects
« on: December 30, 2019, 08:51:31 AM »
I want a lisp which can give me the intersection coordinates of any two objects like circle to lwpolyline,polyline or line. I want to write this coordinates in a text file

Lee Mac

  • Seagull
  • Posts: 12311
  • London, England
Re: A lisp to get intersection coordinates of any two objects
« Reply #1 on: December 30, 2019, 08:54:42 AM »
Consider the ActiveX intersectwith method.

BIGAL

  • Bull Frog
  • Posts: 372
  • 30 + years of using Autocad
Re: A lisp to get intersection coordinates of any two objects
« Reply #2 on: December 31, 2019, 09:50:26 PM »
OP has Intellicad no VL. Pretty sure was mentioned on another post.

Back to surveyors formulas. Inters for 2 lines.

Getpoint may be the simplest answer.

http://www.ambrsoft.com/TrigoCalc/Circles2/circlrLine_.htm
« Last Edit: December 31, 2019, 10:11:39 PM by BIGAL »
A man who never made a mistake never made anything

hmspe

  • Bull Frog
  • Posts: 338
Re: A lisp to get intersection coordinates of any two objects
« Reply #3 on: January 01, 2020, 08:49:19 AM »
The best solution I know of that does not use VL- functions is  acet-geom-intersectwith  from the express tools.

This is not as accurate as the VL-  intersectwith method because it uses line segments to approximate curves.

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

BIGAL

  • Bull Frog
  • Posts: 372
  • 30 + years of using Autocad
Re: A lisp to get intersection coordinates of any two objects
« Reply #4 on: January 05, 2020, 12:35:10 AM »
Not sure the acet functions are in Intellicad. Copying them from Autocad may breach copyrite.

2nd question how do you use the acet function there is so little documentation out there spent 1/2 hour already finding nothing. All I found was the list of 300 items and a few details on afra lisp.

Trial and error (acet-geom-intersectwith (car ent2) (car ent1) 3) similar to intersectwith has extend modes. 2 lines is 3, an arc - line can be 3 or 1.
acExtendNone Does not extend either object.
acExtendThisEntity Extends the base object.
acExtendOtherEntity Extends the object passed as an argument.
acExtendBoth Extends both objects.
« Last Edit: January 05, 2020, 12:54:14 AM by BIGAL »
A man who never made a mistake never made anything

snownut2

  • Swamp Rat
  • Posts: 959
  • Bricscad 20 Ultimate
Re: A lisp to get intersection coordinates of any two objects
« Reply #5 on: January 05, 2020, 03:31:51 AM »
There's moderately good descriptions in the BricsCad.chm file.  I think thAt can be downloaded from BricsCad website by itself.

Look in the List Processing section here

[url]https://www.bricsys.com/bricscad/help/en_US/CurVer/DevRef/index.html?page=source%2FTX_01.htm[url]
« Last Edit: January 05, 2020, 03:50:21 AM by snownut2 »

hmspe

  • Bull Frog
  • Posts: 338
Re: A lisp to get intersection coordinates of any two objects
« Reply #6 on: January 05, 2020, 08:58:07 AM »
There was a time when the express tools were openly published and free to download.  I think it would be very hard to make a case for copyright infringement.  You would need to find a copy that was clear text.  Autodesk changed to compiled files (.fas) when they started charging for the express tools.   
"Science is the belief in the ignorance of experts." - Richard Feynman

BIGAL

  • Bull Frog
  • Posts: 372
  • 30 + years of using Autocad
Re: A lisp to get intersection coordinates of any two objects
« Reply #7 on: January 05, 2020, 06:40:45 PM »
Thanks Snownut pity Autodesk does not do the same. Some interesting options.

Need vikram to confirm if in Intellicad.

geom-intersectwith is in acetutil2.fas aecauto.lsp shows which files are needed.
A man who never made a mistake never made anything