<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Surface Slope Arrow Analysis in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9066096#M9159</link>
    <description>&lt;P&gt;I do land development work and do detailed grading, including making sure the site is ADA compliant, etc.&amp;nbsp; I have found using the Surface Properties&amp;gt;Analysis&amp;gt;Slope Arrows&amp;gt;Range Details and setting a custom range (0-1.25%, 1.25-2.0%, 2.0%-5.0%,5%-8.33%, etc etc) is incredibly helpful. However, I have to create this range and color scheme in each and every drawing I do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE TASK: How do I save this range so that it is easily imported into new drawings or even when the surface is data referenced into a different drawing? I have been able to create a custom table in the legend drop down, but this doesn't set the Range Details. I have tried saving the Surface Style and then import it into a new drawing, but it doesn't retain the range details.&amp;nbsp; Any help?&lt;/P&gt;&lt;P&gt;Thanks so much - This community is amazingly helpful and supportive!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;&lt;P&gt;PS - Hey Autodesk, it would be great if this web page did not erase the message here (Details) if the poster decides to change the "product/category" and "board" when posting.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 23:11:28 GMT</pubDate>
    <dc:creator>ted7LJ5P</dc:creator>
    <dc:date>2019-10-03T23:11:28Z</dc:date>
    <item>
      <title>Surface Slope Arrow Analysis</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9066096#M9159</link>
      <description>&lt;P&gt;I do land development work and do detailed grading, including making sure the site is ADA compliant, etc.&amp;nbsp; I have found using the Surface Properties&amp;gt;Analysis&amp;gt;Slope Arrows&amp;gt;Range Details and setting a custom range (0-1.25%, 1.25-2.0%, 2.0%-5.0%,5%-8.33%, etc etc) is incredibly helpful. However, I have to create this range and color scheme in each and every drawing I do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;THE TASK: How do I save this range so that it is easily imported into new drawings or even when the surface is data referenced into a different drawing? I have been able to create a custom table in the legend drop down, but this doesn't set the Range Details. I have tried saving the Surface Style and then import it into a new drawing, but it doesn't retain the range details.&amp;nbsp; Any help?&lt;/P&gt;&lt;P&gt;Thanks so much - This community is amazingly helpful and supportive!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;&lt;P&gt;PS - Hey Autodesk, it would be great if this web page did not erase the message here (Details) if the poster decides to change the "product/category" and "board" when posting.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 23:11:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9066096#M9159</guid>
      <dc:creator>ted7LJ5P</dc:creator>
      <dc:date>2019-10-03T23:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Surface Slope Arrow Analysis</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9067327#M9160</link>
      <description>&lt;P&gt;Save the surface (call it 'slope analysis')&amp;nbsp;with your desired settings but no data&amp;nbsp;in your template. When you want perform the analysis paste the surface to be analyzed in to the 'slope analysis' surface and abracadabra, you have your ranges in the surface.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 14:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9067327#M9160</guid>
      <dc:creator>cwr-pae</dc:creator>
      <dc:date>2019-10-04T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Surface Slope Arrow Analysis</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9067368#M9161</link>
      <description>&lt;P&gt;Here is quick example of how to set the slope arrow analysis data via code. Hope that this helps get you started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   &amp;lt;CommandMethod("SetSurfaceAnalysisSlopeArrows")&amp;gt;
    Public Sub CmdSetSurfaceAnalysisSlopeArrows()

        'Gets the adoc, ed, &amp;amp; db variables
        GetCurrent()


        Dim opt As New PromptEntityOptions(vbCrLf + "Select Surface: ")
        opt.SetRejectMessage(vbCrLf + "Selected object must be a surface: ")
        opt.AddAllowedClass(GetType(TinSurface), True)

        Dim res As PromptEntityResult = ed.GetEntity(opt)

        If res.Status &amp;lt;&amp;gt; PromptStatus.OK Then
            ed.WriteMessage(vbCrLf + "User Cancelled")
            Exit Sub
        End If

        BuildSlopeArrowSurfaceAnalysis(res.ObjectId)

    End Sub

    Private Sub BuildSlopeArrowSurfaceAnalysis(SurfaceObjectId As ObjectId)

        Using tr As Transaction = db.TransactionManager.StartTransaction
            Dim surface As TinSurface = tr.GetObject(SurfaceObjectId, OpenMode.ForWrite)

            Dim analysis As SurfaceAnalysis = surface.Analysis

            Dim color1 As Color = Color.FromColorIndex(ColorMethod.ByAci, 1)
            Dim color2 As Color = Color.FromColorIndex(ColorMethod.ByAci, 2)
            Dim color3 As Color = Color.FromColorIndex(ColorMethod.ByAci, 3)
            Dim color4 As Color = Color.FromColorIndex(ColorMethod.ByAci, 4)


            Dim data As New List(Of SurfaceAnalysisSlopeArrowData)

            data.Add(New SurfaceAnalysisSlopeArrowData With {.MinimumSlope = 0.0, .MaximumSlope = 0.0125, .Scheme = color1})
            data.Add(New SurfaceAnalysisSlopeArrowData With {.MinimumSlope = 0.0125, .MaximumSlope = 0.02, .Scheme = color2})
            data.Add(New SurfaceAnalysisSlopeArrowData With {.MinimumSlope = 0.02, .MaximumSlope = 0.05, .Scheme = color3})
            data.Add(New SurfaceAnalysisSlopeArrowData With {.MinimumSlope = 0.05, .MaximumSlope = 0.0833, .Scheme = color4})

            analysis.SetSlopeArrowData(data.ToArray)

            tr.Commit()
        End Using
    End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 14:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/surface-slope-arrow-analysis/m-p/9067368#M9161</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2019-10-04T14:31:52Z</dc:date>
    </item>
  </channel>
</rss>

