I doubt that there's anyone that knows everything
about programming AutoCAD - there's just way too much
for one person to know and apply.
Second, your problem seems to be that you have not
taken the time and effort to learn the API that you're
trying to use, and that's really what you need to do.
When you create objects programmatically, you don't
'osnap' to them. Osnap is something that is part of
the user-interaction process (e.g., getting a point,
distance, etc., by calling a GetXxxxxx() method that
prompts for input).
If you want to for example, place the end of a line
at the intersection of two other objects, you can use
the IntersectWith() method of either of those objects,
to find their intersection(s), and then use that when
you specify the endpoint of the line.
If that's not what you had in mind, then you will need
to be more concise in the description of the problem.
In the mean time, the API you're trying to use is not
something you can learn in a few days/weeks or even
months.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"Peter Granander" wrote in message news:5257401@discussion.autodesk.com...
Hi Tony,
You seem to know almost everything about programming in Autocad. Maybe you
can help me with my problem.
I want to draw an object, line or point, and snap it to other objects.
After I snapped my object too for example an end of a line or an
intersection with more then one line, I want to know wich objects I snapped
to so I can get their objectid's.
I think I've reed about a methode in ObjectARX to get the snapped objects,
but I can't find a similar methode in .NET.
Do you know anything about this?
Best regards
Peter Granander