<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
    <title>Infrastructure Modeling DevBlog </title>
    
    <link rel="alternate" type="text/html" href="http://adndevblog.typepad.com/infrastructure/" />
    <id>tag:typepad.com,2003:weblog-101583682128746252</id>
    <updated>2013-06-19T00:07:12-07:00</updated>
    
    <generator uri="http://www.typepad.com/">TypePad</generator>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/InfrastructureModelingDevblog" /><feedburner:info uri="infrastructuremodelingdevblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
        <title>AutoCAD Civil 3D and Pressure Pipe .NET API, Part - I</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/KtWoG4Tgs1s/autocad-civil-3d-and-pressure-pipe-net-api-part-i.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/06/autocad-civil-3d-and-pressure-pipe-net-api-part-i.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b01910382f33f970c</id>
        <published>2013-06-19T00:07:12-07:00</published>
        <updated>2013-06-19T00:07:12-07:00</updated>
        <summary>By Partha Sarkar Pressure Pipe is relatively a new Feature in AutoCAD Civil 3D which was introduced in previous release. This is an evolving feature which was enhanced in the current release and I see a scope of further enhancement in the coming days. Certain objects and it's functionalities of...</summary>
        <author>
            <name>Partha Sarkar</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AUTOCAD CIVIL 3D 2014" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Partha Sarkar" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html" target="_self">Partha Sarkar</a></p>
<p> </p>
<p>Pressure Pipe
is relatively a new Feature in AutoCAD Civil 3D which was introduced in
previous release. This is an evolving feature which was enhanced in the current
release and I see a scope of further enhancement in the coming days. Certain
objects and it's functionalities of Pressure Pipe is also exposed in .NET API
and it is packaged in its own assembly called "<strong>AeccPressurePipesMgd.dll</strong>"
and you <span style="text-decoration: underline;">need</span> to reference the same assembly to use Pressure Pipes .NET API
features.</p>
<p> </p>
<p>In this
screenshot we can see currently available classes in <strong>AeccPressurePipesMgd.dll</strong> -</p>
<p>
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b0192ab4b3e6d970d-pi" style="display: inline;"><img alt="Civil3D2014_PressurePipeAPI" class="asset  asset-image at-xid-6a0167607c2431970b0192ab4b3e6d970d" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b0192ab4b3e6d970d-500wi" title="Civil3D2014_PressurePipeAPI" /></a><br /><br /></p>
<p> </p>
<p><strong>CivilDocumentPressurePipesExtension</strong>
has a <em><strong>static</strong></em> method <em><strong>GetPressurePipeNetworkIds</strong></em>(CivilDocument document) which
will get us the <em><strong>ObjectIdCollection</strong></em> of the PressurePipeNetworks in the current
Civil 3D DWG file and that's going to be our access point. </p>
<p> </p>
In the next post we
will explore more on Pressure PipeNetwork .NET API in Civil 3D 2014; till then,
don't hesitate to post your comment here on what you have explored so far, in
Pressure Pipe .NET API and what you would like to see in future release.<xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/KtWoG4Tgs1s" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/06/autocad-civil-3d-and-pressure-pipe-net-api-part-i.html</feedburner:origLink></entry>
    <entry>
        <title>How do I change the default styles of Points in AutoCAD Civil 3D using .NET API?</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/ebqkSbgNjLw/how-do-i-change-the-default-styles-of-points-in-autocad-civil-3d-using-net-api.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/06/how-do-i-change-the-default-styles-of-points-in-autocad-civil-3d-using-net-api.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b019103358fb4970c</id>
        <published>2013-06-10T22:44:56-07:00</published>
        <updated>2013-06-10T22:44:56-07:00</updated>
        <summary>By Partha Sarkar In AutoCAD Civil 3D ‘Create Points’ dialog, under Parameter if you expand the ‘Default Styles’ collection, you will see the default ‘Point Style’ and ‘Point Label Style’ field and their corresponding values in the ‘Value’ column as shown in the screenshot below – If you want to...</summary>
        <author>
            <name>Partha Sarkar</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AutoCAD Civil 3D 2012" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AutoCAD Civil 3D 2013" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AUTOCAD CIVIL 3D 2014" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Partha Sarkar" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html" target="_self">Partha Sarkar</a></p>
