TheSwamp
Code Red => .NET => Topic started 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!
-
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.
-
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
-
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 :)
-
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.
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...
-
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.
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.
-
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
-
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.