<?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 Re: Modfiy Profile View Direction in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3926818#M49532</link>
    <description>&lt;P&gt;In case you weren't aware, there is a forum specifically for C3D Customization:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190" target="_blank"&gt;http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GraphStyle property of the PVStyle sets the direction&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oProfileViewStyle.GraphStyle.Direction = GraphDirectionType.RightToLeft&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2013 17:52:13 GMT</pubDate>
    <dc:creator>Jeff_M</dc:creator>
    <dc:date>2013-05-17T17:52:13Z</dc:date>
    <item>
      <title>Modfiy Profile View Direction</title>
      <link>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3926763#M49531</link>
      <description>&lt;P&gt;For&amp;nbsp;Civil 3d 2013, im looking for&amp;nbsp;a method to change the Profile View Direction of a Profile View Style in VB.NET.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 16:54:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3926763#M49531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-17T16:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy Profile View Direction</title>
      <link>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3926818#M49532</link>
      <description>&lt;P&gt;In case you weren't aware, there is a forum specifically for C3D Customization:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190" target="_blank"&gt;http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GraphStyle property of the PVStyle sets the direction&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oProfileViewStyle.GraphStyle.Direction = GraphDirectionType.RightToLeft&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 17:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3926818#M49532</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2013-05-17T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modfiy Profile View Direction</title>
      <link>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3927083#M49533</link>
      <description>&lt;P&gt;ah yes, i had forgotten about that forum. ah well that was pretty easy, i was missing an import so i never saw teh "ProfileViewStyle", thanks for the help!&amp;nbsp;heres what i did with it:&lt;/P&gt;&lt;PRE&gt;Imports System
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.Civil
Imports Autodesk.Civil.ApplicationServices
Imports Autodesk.Civil.DatabaseServices.Styles
Imports Autodesk.Civil.Settings

' This line is not mandatory, but improves loading performances
&amp;lt;Assembly: CommandClass(GetType(ProfileLabelSettings.MyCommands))&amp;gt; 
Namespace ProfileLabelSettings
    Public Class MyCommands
        &amp;lt;CommandMethod("profilelabelsettingsbottom")&amp;gt;
        Public Sub proflabbot()
            Dim cdoc As CivilDocument = CivilApplication.ActiveDocument
            Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
            Dim db As Database = Application.DocumentManager.MdiActiveDocument.Database
            Dim proflabplace As SettingsCmdAddNetworkProfLabels = cdoc.Settings.GetSettings(Of SettingsCmdAddNetworkProfLabels)()
            Dim profviewstyle As ProfileViewStyle = Nothing
            Dim structbot As String
            Using tr As Transaction = db.TransactionManager.StartTransaction()
                If profviewstyle.GraphStyle.Direction = GraphDirectionType.LeftToRight Then
                    structbot = "MKA - Profile Structure Bottom Up Stream(L) to Down Stream(R)"
                Else
                    structbot = "MKA - Profile Structure Bottom Down Stream(L) to Up Stream(R)"
                End If
                Dim pipebot As String = "MKA - None"
                proflabplace.ProfileLabelPlacement.StructureLabelPlacement.Value = StructureProfileLabelPlacementType.AtStructureBottom
                proflabplace.Styles.StructureProfileLabel.Value = structbot
                proflabplace.ProfileLabelPlacement.DimensionAnchorOptionForStructures.Value = DimensionAnchorOptionType.Below
                proflabplace.ProfileLabelPlacement.DimensionAnchorPlotHeightValueForStructures.Value = 2 / 12
                proflabplace.Styles.PipeProfileLabel.Value = pipebot
                tr.Commit()
            End Using
            ed.WriteMessage(vbCrLf + "Structure Label Placement is: " + proflabplace.ProfileLabelPlacement.StructureLabelPlacement.Value.ToString())
            ed.WriteMessage(vbCrLf + "Structure Label is: " + proflabplace.Styles.StructureProfileLabel.Value.ToString())
            ed.WriteMessage(vbCrLf + "Pipe Label is: " + proflabplace.Styles.PipeProfileLabel.Value.ToString())
        End Sub
        &amp;lt;CommandMethod("profilelabelsettingstop")&amp;gt;
        Public Sub proflabtop()
            Dim cdoc As CivilDocument = CivilApplication.ActiveDocument
            Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
            Dim db As Database = Application.DocumentManager.MdiActiveDocument.Database
            Dim proflabplace As SettingsCmdAddNetworkProfLabels = cdoc.Settings.GetSettings(Of SettingsCmdAddNetworkProfLabels)()
            Dim structop As String = "MKA - Profile Structure Top"
            Dim pipetop As String = "MKA - Size Slope Profile"
            Using tr As Transaction = db.TransactionManager.StartTransaction()
                proflabplace.ProfileLabelPlacement.StructureLabelPlacement.Value = StructureProfileLabelPlacementType.AtStructureTop
                proflabplace.Styles.StructureProfileLabel.Value = structop
                proflabplace.ProfileLabelPlacement.DimensionAnchorOptionForStructures.Value = DimensionAnchorOptionType.Above
                proflabplace.ProfileLabelPlacement.DimensionAnchorPlotHeightValueForStructures.Value = 1 / 12
                proflabplace.Styles.PipeProfileLabel.Value = pipetop
                tr.Commit()
            End Using
            ed.WriteMessage(vbCrLf + "Structure Label Placement is: " + proflabplace.ProfileLabelPlacement.StructureLabelPlacement.Value.ToString())
            ed.WriteMessage(vbCrLf + "Structure Label is: " + proflabplace.Styles.StructureProfileLabel.Value.ToString())
            ed.WriteMessage(vbCrLf + "Pipe Label is: " + proflabplace.Styles.PipeProfileLabel.Value.ToString())
        End Sub
    End Class
End Namespace&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 22:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/modfiy-profile-view-direction/m-p/3927083#M49533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-17T22:16:04Z</dc:date>
    </item>
  </channel>
</rss>

