AutoCAD .NET
-
A big thanks to Thorsten Meinecke for pointing out the obvious issue with my prior post (the nested entity selection loop which has frustrated me unnecessarily when developing the code for that post and another). Here are the details of the fix: using Editor.GetNestedEntity() along with a PromptNestedEntityOptions object, instead of a direct message string, […]
-
In a recent comment, Adam requested the code from this previous post be modified to work in the same way as another, more recent, post: Is it possible to get a version of this code where the user is prompted to create a selection set of nested objects first, and then being prompted for the […]
-
In preparation for his upcoming AUv session, Philippe Leefsma – from our DevTech team in Europe – has recorded a DevTV all about the Associative Surfaces API introduced in AutoCAD 2011. Philippe covers three main topics in this interesting session: The Associative Framework Associative Surfaces Nurbs Surfaces DevTV: AutoCAD 2011 Surfaces API view download (82.3MB) […]
-
Just a quick note to say Glenn Ryan's latest contribution, RefUcsSpy, is now live as August's Plugin of the Month. I posted a preview of the application a few weeks ago, and you can now get the compiled plugin with complete source project from the Plugin of the Month page on Autodesk Labs. Thanks, Glenn! […]
-
During my recent stay in the Bay Area, Stephen suggested I join the San Rafael-based DevTech team to record another ADN DevCast. Our hope was to cut down the length somewhat by focusing on a single topic, but those plans pretty much went out the window as soon as I started talking. :-S 🙂 Thanks […]
-
After I'd had such fun working out how to bring point clouds from Microsoft's Photosynth into AutoCAD, I was delighted when the Autodesk Labs team came to me with the suggestion of a comparable – although ultimately more useful – integration with the then-soon-to-be-released Project Photofly. The concept was simple: provide AutoCAD users with a […]
-
Here's some simple C# code that asks the user to select an external reference and then detaches it from the current drawing: using Autodesk.AutoCAD.Runtime; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; namespace XrefApplication { public class Commands { [CommandMethod("DX")] static public void DetachXref() { Document doc = Application.DocumentManager.MdiActiveDocument; […]
-
A big thanks to Philippe Leefsma, from the DevTech team in Europe, for providing this handy piece of code in a response to an ADN member. In the last post we saw some code that made use of DBObject.HandOverTo() to maintain identity between an old line and a new one with which we wanted to […]
-
Brent Burgess commented on this previous post showing how to extend lines in AutoCAD: Is there a different process for shortening lines, or is it similar syntax? A very valid question… unfortunately the Curve.Extend() method only works with points or parameters that are outside the current definition of the curve, so we need to find […]
-
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 […]