.NET

Reply
Active Member
markodjurovic
Posts: 9
Registered: ‎01-13-2006
Message 1 of 6 (154 Views)

excludeFromOsnapCalculation

154 Views, 5 Replies
07-17-2006 06:18 AM
If anybody knows pls help. In ObjectARX exists method excludeFromOsnapCalculation of AcEdInputPointMonitor class. Does anybody knows any class and appropiate method in .NET API (for version 2006)?
*Tony Tanzillo
Message 2 of 6 (154 Views)

Re: excludeFromOsnapCalculation

07-17-2006 03:41 PM in reply to: markodjurovic
I'm afraid not.

I've had to drop down to native ObjectARX for a number of
things (including this one) that are not exposed via .NET.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5238743@discussion.autodesk.com...
If anybody knows pls help. In ObjectARX exists method excludeFromOsnapCalculation of AcEdInputPointMonitor class. Does anybody knows any class and appropiate method in .NET API (for version 2006)?
Active Member
markodjurovic
Posts: 9
Registered: ‎01-13-2006
Message 3 of 6 (154 Views)

Re: excludeFromOsnapCalculation

07-18-2006 01:38 AM in reply to: markodjurovic
I was afraid of that.

Anyway thank you Tony
Contributor
gooms
Posts: 21
Registered: ‎12-27-2002
Message 4 of 6 (154 Views)

Re: excludeFromOsnapCalculation

04-30-2009 04:19 PM in reply to: markodjurovic
I am also looking for the equivalent of the excludeFromOsnapCalculation function. Anybody know if this function is included in the new dotNET API for AutoCAD 2010? If not, any ideas out there on how to accomplish a similar result? Thanks!
*Tony Tanzillo
Message 5 of 6 (154 Views)

Re: excludeFromOsnapCalculation

05-03-2009 12:46 AM in reply to: markodjurovic
No need for excludeFromOsnapCalculation() in AutoCAD 2010.

You can do what that native API does and much more using an OsnapOverrule.

The project at the link below includes three sample overrules, one of which
shows how to use OsnapOverrule to supress object snapping to circles.

http://www.caddzone.com/OverruleSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6174543@discussion.autodesk.com...
I am also looking for the equivalent of the excludeFromOsnapCalculation
function. Anybody know if this function is included in the new dotNET API
for AutoCAD 2010? If not, any ideas out there on how to accomplish a similar
result? Thanks!
Contributor
gooms
Posts: 21
Registered: ‎12-27-2002
Message 6 of 6 (154 Views)

Re: excludeFromOsnapCalculation

05-06-2009 11:11 AM in reply to: markodjurovic
First of all thank you so much for your sample code.

I was finally able to do some tests using your examples but I did come across a couple of problems. First is when trying to suppress object snapping to blocks (BlockReference), it seems like object snaps to the block’s sub-entities are still enabled. As far as I can tell only the Insertion Osnap is suppressed. Is there a way to suppress object snapping for the whole block (including its sub-entities)? My second problem is I still can't figure out how to suppress object snapping for a single entity.

Really appreciate your help. Thanks!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.