<?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: Listing of Profile Station and Elevation Label in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11387074#M4987</link>
    <description>&lt;P&gt;HI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRY&lt;/P&gt;&lt;P&gt;LabelStyleCollection lbFVlstyles = civdoc.Styles.LabelStyles.ProfileViewLabelStyles.StationElevationLabelStyles;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 07:21:49 GMT</pubDate>
    <dc:creator>hosneyalaa</dc:creator>
    <dc:date>2022-08-29T07:21:49Z</dc:date>
    <item>
      <title>Listing of Profile Station and Elevation Label</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11386951#M4986</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find the list below but nowhere to be found. Can you point me to the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code below to search the list of&amp;nbsp;&lt;EM&gt;Profile Station and Elevation Label&lt;/EM&gt;&amp;nbsp; but failed.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            // Get all the Profile View Styles
            Autodesk.Civil.ApplicationServices.CivilDocument doc = Autodesk.Civil.ApplicationServices.CivilApplication.ActiveDocument;
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
            using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())
            {
                for (int i = 0; i &amp;lt; doc.Styles.ProfileViewStyles.Count; i++)
                {
                    ObjectId oId = doc.Styles.ProfileViewStyles[i];
                    ProfileViewStyle mObjs = oId.GetObject(OpenMode.ForRead) as ProfileViewStyle;
                    System.Diagnostics.Debug.Print("\nProfile View Style Name: " + mObjs.Name + " - " + mObjs.ObjectId);
                }
                //for (int i = 0; i &amp;lt; doc.Styles.ProfileStyles.Count; i++)
                //for (int i = 0; i &amp;lt; doc.Styles.ProjectionStyles.Count; i++)

                //for (int i = 0; i &amp;lt; doc.Styles.LabelStyles.ProfileLabelStyles.MajorStationLabelStyles.Count; i++)
                for (int i = 0; i &amp;lt; doc.Styles.PipeRuleSetStyles.Count; i++)
                {

                    ObjectId PipeRuleSetStyleId = doc.Styles.PipeRuleSetStyles[i];
                    PipeRuleSetStyle mPipeRuleSetStyle = PipeRuleSetStyleId.GetObject(OpenMode.ForRead) as PipeRuleSetStyle;

                    ed.WriteMessage("\nPipe Rule Set Style Name: {0} - {1}", mPipeRuleSetStyle.Name, mPipeRuleSetStyle.ObjectId);
                    
                    //ObjectId profileViewStyleId = doc.Styles.ProfileViewStyles[i];
                    //var o = profileViewStyleId.GetObject(OpenMode.ForRead);
                    //ProfileViewStyle oProfileViewStyle = ts.GetObject(profileViewStyleId, OpenMode.ForRead) as ProfileViewStyle;


                    //ed.WriteMessage("\nProfile View Style Name: {0} - {1}", oProfileViewStyle.Name, oProfileViewStyle.ObjectId);
                    //System.Diagnostics.Debug.Print("\nProfile View Style Name: " + oProfileViewStyle.Name + " - " + oProfileViewStyle.ObjectId);
                    //ed.WriteMessage("\nProfile View Style Name: {0} - {1}", oProfileViewStyle.Name, oProfileViewStyle.ObjectId);
                }

                ts.Commit();
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexisgacia_0-1661752350766.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1109136i79E086BCA14FF4ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexisgacia_0-1661752350766.png" alt="alexisgacia_0-1661752350766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 05:57:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11386951#M4986</guid>
      <dc:creator>alexisgacia</dc:creator>
      <dc:date>2022-08-29T05:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Listing of Profile Station and Elevation Label</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11387074#M4987</link>
      <description>&lt;P&gt;HI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRY&lt;/P&gt;&lt;P&gt;LabelStyleCollection lbFVlstyles = civdoc.Styles.LabelStyles.ProfileViewLabelStyles.StationElevationLabelStyles;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 07:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11387074#M4987</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2022-08-29T07:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Listing of Profile Station and Elevation Label</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11387116#M4988</link>
      <description>&lt;P&gt;I was trying to find the&amp;nbsp;civilDoc.Styles.LabelStyles.ProfileViewLabelStyles.StationElevationLabelStyles because it was not available, after changing the version of my reference I was able to access it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 07:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/listing-of-profile-station-and-elevation-label/m-p/11387116#M4988</guid>
      <dc:creator>alexisgacia</dc:creator>
      <dc:date>2022-08-29T07:52:31Z</dc:date>
    </item>
  </channel>
</rss>

