Author Topic: Extend Operations  (Read 258 times)

0 Members and 1 Guest are viewing this topic.

opcode

  • Mosquito
  • Posts: 4
Extend Operations
« on: June 29, 2019, 05:39:31 PM »
Hi all,

Anyone know of any visual/graphic examples showing what the intersectwith. operations (extend, etc) and closestpointto extend operations are actually doing / what they are for?

Thanks!

kdub

  • Mesozoic relic
  • SuperMod
  • Swamp Rat
  • Posts: 1363
  • class keyThumper<T>:ILazy<T>
Re: Extend Operations
« Reply #1 on: June 29, 2019, 05:57:39 PM »

That's a big ask for a Sunday morning :)

What is the specific context for your request. ?
Have you done any CAD work ?


added: Welcome to theSwamp.
called Kerry in my other life

Sometimes the question is more important than the answer.
#ridesober

opcode

  • Mosquito
  • Posts: 4
Re: Extend Operations
« Reply #2 on: June 29, 2019, 06:31:10 PM »

That's a big ask for a Sunday morning :)

What is the specific context for your request. ?
Have you done any CAD work ?


added: Welcome to theSwamp.

Thank you!  Yea. I am familiar with the autocad API, and have even used these functions based on samples I've seen online but I don't like that I'm using something I don't fully understand.  The documentation doesn't really cover these functions so hoping someone can shed some light for me. 

Thank you Kdub

kdub

  • Mesozoic relic
  • SuperMod
  • Swamp Rat
  • Posts: 1363
  • class keyThumper<T>:ILazy<T>
Re: Extend Operations
« Reply #3 on: June 29, 2019, 08:19:22 PM »

Perhaps you could describe the situations you don't understand ... or post some code samples.

Keep in mind this is a peer to peer group and the more you can do to define the issue the more chance you have of getting a reasonable responce.

That and asking interesting questions help :)
called Kerry in my other life

Sometimes the question is more important than the answer.
#ridesober

MickD

  • Gator
  • Posts: 3289
  • (x-in)->[process]->(y-out)
Re: Extend Operations
« Reply #4 on: June 29, 2019, 09:03:39 PM »
If you are ever in need of further information on a method it's a good bet that there will be more info on the native method in ObjectARX

An example:
https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREF-__MEMBERTYPE_Methods_AcGeLinearEnt2d

The doc's are pretty clear on what to do and expect, intersectWith is basically vector math equation to determine where 2 linear entities intersect, you can then extend a line to that intersection by setting the end point to the intersection point.
Quote
intersectWith
Determines if two lines intersect and if so returns their intersection point. The intPnt parameter is set to something meaningful only if this function returns a value of Adesk::kTrue.

<aside> I honestly don't know why they haven't merged this info with the .Net doc's...
Debugging:
Being the detective in a crime movie where you're also the murderer.

“Someone's sitting in the shade today because someone planted a tree a long time ago.”
- Warren Buffet

opcode

  • Mosquito
  • Posts: 4
Re: Extend Operations
« Reply #5 on: June 30, 2019, 01:37:25 AM »
If you are ever in need of further information on a method it's a good bet that there will be more info on the native method in ObjectARX

An example:
https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREF-__MEMBERTYPE_Methods_AcGeLinearEnt2d

The doc's are pretty clear on what to do and expect, intersectWith is basically vector math equation to determine where 2 linear entities intersect, you can then extend a line to that intersection by setting the end point to the intersection point.
Quote
intersectWith
Determines if two lines intersect and if so returns their intersection point. The intPnt parameter is set to something meaningful only if this function returns a value of Adesk::kTrue.

<aside> I honestly don't know why they haven't merged this info with the .Net doc's...


Thank you.  This helped.

kdub

  • Mesozoic relic
  • SuperMod
  • Swamp Rat
  • Posts: 1363
  • class keyThumper<T>:ILazy<T>
Re: Extend Operations
« Reply #6 on: June 30, 2019, 02:25:44 AM »

When you've downloaded the OBJECTARX API you'll find some excellent CHM files in the docs folder ... much nicer than the html web offering.

https://www.autodesk.com/developer-network/platform-technologies/autocad/objectarx-license-download
called Kerry in my other life

Sometimes the question is more important than the answer.
#ridesober

opcode

  • Mosquito
  • Posts: 4
Re: Extend Operations
« Reply #7 on: June 30, 2019, 02:45:54 AM »

When you've downloaded the OBJECTARX API you'll find some excellent CHM files in the docs folder ... much nicer than the html web offering.

https://www.autodesk.com/developer-network/platform-technologies/autocad/objectarx-license-download

Thank you again Kdub, very much appreciated.