TheSwamp

Code Red => .NET => Topic started by: opcode on June 29, 2019, 05:39:31 PM

Title: Extend Operations
Post by: opcode 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!
Title: Re: Extend Operations
Post by: kdub 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.
Title: Re: Extend Operations
Post by: opcode 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
Title: Re: Extend Operations
Post by: kdub 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 :)
Title: Re: Extend Operations
Post by: MickD 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...
Title: Re: Extend Operations
Post by: opcode 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.
Title: Re: Extend Operations
Post by: kdub 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
Title: Re: Extend Operations
Post by: opcode 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.