.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

excludeFromOsnapCalculation

5 REPLIES 5
Reply
Message 1 of 6
markodjurovic
466 Views, 5 Replies

excludeFromOsnapCalculation

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)?
5 REPLIES 5
Message 2 of 6
Anonymous
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)?
Message 3 of 6

I was afraid of that.

Anyway thank you Tony
Message 4 of 6
gooms
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!
Message 5 of 6
Anonymous
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!
Message 6 of 6
gooms
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!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost