Notification / Events
-
AutoCAD users who work with multiple reference files – whether DWG, DWF, DGN, PDF, PCG files or raster images – usually want them to be oriented in space (and to overlay) properly. One common way to make this happen is to set the various files up in world coordinates and then attach them at the […]
-
In the last post we created a simple MText object containing sections of text with different colours. The object was located at a hard-coded location, so now we want to use a simple technique to allow placement of our MText (or any object, for that matter) in the current user coordinate system. Rather than implementing […]
-
In the previous posts in this series we introduced a command that downloaded and imported point clouds from Photosynth.net, we introduced a WinForms user interface on top of it and then replaced that UI with one implemented using WPF. As threatened last time, we're now going to make some efficiency improvements in the original command […]
-
Well, they've done it again. Having received positive feedback on Episode 1, Stephen and Fenton have now recorded another ADN DevCast, this time with a guest appearance of another member of the DevTech team, Cyrille Fauvel. During this episode they talk about disposing in .NET, diagnosing DLL load problems using gflags, and deepcloning in ObjectARX. […]
-
I received this question by email from Vito Lee: I am trying to write an event handler function in C# and can use your expertise. I am trying to display an alert box whenever a user erases a specific block in a drawing. Which event handler would be best for this situation? This one is […]
-
In response to September's Plugin of the Month - which Shaan has very kindly posted about over on Between the Lines – a few people have requested enhancements to the OffsetInXref tool. Two came up, in particular: The ability to offset the contents of blocks, not just xrefs The ability to enable the XLINE command's […]
-
In the last post we looked at some code to create a point on a curve, and make sure it stays on that curve when edited. In this post we're extending that code (albeit slightly) to work with a network of curves: the idea is that any curve which has a point created on it […]
-
Over the weekend I put together a little prototype to prove a concept for an internal project I'm working on. The idea was to force a point onto a curve (meaning anything inheriting from Curve in AutoCAD, such as Arc, Circle, Ellipse, Leader, Line, Polyline, Polyline2d, Polyline3d, Ray, Spline, Xline…), so that when the point […]
-
One of the responses to my last post on the "Plugin of the Month" asked about showing information on an AutoCAD drawing object via a tooltip. Other than using the standard rollover tooltip properties mechanism, as shown in this previous post, the best way to achieve this is via a PointMonitor. In the below C# […]
-
This was a fun little project: to enable AutoCAD's OFFSET command to work on the contents of external references (xrefs), something I'm told is a long-standing end-user wishlist request. AutoCAD's .NET API provides some very interesting events that make this possible without the need for us to implement our own OFFSET command. We can simply […]