<p>In AutoCAD
Civil 3D ‘Create Points’ dialog, under Parameter if you expand the ‘Default
Styles’ collection, you will see the default ‘Point Style’ and ‘Point Label
Style’ field and their corresponding values in the ‘Value’ column as shown in
the screenshot below –</p>
<p>
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901d3f73aa970b-pi" style="display: inline;"><img alt="Civil3D_Point_Default_Style" class="asset  asset-image at-xid-6a0167607c2431970b01901d3f73aa970b" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901d3f73aa970b-500wi" title="Civil3D_Point_Default_Style" /></a><br /><br /></p>
<p>If you want to change these default style values using
Civil 3D .NET API, you need to get the <strong>SettingsPoint</strong> object first and then
update the Style and Label styles value as shown in the C# .NET code snippet
below –</p>
<div style="font-family: Courier New; font-size: 8pt; color: black; background: white;">
<p style="margin: 0px;"><span style="color: blue; line-height: 140%;">using</span><span style="line-height: 140%;"> (</span><span style="color: #2b91af; line-height: 140%;">Transaction</span><span style="line-height: 140%;"> trans = db.TransactionManager.StartTransaction())</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">{</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: green; line-height: 140%;">// get the SettingsPoint object</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: #2b91af; line-height: 140%;">SettingsPoint</span><span style="line-height: 140%;"> pointSettings = civilDoc.Settings.GetSettings&lt;</span><span style="color: #2b91af; line-height: 140%;">SettingsPoint</span><span style="line-height: 140%;">&gt;() </span><span style="color: blue; line-height: 140%;">as</span><span style="line-height: 140%;"> </span><span style="color: #2b91af; line-height: 140%;">SettingsPoint</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: green; line-height: 140%;">// now set the value for default Style and Label Style</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: green; line-height: 140%;">// make sure the values exists in DWG file before you try to set them</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  pointSettings.Styles.Point.Value = </span><span style="color: #a31515; line-height: 140%;">"Benchmark"</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  pointSettings.Styles.PointLabel.Value = </span><span style="color: #a31515; line-height: 140%;">"Elevation Only"</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">  trans.Commit();</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">}</span></p>
</div>
<p> </p>
<p>Once you run your custom application the default style
and labels style value for Point object will be changed – </p>
<p>
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901d3f74ff970b-pi" style="display: inline;"><img alt="Civil3D_Point_Default_Style_afterChange" class="asset  asset-image at-xid-6a0167607c2431970b01901d3f74ff970b" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901d3f74ff970b-500wi" title="Civil3D_Point_Default_Style_afterChange" /></a><br /><br /></p>
<p>Hope this is useful to you!</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/ebqkSbgNjLw" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/06/how-do-i-change-the-default-styles-of-points-in-autocad-civil-3d-using-net-api.html</feedburner:origLink></entry>
    <entry>
        <title>Creating Offset Alignments using Civil 3D .NET API</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/BYCE7ZpYSA4/creating-offset-alignments-using-civil-3d-net-api.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/06/creating-offset-alignments-using-civil-3d-net-api.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b0192aabfa331970d</id>
        <published>2013-06-04T22:52:57-07:00</published>
        <updated>2013-06-04T22:52:57-07:00</updated>
        <summary>By Partha Sarkar In Civil 3D .NET API, Alignment class has an overloaded method named CreateOffsetAlignment() which allows us to create an offset Alignment. One of the overloaded methods Alignment.CreateOffsetAlignment (Double) is now obsolete [ 2013 &amp; 2014 release]. There is a code sample on how to create offset Alignment...</summary>
        <author>
            <name>Partha Sarkar</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AutoCAD Civil 3D 2013" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AUTOCAD CIVIL 3D 2014" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html" target="_self">Partha Sarkar</a></p>
<p>In Civil 3D
.NET API, Alignment class has an overloaded method named
<strong>CreateOffsetAlignment()</strong> which allows us to create an offset Alignment. One of
the overloaded methods <em>Alignment.CreateOffsetAlignment (Double)</em> is now <span style="color: #ff0000;">obsolete</span>
[ 2013 &amp; 2014 release]. </p>
<p> </p>
<p>There is a
code sample on how to create offset Alignment available at Civil 3D
installation folder :</p>
<p>&lt;Civil 3D
Installation Folder&gt;\<strong>Sample\Civil 3D API\DotNet\CSharp\OffsetAlignmentDemo </strong></p>
<p>This sample
uses the following version of CreateOffsetAlignment() -</p>
<p><span style="color: #0000ff;">public
static ObjectId <strong>CreateOffsetAlignment</strong>(</span></p>
<p><span style="color: #0000ff;">               string alignmentName,</span></p>
<p><span style="color: #0000ff;">               ObjectId parentAlignmentId,</span></p>
<p><span style="color: #0000ff;">               double offset,</span></p>
<p><span style="color: #0000ff;">               ObjectId styleId</span></p>
<p><span style="color: #0000ff;">)</span></p>
<p> </p>
<p><span style="background-color: #ffff00; font-size: 10pt;"><span style="font-family: 'Courier New'; color: #2b91af; line-height: 140%;">Alignment</span><span style="font-family: 'Courier New'; line-height: 140%;">.CreateOffsetAlignment(</span><span style="font-family: 'Courier New'; color: #2b91af; line-height: 140%;">String</span><span style="font-family: 'Courier New'; line-height: 140%;">.Format(</span><span style="font-family: 'Courier New'; color: #a31515; line-height: 140%;">"Offset {0} Right"</span><span style="font-family: 'Courier New'; line-height: 140%;">, d), alignId, d, styleId);</span></span></p>
<p>In the Code
sample you will notice it tries to get the styleId for a specific Alignment
style and if that style object is not present in your test DWG file your
application will throw an error. So, you need to be careful to modify the
following line of the sample code as per your requirement -</p>
<div style="font-family: Courier New; font-size: 8pt; color: black; background: white;">
<p style="margin: 0px;"><span style="font-size: 10pt;"><span style="color: blue; line-height: 140%;">var</span><span style="line-height: 140%;"> styleId = doc.Styles.AlignmentStyles[</span><span style="color: #a31515; line-height: 140%; background-color: #ffff00;">"Offsets"</span><span style="line-height: 140%;">];</span></span></p>
</div>
<p> </p>
<p>And here is
the result you will see if you successfully run the same code sample in Civil
3D :</p>
<p> </p>
<p>
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b019102f74ce3970c-pi" style="display: inline;"><img alt="Offset_Alignment" class="asset  asset-image at-xid-6a0167607c2431970b019102f74ce3970c" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b019102f74ce3970c-500wi" title="Offset_Alignment" /></a><br /><br /></p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/BYCE7ZpYSA4" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/06/creating-offset-alignments-using-civil-3d-net-api.html</feedburner:origLink></entry>
    <entry>
        <title>Is there a way to determine if a specific Style object is in-use?</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/F7AN79ek6ug/is-there-a-way-to-determine-if-a-specific-style-object-is-in-use.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/is-there-a-way-to-determine-if-a-specific-style-object-is-in-use.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b0191026f214f970c</id>
        <published>2013-05-22T22:34:19-07:00</published>
        <updated>2013-06-03T22:19:27-07:00</updated>
        <summary>By Partha Sarkar In Civil 3D UI, if we expand the styles collection of a Civil 3D object, you will notice the yellow triangle next to it which indicates this style is 'in-use', e.g. in the screenshot we see the style collection of Surface styles which are in use -...</summary>
        <author>
            <name>Partha Sarkar</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AUTOCAD CIVIL 3D 2014" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Partha Sarkar" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html" target="_self">Partha Sarkar</a></p>
