This is Stephen Preston's Typepad Profile.
Join Typepad and start following Stephen Preston's activity
Join Now!
Already a member? Sign In
Stephen Preston
California, USA
Global Manager, Developer Technical Services, Autodesk
Recent Activity
Image
By Madhukar Moogala This form post inspired me to write this post, coincidently there was internal discussion on similar subject. When you use _COPYBASE with certain base point, the selected objects are copied in to a temp destination drawing, this temp drawing holds the INSBASE sysvar with given base point.... Continue reading
Posted Aug 8, 2019 at AutoCAD DevBlog
By Madhukar Moogala You need to use GraphicsSystem.Configuration API to set or unset various effects on graphics system. For example this will turn on LineSmoothing public string[] FeatureName = { "ACAD_Configlevel", "ACAD_2DRetainModeLevel", "ACAD_HQGeom", "ACAD_PerPixelLighting", "ACAD_AdvancedMaterial", "ACAD_FullShadows", "ACAD_TextureCompression", "ACAD_LineSmoothing", "ACAD_LineFading", "ACAD_GlowHighlighting", "ACAD_2DRetainMode", "ACAD_GPULineType", "ACAD_GPUHatch" }; [CommandMethod("GSTEST")] public void GsConfigTest() { Editor... Continue reading
Posted Jun 13, 2019 at AutoCAD DevBlog
Image
By Madhukar Moogala Alert: 32-bit version is no longer available. Overview AutoCAD 2020 provides a set of enhancements based on customer feedback, surveys, and analytic data that prioritize our efforts. Several features are the result of the need to modernize and streamline frequently used features across many customer disciplines. New... Continue reading
Posted Apr 1, 2019 at AutoCAD DevBlog
By Madhukar Moogala This post shows a simple way of drafting your selection filter, if you want to select a single entity of type A on specific layer L, and another entity of type B on several layers L1, L2, L3…. so on. Lisp Code: (defun C:FCTest() (setq sel1 (ssget... Continue reading
Posted Mar 28, 2019 at AutoCAD DevBlog
By Madhukar Moogala Unfortunately there is no direct API to detect geometric center for three classifications of polylines, one may use Topology libraries to find out, or preferably the easiest at least for me is to convert the LWPOLYLINE, AcDb2dPolyline,AcDb3dPolyline to an in-memory region, apply area properties API to fetch... Continue reading
Posted Mar 27, 2019 at AutoCAD DevBlog
Image
By Madhukar Moogala I have received a query from an OEM developer, in his Survey product Ortho snapping functionality doesn’t work in +Z/-Z direction. Here is screen GIF. AutoCAD, AutoCAD OEM, AutoCAD LT and TrueView are different manifestations of same code base, this has been singlehandedly maintained by our beloved... Continue reading
Posted Mar 27, 2019 at AutoCAD DevBlog
By Madhukar Moogala When user edit external reference in place, there is no way to get to know if user had saved the changes or discarded. If your application would like to capture the user intent, for example. if (e.GlobalCommandName == /*MSG0*/"REFCLOSE") { if (save){ //logic 1 } if(discard){ //logic... Continue reading
Posted Feb 21, 2019 at AutoCAD DevBlog
By Madhukar Moogala An example of handling some common operations for certain types of entities. This does not attempt to be a full-featured entity in the sense that it fills out every single function that it is supposed to. Its main purpose is to illustrate how to deal with pointing... Continue reading
Posted Feb 15, 2019 at AutoCAD DevBlog
By Madhukar Moogala We have recieved considerable amount of requests from developers to have a managed wrapper on classic HLR API, that comes with ObjectARX SDK of AutoCAD This sample was originally written by Cyrille, recently I managed to fix few issues with progress callback and migrated to latest AutoCAD... Continue reading
Posted Feb 1, 2019 at AutoCAD DevBlog
Join us for our special series of webinars where we’ll be going over some of the topics covered last year's DevCon events in detail (see full list below). These webinars are a great opportunity for you to learn about Autodesk Forge and, of course, where Autodesk is taking the desktop... Continue reading
Posted Jan 25, 2019 at AutoCAD DevBlog
By Madhukar Moogala CenterLine and CenterMark are two new entities based on AcDbBlockReferenes introduced in AutoCAD 2017, they are basically unnamed blockreference catering different purpose. For more information on these two entities – CenterLine & CenterMark In this post we will look at how to identifying if the underlying entities... Continue reading
Posted Sep 10, 2018 at AutoCAD DevBlog
By Madhukar Moogala This post contains a video demonstration using Wix toolset to create RealDWG installer. Though video targets to RealDWG 2019 using Visual Studio 2017 and Wix Toolset 3.11, the presentation is suitable for all previous versions with minor tweaks about release version numbers. Source of project is hosted... Continue reading
Posted Aug 3, 2018 at AutoCAD DevBlog