Category: Civil 3D

  • Snoop Civil 3D 2014 Database

    By Augusto Goncalves After a first launch, now it is time for a new version! The good news is that his tool uses Reflection to inspect the objects, so all new properties will appear on the list without extra work, like the new properties available on the Corridor 2014 related objects are already there. Additionally,…

  • Civil 3D .NET API: COGO Point: How to read a User-Defined Property?

    By Marat Mirgaleev Issue I need to get the value of a User-Defined Property of a COGO point. Is there any API for this?   Solution Yes, there is the CogoPoint.GetUDPValue() method for it. But it requires a parameter of one of the following types: UDPBoolean, UDPDouble, UDPEnumeration, UDPInteger or UDPString. All the User-Defined Properties…

  • Create a Corridor with Civil3D 2014 API

    By Augusto Goncalves After the quick summary of new Corridor APIs available on Civil 3D 2014, this post show how create a corridor and add a baseline with alignment and profile. Unlike other previous APIs, like Alignment and Surface, where the Create method was at the class, with Alignment.Create and TinSurface.Create respectively, to create a…

  • Corridor API 2014: new methods and properties

    By Augusto Goncalves As mentioned on our previous post on What’s New, now we can create and modify Corridor and its components, like Baselines, BaselineRegions, Assemblies and Subassemblies. As several developers create reports based on the API, this post show some of the new methods and properties available: Corridor GetLinkPoints, GetPointCodes, GetShapeCode, RegionLockMode, SlopePatterns Baselines…

  • What’s new in AUTOCAD CIVIL 3D 2014 API?

    By Partha Sarkar Along with the new look, AUTOCAD CIVIL 3D 2014 adds some important .NET API to Corridors and it's constituents like Assembly, Subassembly, BaseLines. Now, we can add / create Corridor using Autodesk.Civil.DatabaseServices.CorridorCollection.Add(string corridorName) and its overloaded methods. We can access/add/remove Baselines using the BaselineCollection class as well as modify Baseline properties.  We…

  • TinSurfaceTriangle and its vertices direction in AutoCAD Civil 3D

    By Partha Sarkar Recently I was working on a project and I had to use TinSurfaceTriangle object to access the Surface triangle vertices. You might be knowing already that TinSurfaceTriangle class encapsulates a triangle in a TinSurface in AutoCAD Civil 3D. TinSurfaceTriangle type exposes the following members –  Vertex1 – > Gets the first vertex…

  • Data sharing between AutoCAD Civil 3D and HTML5 application

    By Partha Sarkar In the process of exploring HTML5 canvas and draw geometries, I thought how about ‘creating a HTML5 application to show a Civil 3D Pipe Network geometry’.  With this goal in mind, I first approached to create a simple Civil 3D .NET application to select a Pipe, get the Pipe Network and export…

  • Pipe Network along water drop path

    By Augusto Goncalves In one of my regular Civil 3D API training the following discussion came up: how can we automate the creation of a pipe network? As you might already know, automate a process requires a very well defined rule for it, otherwise we cannot program it. So, in this case, they just need…

  • Accessing AutoCAD Civil 3D Alignment Design Speeds using .NET API

    By Partha Sarkar For a given Alignment object in AutoCAD Civil 3D, we want to find out the all the 'Station' values and the corresponding 'Design Speed' as shown in the screenshot below –   We can access these values using DesignSpeed class in Civil 3D .NET API. Here is a relevant code snippet in…

  • Resolving Style conflicts in exporting Civil 3D Object styles using .NET API

    By Partha Sarkar StyleConflictResolverType Enumeration specifies how to resolve conflicts (the same name for an existing style and a new imported style) when exporting styles to another drawing using StyleBase::ExportTo().  Members of  StyleConflictResolverType Enumeration –  CancelRemainingRenameIgnoreOverride Here is a C# .NET code snippet which demonstrates how to use Autodesk.Civil.StyleConflictResolverType in resolving conflicts –   LabelStyleCollection…