<p>In Civil 3D
UI, if we expand the styles collection of a Civil 3D object, you will notice
the yellow triangle next to it which indicates this style is 'in-use', e.g. in
the screenshot we see the style collection of Surface styles which are in use -</p>
<p>
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b0192aa37999e970d-pi" style="display: inline;"><img alt="Styles_01" class="asset  asset-image at-xid-6a0167607c2431970b0192aa37999e970d" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b0192aa37999e970d-500wi" title="Styles_01" /></a></p>
<p> </p>
<p>In Civil 3D
2014 .NET API, we have a very useful API <strong>StyleBase.IsUsed</strong> which will tell us if
a particular style is in-use.  Here is a
relevant C# code snippet :</p>
<p> </p>
<div style="font-family: Courier New; font-size: 8pt; color: black; background: white;">
<p style="margin: 0px;"><span style="color: blue; line-height: 140%;">foreach</span><span style="line-height: 140%;"> (</span><span style="color: #2b91af; line-height: 140%;">ObjectId</span><span style="line-height: 140%;"> surfaceStyleId </span><span style="color: blue; line-height: 140%;">in</span><span style="line-height: 140%;"> civilDoc.Styles.SurfaceStyles)</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">{</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: green; line-height: 140%;">//  Open each style object to check if it is "in-use"  </span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: #2b91af; line-height: 140%;">SurfaceStyle</span><span style="line-height: 140%;"> csStyle = surfaceStyleId.GetObject(</span><span style="color: #2b91af; line-height: 140%;">OpenMode</span><span style="line-height: 140%;">.ForRead) </span><span style="color: blue; line-height: 140%;">as</span><span style="line-height: 140%;"> </span><span style="color: #2b91af; line-height: 140%;">SurfaceStyle</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: blue; line-height: 140%;">if</span><span style="line-height: 140%;"> (<span style="background-color: #ffff00;">csStyle.IsUsed</span>)</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">    surfaceStyleNameColl = surfaceStyleNameColl + </span><span style="color: #a31515; line-height: 140%;">"\n "</span><span style="line-height: 140%;"> + csStyle.Name.ToString();</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">}</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b0191026f2318970c-pi" style="display: inline;"><img alt="Styles_02" class="asset  asset-image at-xid-6a0167607c2431970b0191026f2318970c" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b0191026f2318970c-500wi" title="Styles_02" /></a><br /></span></p>
<p style="margin: 0px;"> </p>
<p> </p>
</div><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/F7AN79ek6ug" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/is-there-a-way-to-determine-if-a-specific-style-object-is-in-use.html</feedburner:origLink></entry>
    <entry>
        <title>AUTOCAD Civil 3D API Wishlist Survey, 2013</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/dQs4HWndN_4/autocad-civil-3d-api-wishlist-survey-2013.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/autocad-civil-3d-api-wishlist-survey-2013.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b0191023c4064970c</id>
        <published>2013-05-17T04:14:29-07:00</published>
        <updated>2013-05-17T04:08:10-07:00</updated>
        <summary>By Partha Sarkar Each year we organize a survey to find out what improvements you'd like to see on the AutoCAD® Civil 3D® API front. Here is your chance this year round to provide some feedback: Click here to take survey The survey is ending on the 15th of June...</summary>
        <author>
            <name>Partha Sarkar</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="Announcement" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AUTOCAD CIVIL 3D 2014" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Partha Sarkar" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html" target="_self">Partha Sarkar</a></p>
<p>Each year we organize a survey to
find out what improvements you'd like to see on the <strong>AutoCAD®
Civil 3D® API</strong> front. Here is your chance this year round to provide some
feedback:  <a href="https://www.surveymonkey.com/s/Civil3DAPIWishListSurveyY2013">Click here to take survey</a>
<strong /></p>
<p><strong>The survey is ending on the 15<sup>th</sup>
of June 2013.</strong></p>
<p>Don’t miss this opportunity to send
us your wish list. Thank you in advance! :)</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/dQs4HWndN_4" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/autocad-civil-3d-api-wishlist-survey-2013.html</feedburner:origLink></entry>
    <entry>
        <title>Creating a SectionView and setting its elevation range using .NET API</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/24FDqj42TGc/creating-a-sectionview-and-setting-its-elevation-range-using-net-api.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/creating-a-sectionview-and-setting-its-elevation-range-using-net-api.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b01901c27ee0d970b</id>
        <published>2013-05-14T01:56:50-07:00</published>
        <updated>2013-05-14T01:54:41-07:00</updated>
        <summary>By Partha Sarkar Civil 3D 2014 .NET API has a static method to create a new SectionView which takes three parameters and adds a new SectionView - public static ObjectId Create(string sectionViewName, ObjectId sampleLineId, Point3d location) Once we add a new SectionView, next we can set the maximum and minimum...</summary>
        <author>
            <name>Partha Sarkar</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AUTOCAD CIVIL 3D 2014" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Partha Sarkar" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html" target="_self">Partha Sarkar</a></p>
<p>Civil 3D 2014 <a href="http://docs.autodesk.com/CIV3D/2014/ENU/API_Reference_Guide/index.html">.NET API</a> has a static method to create a new <strong>SectionView
</strong>which takes three parameters and adds a new  <strong>SectionView -   </strong>public static <strong>ObjectId</strong> Create(<strong>string</strong> <em>sectionViewName</em>,      <strong>ObjectId</strong> <em>sampleLineId</em>,    <strong>Point3d</strong> <em>location</em>) </p>
<p>Once we add a new <strong>SectionView</strong>, next we
can set the maximum and minimum elevation using the following property : </p>
<p><strong>SectionView.ElevationMax</strong> -&gt; Gets or
sets the maximum elevation of the section view.</p>
<p><strong>SectionView.ElevationMin</strong>  -&gt; Gets or sets the minimum elevation of
the section view. </p>
<p> </p>
<p>When we add a new <strong>SectionView</strong> by
default the '<strong>Elevation range</strong>' is set to "<strong>Automatic</strong>". If we want to
set it to "<strong>User specified</strong>" as shown in the screenshot below using the
API, then we need to set the <strong>IsElevationRangeAutomatic</strong> property to <em><strong>false</strong></em>.
Otherwise, trying to set the ElevationMin or ElevationMax will throw an exception
: <em>The minimum elevation can't be set when
elevation range is selected to automatic</em>.</p>
<p> </p>
<p>
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b0191021de6b6970c-pi" style="display: inline;"><img alt="SV_02" class="asset  asset-image at-xid-6a0167607c2431970b0191021de6b6970c" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b0191021de6b6970c-500wi" title="SV_02" /></a><br /><br /></p>
<p> </p>
<p>Here is the relevant C# .NET code
snippet on how to create a new SectionView and set the Elevation Range :</p>
<div style="font-family: Courier New; font-size: 8pt; color: black; background: white;">
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// get the Editor</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">Editor</span><span style="line-height: 140%;"> ed = </span><span style="color: #2b91af; line-height: 140%;">Application</span><span style="line-height: 140%;">.DocumentManager.MdiActiveDocument.Editor;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">//select a sampleline to add a SectionView</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">PromptEntityOptions</span><span style="line-height: 140%;"> selsampleline = </span><span style="color: blue; line-height: 140%;">new</span><span style="line-height: 140%;"> </span><span style="color: #2b91af; line-height: 140%;">PromptEntityOptions</span><span style="line-height: 140%;">(</span><span style="color: #a31515; line-height: 140%;">"\nSelect a SampleLine Object: "</span><span style="line-height: 140%;">);</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">selsampleline.SetRejectMessage(</span><span style="color: #a31515; line-height: 140%;">"\nOnly Civil 3D SampleLine is allowed"</span><span style="line-height: 140%;">);</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">selsampleline.AddAllowedClass(</span><span style="color: blue; line-height: 140%;">typeof</span><span style="line-height: 140%;">(</span><span style="color: #2b91af; line-height: 140%;">SampleLine</span><span style="line-height: 140%;">), </span><span style="color: blue; line-height: 140%;">true</span><span style="line-height: 140%;">);</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">PromptEntityResult</span><span style="line-height: 140%;"> resSL = ed.GetEntity(selsampleline);</span></p>
<p style="margin: 0px;"><span style="color: blue; line-height: 140%;">if</span><span style="line-height: 140%;"> (resSL.Status != </span><span style="color: #2b91af; line-height: 140%;">PromptStatus</span><span style="line-height: 140%;">.OK) </span><span style="color: blue; line-height: 140%;">return</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">ObjectId</span><span style="line-height: 140%;"> sampleLineId = resSL.ObjectId;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">Database</span><span style="line-height: 140%;"> db = </span><span style="color: #2b91af; line-height: 140%;">Application</span><span style="line-height: 140%;">.DocumentManager.MdiActiveDocument.Database;</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">CivilDocument</span><span style="line-height: 140%;"> civilDoc = </span><span style="color: #2b91af; line-height: 140%;">CivilApplication</span><span style="line-height: 140%;">.ActiveDocument;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: blue; line-height: 140%;">using</span><span style="line-height: 140%;"> (</span><span style="color: #2b91af; line-height: 140%;">Transaction</span><span style="line-height: 140%;"> trans = db.TransactionManager.StartTransaction())</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">{</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// public static ObjectId Create(string sectionViewName, ObjectId sampleLineId, Point3d location)        </span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// lets select the location of the newly created section view</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">Point3d</span><span style="line-height: 140%;"> location ;</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">PromptPointResult</span><span style="line-height: 140%;"> ppr = ed.GetPoint(</span><span style="color: #a31515; line-height: 140%;">"\nSelect a Location for the new SectionView:"</span><span style="line-height: 140%;">);</span></p>
<p style="margin: 0px;"><span style="color: blue; line-height: 140%;">if</span><span style="line-height: 140%;"> (ppr.Status != </span><span style="color: #2b91af; line-height: 140%;">PromptStatus</span><span style="line-height: 140%;">.OK)</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">  </span><span style="color: blue; line-height: 140%;">return</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">location = ppr.Value;       </span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// add the SectionView</span></p>
<p style="margin: 0px;"><span style="background-color: #ffff00;"><strong><span style="color: #2b91af; line-height: 140%;">ObjectId</span><span style="line-height: 140%;"> sectionViewId = </span><span style="color: #2b91af; line-height: 140%;">SectionView</span><span style="line-height: 140%;">.Create(</span><span style="color: #a31515; line-height: 140%;">"My_Test_SV"</span><span style="line-height: 140%;">, sampleLineId, location);</span></strong></span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">SectionView</span><span style="line-height: 140%;"> sectionView = trans.GetObject(sectionViewId, </span><span style="color: #2b91af; line-height: 140%;">OpenMode</span><span style="line-height: 140%;">.ForWrite) </span><span style="color: blue; line-height: 140%;">as</span><span style="line-height: 140%;"> </span><span style="color: #2b91af; line-height: 140%;">SectionView</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"><span style="color: #2b91af; line-height: 140%;">SectionOverride</span><span style="line-height: 140%;"> overrideObj = sectionView.GraphOverrides[0];</span></p>
<p style="margin: 0px;"><span style="line-height: 140%;">overrideObj.Draw = </span><span style="color: blue; line-height: 140%;">true</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// When we add a new SectionView by default the 'Elevation range' is set to "Automatic". </span></p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// If we want to set it to "User specified" as shown in the screesnhot below using the API, </span></p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// then we need to set the IsElevationRangeAutomatic property to False. </span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">sectionView.IsElevationRangeAutomatic = </span><span style="color: blue; line-height: 140%;">false</span><span style="line-height: 140%;">;</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="color: green; line-height: 140%;">// Following values are specific to a Civil 3D sample DWG file        </span></p>
<p style="margin: 0px;"><span style="background-color: #ffff00;"><strong><span style="line-height: 140%;">sectionView.ElevationMin = 610.00;</span></strong></span></p>
<p style="margin: 0px;"><strong><span style="line-height: 140%;">sectionView.ElevationMax = 700.00;</span></strong></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">trans.Commit();</span></p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><span style="line-height: 140%;">
<a class="asset-img-link" href="http://adndevblog.typepad.com/.a/6a0167607c2431970b0191021ded35970c-pi" style="display: inline;"><img alt="SV_01" class="asset  asset-image at-xid-6a0167607c2431970b0191021ded35970c" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b0191021ded35970c-500wi" title="SV_01" /></a><br /><br /></span></p>
</div>
<p>I hope this is useful to you! </p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/24FDqj42TGc" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/creating-a-sectionview-and-setting-its-elevation-range-using-net-api.html</feedburner:origLink></entry>
    <entry>
        <title>AutoCAD Map 3D API Training content: Part-6</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/lMaqyjRwQV8/autocad-map-3d-api-training-content-part-6.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/autocad-map-3d-api-training-content-part-6.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b017eeaff79a6970d</id>
        <published>2013-05-10T00:28:00-07:00</published>
        <updated>2013-05-10T00:28:00-07:00</updated>
        <summary>By Gopinath Taget This is the final post in the series titled AutoCAD Map 3D API Training content. The previous posts are: Part-1 , Part 2, Part-3, Part-4 and Part-5. In this post, I will talk about the API for creating and managing Map Layers. There are two basic Map...</summary>
        <author>
            <name>Gopinath Taget</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AutoCAD Map 3D 2013" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="FDO" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Gopinath Taget" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/gopinath-taget.html">Gopinath Taget</a></p>  <p>This is the final post in the series titled <strong>AutoCAD Map 3D API Training content.</strong> The previous posts are: <a href="http://adndevblog.typepad.com/infrastructure/2013/02/autocad-map-3d-api-training-content-part-1.html">Part-1</a> , <a href="http://adndevblog.typepad.com/infrastructure/2013/03/autocad-map-3d-api-training-content-part-2.html">Part 2</a>, <a href="http://adndevblog.typepad.com/infrastructure/2013/03/autocad-map-3d-api-training-content-part-3.html">Part-3</a>, <a href="http://adndevblog.typepad.com/infrastructure/2013/03/autocad-map-3d-api-training-content-part-4.html">Part-4</a> and <a href="http://adndevblog.typepad.com/infrastructure/2013/05/autocad-map-3d-api-training-content-part-5.html">Part-5</a>. In this post, I will talk about the API for creating and managing Map Layers. </p>  <p>There are two basic Map 3D .NET types that will help you manage your Map and Map Layers: <strong>AcMapMap</strong> and <strong>AcMapLayer</strong>. AcMapMap represents the conceptual container that contains your Map data. Put another way, it contains all the geospatial layers representing your map data. AcMapLayer represents the geospatial layer itself:</p>  <p> </p>  <p><a href="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901c01f287970b-pi"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901c01f290970b-pi" width="348" height="608" /></a></p>  <p><a href="http://adndevblog.typepad.com/files/Chapter%206.pdf">This presentation</a> provides more details on the AcMapMap and AcMapLayer types. It specifically talks about important methods in AcMapMap and AcMapLayer that allow instances of these types to work with each other like accessing the Map and the Layer collection within the Map, searching for and finding a specific layer. It also talks about API for programmatically selecting and highlighting specific features on a layer. <a href="http://adndevblog.typepad.com/infrastructure/MapSamples/MapsAndLayers.zip">Here</a> is a sample that demonstrates this selection API. In order to use this sample, please first build, load and run the command “BuildMap” in the SDK sample MapSDK\Map Samples\Platform\BuildMap. Once the map is created, follow the following steps:</p>  <ul>   <li>Open <strong>MapsAndLayers.sln</strong> in Visual Studio 2010 and build it. </li>    <li>Load the assembly from step above into the Map session containing the map created using the BuildMap sample. </li>    <li>Enter the command “<strong>selftrs</strong>” to select and highlight features on the “signals” layer that fall inside the rectangle defined by the extents of the raster image on the “redding” layer. </li> </ul><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/lMaqyjRwQV8" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/autocad-map-3d-api-training-content-part-6.html</feedburner:origLink></entry>
    <entry>
        <title>API webcast archive</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/cV7xV7jNquI/api.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/api.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b017eeafeb6df970d</id>
        <published>2013-05-09T15:16:29-07:00</published>
        <updated>2013-05-09T15:16:29-07:00</updated>
        <summary>By Stephen Preston As part of our ADN Open work to move our API content to more accessible (search-engine-findable) locations, I'm posting our webcast archive to DevBlog. Some of these recordings are old now, but still contain useful information. And, being recordings of live webcasts, they are not as polished...</summary>
        <author>
            <name>Stephen Preston</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="DevTV" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Stephen Preston" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By<a href="http://adndevblog.typepad.com/autocad/stephen-preston.html"> Stephen Preston</a></p>
<p>As part of our <a href="http://www.autodesk.com/adnopen" target="_blank">ADN Open</a>
 work to move our API content to more accessible 
(search-engine-findable) locations, I'm posting our webcast archive to 
DevBlog. Some of these recordings are  old now, but still contain useful
 information. And, being recordings of live webcasts, they are not as 
polished as our DevTV recordings. </p>
<p>Note that some recordings are in Chinese and some in English. </p>
<p> </p>
<table border="0" cellpadding="0" cellspacing="0" width="489">
<tbody>
<tr>
<td valign="bottom" width="366">
<p><strong>Webcast</strong></p>
</td>
<td valign="bottom" width="67">
<p><strong>Language</strong></p>
</td>
<td valign="bottom" width="56">
<p><strong>Date</strong></p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/Civil3D2013APIWebcastChinese.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>30-Jul-12</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCADCivil3D2013API_17July12.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>17-Jul-12</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AIMS2013WebCastChinese.zip">AIMS
  API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>28-May-12</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCAD_MAP_3D_2012_Webcast_Chinese.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>23-Jun-11</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCADMap3D2012APIWebcast.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>15-Jun-11</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AIMS2012_Webcast_Recording_Chinese.zip">Autodesk
  MapGuide Enterprise API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>30-May-11</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/SurfaceNET2012_Webcast.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>12-May-11</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/MGE2011Webcast.zip">Autodesk
  MapGuide Enterprise API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>14-Jul-10</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCAD_Civil_3D_2011_API_Webcast_Chinese_20100709.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>9-Jul-10</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCADMap3D_2011_API_Webcast_23June2010.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>23-Jun-10</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCADMap3D_16June2010.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>16-Jun-10</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/MapGuideEnterprise2011Webcast_Chinese.zip">Autodesk
  MapGuide Enterprise API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>28-May-10</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCAD_Civil_3D_2011_New_APIs.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>12-May-10</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutodeskMGEAPI_11Aug09.zip">Autodesk
  MapGuide Enterprise API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>11-Aug-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/Civil3D2010APIwebcast20090623CHS.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>23-Jun-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/AutoCAD_MAP_3D_Geospatial_API_17Jun09.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>17-Jun-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/MGE2010APIWebcast.zip">Autodesk
  MapGuide Enterprise API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>9-Jun-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/Civil3D2010APIWebcast_12May2009.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>12-May-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/DeveloperDaysOnline_Civil3D2010.zip">Developer
  Days Online: Civil 3D</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>19-Feb-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/DeveloperDaysOnline_Geospatial2010.zip">Developer
  Days Online: Geospatial</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>17-Feb-09</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/MGEIntroductiontoFusionAPI.zip">MapGuide
  Enterprise: Introduction to Fusion API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>13-Jun-08</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/largefiles/cn/ADN_training/Map3D_WebCast_20080521.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>21-May-08</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/largefiles/cn/ADN_training/MapGuide_Webcast_20080514.zip">Autodesk
  MapGuide Enterprise API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>14-May-08</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/ACADCivil3DAPIWebcast_01May08.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>1-May-08</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/media/adn/ACADMAP3DGSAPIWebcast_30Apr08.zip">AutoCAD
  MAP 3D Geospatial API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>English</p>
</td>
<td valign="bottom" width="56">
<p>30-Apr-08</p>
</td>
</tr>
<tr>
<td valign="bottom" width="366">
<p><span style="text-decoration: underline;"><a href="http://download.autodesk.com/largefiles/cn/ADN_training/Civil3D_Webcast_20080423.zip">AutoCAD
  Civil 3D API</a></span></p>
</td>
<td valign="bottom" width="67">
<p>Chinese</p>
</td>
<td valign="bottom" width="56">
<p>23-Apr-08</p>
</td>
</tr>
</tbody>
</table>
<p> </p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/cV7xV7jNquI" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/api.html</feedburner:origLink></entry>
    <entry>
        <title>AutoCAD Map 3D API Training content: Part-5</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/R87Ks-cyTmA/autocad-map-3d-api-training-content-part-5.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/autocad-map-3d-api-training-content-part-5.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b017eeaedd819970d</id>
        <published>2013-05-08T10:18:30-07:00</published>
        <updated>2013-05-08T10:18:30-07:00</updated>
        <summary>By Gopinath Taget This is in continuation of Partha’s earlier posts on AutoCAD Map 3D API Training content: Part-1 , Part 2, Part-3 and Part-4. In this post, I will talk about the Geospatial geometry API. To start with let me state that there have been a few changes to...</summary>
        <author>
            <name>Gopinath Taget</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term=".NET" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="AutoCAD Map 3D 2013" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="FDO" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Gopinath Taget" />
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/gopinath-taget.html">Gopinath Taget</a></p>  <p>This is in continuation of <a href="http://adndevblog.typepad.com/infrastructure/partha-sarkar.html">Partha</a>’s earlier posts on <strong>AutoCAD Map 3D API Training content</strong>: <a href="http://adndevblog.typepad.com/infrastructure/2013/02/autocad-map-3d-api-training-content-part-1.html">Part-1</a> , <a href="http://adndevblog.typepad.com/infrastructure/2013/03/autocad-map-3d-api-training-content-part-2.html">Part 2</a>, <a href="http://adndevblog.typepad.com/infrastructure/2013/03/autocad-map-3d-api-training-content-part-3.html">Part-3</a> and <a href="http://adndevblog.typepad.com/infrastructure/2013/03/autocad-map-3d-api-training-content-part-4.html">Part-4</a>. In this post, I will talk about the Geospatial geometry API. To start with let me state that there have been a few changes to the API organization over the years and currently, you will find all the APIs used for this post in the following assemblies:</p>  <p><a href="http://adndevblog.typepad.com/.a/6a0167607c2431970b01901bf030c4970b-pi"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b019101e63d96970c-pi" width="389" height="411" /></a></p>  <p> </p>  <p>All the selected assemblies above can be found in the Map 3D install folder or its subfolders.</p>  <p>Now, coming back to the API, the Geometry API is organized in a simple manner. There are two basic types. <strong>MgGeometry</strong> and <strong>MgGeometryComponent</strong>. MgGeometry is inherited by <strong>MgAggregateGeometry</strong>, <strong>MgCurve</strong>, <strong>MgPoint</strong> and <strong>MgRegion</strong>. MgGeometryComponent is inherited by <strong>MgCurveSegment </strong>and <strong>MgRing</strong>. In general as the names suggests, MgGeometry types represent the geometry itself and MgGeometryComponent types constitute (are contained by) the MgGeometry types:</p>  <p> </p>  <p><a href="http://adndevblog.typepad.com/.a/6a0167607c2431970b017eeaedd801970d-pi"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://adndevblog.typepad.com/.a/6a0167607c2431970b019101e63dc3970c-pi" width="288" height="567" /></a></p>  <p>The relationship between these types is explained in more detail in <a href="http://adndevblog.typepad.com/files/Chapter%205.pdf">this presentation</a>. A few points to note when using the geometry API:</p>  <ul>   <li>You should use the utility type MgGeometryFactory to create a MgGeometry object </li>    <li>In the MgLinearRing type, the first and last coordinates in the coordinate collection should be identical </li>    <li>When connecting segment types (base type MgCurveSegment) in segment collection, the last coordinate of a curve segment should be identical to the first segment of the next segment. </li>    <li>When forming closed rings(MgLinearRing, MgCurveRing) the direction of traversal of the points in the ring indicates if it is an exterior or interior ring. The direction of traversal is counterclockwise for exterior ring and clockwise for interior rings. </li> </ul>  <p>You will find additional details for creating specific geometries in the presentation I provided above.</p>  <p>In addition to the geometry types mentioned above, there are several utility API that form a part of the geometry API. The raw geometry data can be used in three specific forms in the geometry API: </p>  <ul>   <li>The text based Autodesk Geometry Format (AGF) which is a plain text format </li>    <li>The binary based AGF format </li>    <li>Internal representations in the MgGeometry types </li> </ul>  <p>Geometry API comes with utility functions to manage the above types of data. The other utility of APIs allow you to determine the spatial relationship between geometry objects (contains, crosses, touches etc) and create new geometry with boolean operations (union, intersection, difference, symmitric difference).</p>  <p>The coordinate systems supported by the geometry API are Arbitrary X-Y, Geographic and Projected.</p>  <p>Finally, the geometry API allows you to create <a href="http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2014/Help/0006-AutoCAD_0/0044-Geometry44/0050-Creating50">buffer geometry</a> from existing geometry.</p>  <p><a href="http://adndevblog.typepad.com/infrastructure/MapSamples/Geometry.zip">Here</a> is a sample that demonstrates the usage of most of the API mentioned in this post. It implements two commands CRGEOM and CRBUFFER. CRGEOM demonstrates creation of geometry and CRBUFFER demonstrates creation of buffer geometry. In order to use the sample, do the following:</p>  <ul>   <li>Open Geometry.sln in Visual Studio 2010 and build the project. </li>    <li>Delete the SDF if it exists NewFile.sdf (if you have used this sample before) </li>    <li>Launch Map 3D and open a new drawing </li>    <li>Load the .NET assembly created in step #1 </li>    <li>Assign the a coordinate system to the new drawing </li>    <li>Draw one or more polyline entities in the drawing </li>    <li>Enter the command “crgeom” and select a polyline entity. A line string feature is created from it on the API_Poly_Objects layer and inserted into NewFile.sdf in the .\Data\SDF folder. If this file doesn’t exist, it is created. </li>    <li>Select a feature on the API_Poly_Objects layer and enter the command “crbuffer”. A buffer polygon is created round the feature. The buffer is created on the “Buffer_Objects” layer and inserted into Buffer.sdf in the.\Data\SDF folder </li> </ul>  <p><b>Note:</b> If you will be revisiting this exercise later, deleting NewFile.sdf and Buffer.sdf before starting would make things easier for you. This is to ensure that both SDFs are created fresh using the <u>same coordinate system</u>, otherwise buffer creation would fail. Also, the Path to the SDF folders are hard coded in the sample so please modify this path to a folder convenient to you before using the sample.</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/R87Ks-cyTmA" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/autocad-map-3d-api-training-content-part-5.html</feedburner:origLink></entry>
    <entry>
        <title>Snoop Civil 3D 2014 Database (.bundle format)</title>
        <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/InfrastructureModelingDevblog/~3/Vv_1Di56kpM/snoop-civil-3d-2014-database-bundle-format.html" />
        <link rel="replies" type="text/html" href="http://adndevblog.typepad.com/infrastructure/2013/05/snoop-civil-3d-2014-database-bundle-format.html" thr:count="0" />
        <id>tag:typepad.com,2003:post-6a0167607c2431970b019101d539a3970c</id>
        <published>2013-05-06T06:32:54-07:00</published>
        <updated>2013-05-06T06:34:16-07:00</updated>
        <summary>By Augusto Goncalves Following some suggestions on my previous post, here is a new version of the Snoop Civil 3D Database that is packed with the .bundle format. Just extract it under C:\Users\\AppData\Roaming\Autodesk\ApplicationPlugins folder and it will autoload on Civil 3D 2012, 2013 and 2014. Download the tool with...</summary>
        <author>
            <name>Augusto Goncalves</name>
        </author>
        
        
<content type="xhtml" xml:lang="en-US" xml:base="http://adndevblog.typepad.com/infrastructure/"><div xmlns="http://www.w3.org/1999/xhtml"><p>By <a href="http://adndevblog.typepad.com/infrastructure/augusto-goncalves.html">Augusto Goncalves</a></p>
<p>Following some suggestions on my <a href="http://adndevblog.typepad.com/infrastructure/2013/04/snoop-civil-3d-2014-database.html">previous post</a>, here is a new version of the Snoop Civil 3D Database that is packed with the <a href="http://download.autodesk.com/media/adn/DevTV_Autoloader_Format_Explained/DevTV_Autoloader_Format_Explained.html">.bundle</a> format. Just extract it under <em><span style="text-decoration: underline;">C:\Users\&lt;your login&gt;\AppData\Roaming\Autodesk\ApplicationPlugins</span></em> folder and it will autoload on Civil 3D 2012, 2013 and 2014.</p>
<p>
<span class="asset  asset-generic at-xid-6a0167607c2431970b01901bdf4051970b"><a href="http://adndevblog.typepad.com/files/civil3dsnoopdb.bundle.zip">Download</a></span> the tool with source code.</p>
<p><strong><span style="text-decoration: underline;">Note</span></strong>: if you extract under <em><span style="text-decoration: underline;">C:\ProgramData\Autodesk\ApplicationPlugins</span></em> it will not load on 2012 version.</p><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/InfrastructureModelingDevblog/~4/Vv_1Di56kpM" height="1" width="1" /></div></content>



    <feedburner:origLink>http://adndevblog.typepad.com/infrastructure/2013/05/snoop-civil-3d-2014-database-bundle-format.html</feedburner:origLink></entry>
 
</feed><!-- ph=1 -->
