Selection
-
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 […]
-
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; […]
-
I finally came up with a succinct title for this post after struggling with "Shading a face of an AutoCAD solid with a transparent hatch pumped through the transient graphics sub-system using .NET". Or words to that effect. ๐ So yes, this post shows how to create a temporary hatch with transparent shading that then […]
-
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 […]
-
After seeing Shaan list the results of the latest AUGI wishlist, I started thinking about which of the items would be worth covering either on this blog or via a Plugin of the Month. The second item on the list, "Automatically Differentiate Manually Edited Dimensions", has (hopefully) been addressed by Dimension Patrol, this month's Plugin […]
-
I received this question by email over the weekend: How does the Editor-Method GetSelection works with Keywords. I can't get it to work and there are no information found in the internet (nothing in your blog, nothing in forums). Here's some C# code that does just this: using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.Runtime; namespace […]
-
We've had a few reports of issues with the Screenshot "Plugin of the Month". They fall into two main categories: Attempting to NETLOAD the application DLL from a network share Within the ReadMe for each of the plugins we've documented that each application's DLL module should be copied to the local file system โ preferably […]
-
Given the previous posts on this topic, I'd hope it's no great surprise to regular readers that this month's "Plugin of the Month" consists of a tool to simplify the capturing of screenshots within AutoCAD. This month's tool allows you to capture the current document, the entire application and an area of the drawing specified by […]
-
Another interesting little problem, that of how to detect the use of modifier keys during a jig operation (to indicate different jig behaviour). In this case the specific task was to detect the use of the Control and Shift keys, which โ if held down during the jig โ should cause our object to display […]