This is Deepak A S Nadig's Typepad Profile.
Join Typepad and start following Deepak A S Nadig's activity
Deepak A S Nadig
Bangalore
Deepak works for the Developer Technical Services at Autodesk and provides programming support and training to developers on the AutoCAD API. He lives in Bangalore, India and started his career as a C++ programmer and worked predominantly on CAD development and has a degree in Mechanical Engineering from Visvesvaraya Technological University,India. Apart from his work, he enjoys cycling and watching movies.
Recent Activity
Editor.Snap Method to change the snap mode of point
By Deepak Nadig In your workflow of using Editor.GetEntity you may sometimes want to retrieve all the co-ordinates of pickpoint used to select the entity. For example consider the following case by constructing a circle at point (0,0,5) and radius 5 on WCS XY-plane with top view. On selecting a... Continue reading
Posted Jun 1, 2020 at AutoCAD DevBlog
Comment
1
Pattern generation of linetype with text on polyline entity
By Deepak Nadig Generating linetype with text on a Polyline entity could result in linetype pattern generated continuously across all vertices as below image. This is because the linetype generation property of Polyline is ON Interactively this can be changed by issuing PEDIT command, setting Ltype gen as Off. Command:... Continue reading
Posted Oct 11, 2018 at AutoCAD DevBlog
Comment
2
Identify Mechanical Desktop file(MDT) using .NET
By Deepak Nadig Recently, we had a customer query regarding distinguishing an AutoCAD Mechanical desktop file among a set of drawing files. Answer: Mechanical desktop should have entry named AmdtFileType with a value of 84 in the Custom tab of DWGPROPS(image) One of the ways to distinguish a Autodesk Mechanical... Continue reading
Posted Jul 30, 2018 at AutoCAD DevBlog
Comment
0
Set origin while creating a hatch using .NET
By Deepak Nadig We had an issue raised by a customer regarding setting origin(image) during hatch creation. It was found that origin of hatch has to be set in a transaction other than the one in which it is created for it to work correctly. Below code can be used... Continue reading
Posted May 4, 2018 at AutoCAD DevBlog
Comment
2
Hi Vladimir,
The .NET wizard is designed to support .NET framework 4.7 environment.
Kindly ensure this for installation.
Regards,
Deepak
AutoCAD 2019 ObjectARX and .NET wizards
By Deepak Nadig We have had many users asking for new versions of wizards that are Visual Studio 2017 compatible to work with AutoCAD 2019. Here they are : AutoCAD ObjectARX 2019 Wizard AutoCAD .NET 2019 Wizard P.S: We will soon have these wizards downloadable from the Tools section of https...
Determine the radius and center of circular cone base using .NET
By Deepak Nadig We can make use of Brep support to determine the radius and center of a cone( properties shown up in the image image) with circular base. Below .NET code snippet can be used : [CommandMethod("circularConeRadiusAndCenter")] public void circularConeRadiusAndCenter() { Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; Database db = doc.Database;... Continue reading
Posted Apr 22, 2018 at AutoCAD DevBlog
Comment
0
AutoCAD 2019 ObjectARX and .NET wizards
By Deepak Nadig We have had many users asking for new versions of wizards that are Visual Studio 2017 compatible to work with AutoCAD 2019. Here they are : AutoCAD ObjectARX 2019 Wizard AutoCAD .NET 2019 Wizard P.S: We will soon have these wizards downloadable from the Tools section of... Continue reading
Posted Apr 16, 2018 at AutoCAD DevBlog
Comment
14
Set ColumnType of MText on creation of MText Object
By Deepak Nadig We recently had a query regarding eNotApplicable runtime exception thrown trying to set ColumnType when MText is created as in the snippet: MText mytext = new MText(); mytext.SetDatabaseDefaults(); mytext.Contents = "mytext"; mytext.Layer = "0"; mytext.ColorIndex = 3; mytext.Location = new Point3d(0.0, 0.0, 0.0); mytext.ColumnType = ColumnType.NoColumns; To... Continue reading
Posted Apr 6, 2018 at AutoCAD DevBlog
Comment
1
Creating tables with rows of varying heights using .NET
By Deepak Nadig Creating table using the Table.InsertColumns and Table.InsertRows is quite tricky and below are certain scenarios that can be useful : Scenario 1: Using only table.InsertColumns : Along with the specified number of columns, a single default row(without cells) is created at row index 0. Scenario 2: Using... Continue reading
Posted Sep 1, 2017 at AutoCAD DevBlog
Comment
0
Check needed to determine if a text is present in a Linetype using .NET
By Deepak Nadig Recently, an ADN partner requested for a method to check if a text is contained in a Linetype before extracting the text. To extract a text, LinetypeTableRecord.TextAt is used and it returns eNotApplicable error when text is not present at index in the record. To avoid this,... Continue reading
Posted Jun 14, 2017 at AutoCAD DevBlog
Comment
0
Rollup of a custom docked PaletteSet using .NET API
By Deepak Nadig This is my first post of 2017 and here is wishing you all a "Happy New Year" :-) Recently, we had a query from an ADN partner: How to roll up a docked and hidden custom PaletteSet using.NET API ? The behaviour the ADN partner is expecting... Continue reading
Posted Jan 6, 2017 at AutoCAD DevBlog
Comment
2
Extracting XML data of selected objects from current drawing using .NET
By Deepak Nadig Here is a blog by Kean Walmsley, which demonstrates Extracting XML data from drawings. To extract data from the selected objects of current drawing, following modification to the code in the Kean's blog is required : 1) Current drawing name and path can be used in place... Continue reading
Posted Oct 13, 2016 at AutoCAD DevBlog
Comment
0
Creating a simple Polygon Mesh
By Deepak Nadig Here is a sample code to create a simple Polygon mesh using ObjectARX. When AcDbPolygonMesh() constructor is used without any parameters,vertex count in M and N directions has to be set explicitly and it needs to be specified if PolygonMesh is to be open or closed in... Continue reading
Posted Aug 23, 2016 at AutoCAD DevBlog
Comment
0
Adding highlight overrules to selected entities only and set color
By Deepak Nadig Here is a method to add highlight overrules to selected objects only. Interactively on highlighting the objects to which overrules are added,color needs to change The code sample below adds the HighlightOverrrule to selected objects and also enables to set highlight color to each object after adding... Continue reading
Posted Jul 21, 2016 at AutoCAD DevBlog
Comment
0
Adding field to attribute value of a block inserted to modelspace
By Deepak Nadig Here is a blog by Stephen Preston which explains inserting a block with attributes. Below is a C# code to insert a field to the attribute value of a block. Create a drawing with a block named "test" containing a circle having an attribute definition(tag to be... Continue reading
Posted Jul 19, 2016 at AutoCAD DevBlog
Comment
2
Setting transparency amount of a newly created material using .NET
By Deepak Nadig To define the amount of transparency of a new material, AutoCAD .NET API uses MaterialOpacityComponent Below code adds a new material to Material Library with transparency amount set to 90. [CommandMethod("AddMaterialToLibrary")] public static void AddMaterialToLibrary() { Document doc = Application.DocumentManager.MdiActiveDocument; String sMaterialName = "MyMaterial"; String sTextureMapPath =... Continue reading
Posted May 25, 2016 at AutoCAD DevBlog
Comment
0
Deepak A S Nadig is now following The Typepad Team
May 24, 2016
Subscribe to Deepak A S Nadig’s Recent Activity