<?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: Alignment Label set style start chainage in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091196#M7328</link>
    <description>&lt;P&gt;some error, please find zip file here&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 20:28:32 GMT</pubDate>
    <dc:creator>yoitsarun</dc:creator>
    <dc:date>2021-02-17T20:28:32Z</dc:date>
    <item>
      <title>Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10081814#M7313</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to access start chainage and end chainage of&amp;nbsp;&lt;STRONG&gt;Label set&amp;nbsp;Style&lt;/STRONG&gt; through Civil 3D .Net API.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&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="aruntr_1-1613284009107.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/880785i320343215E991197/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aruntr_1-1613284009107.png" alt="aruntr_1-1613284009107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can import styles using code. but i didn't see option for start and end chainage:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ImportLabelSet(ObjectId labelSetStyleId);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 06:31:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10081814#M7313</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-14T06:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10082744#M7314</link>
      <description>&lt;P&gt;You can get the AlignmentLabelGroupIds from the alignment. Then get the RangeStart and RangeEnd from each of the LabelGroups.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 19:58:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10082744#M7314</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-14T19:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10083676#M7315</link>
      <description>&lt;P&gt;Hi Jeff, do you have any sample for that. I'm stuck on this.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 08:19:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10083676#M7315</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-15T08:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10084674#M7316</link>
      <description>&lt;P&gt;Here is one way:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    public class LabelSetRanges
    {
        public string LabelSet = string.Empty;
        public double RangeStart = double.NaN;
        public double RangeEnd = double.NaN;

        public LabelSetRanges()
        { }
    }
    public class LabelTools
    {
        public List&amp;lt;LabelSetRanges&amp;gt;RangeList (Alignment align)
        {
            var retval = new List&amp;lt;LabelSetRanges&amp;gt;();
            foreach(ObjectId id in align.GetAlignmentLabelGroupIds())
            {
                var labels = (AlignmentLabelGroup)id.Open(OpenMode.ForRead);
                var l = new LabelSetRanges();
                l.LabelSet = labels.Name;
                l.RangeEnd = labels.RangeEnd;
                l.RangeStart = labels.RangeEnd;
                labels.Close();
                retval.Add(l);
            }
            return retval;
        }
    }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Feb 2021 16:17:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10084674#M7316</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-15T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10086756#M7317</link>
      <description>&lt;P&gt;Thanks Jeff,&lt;/P&gt;&lt;P&gt;Sorry to ask again, how I can add your code to button click code below?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; private void BtnApply_Click(object sender, EventArgs e)
        {
            Document acDoc = Application.DocumentManager.MdiActiveDocument;
            CivilDocument doc = CivilApplication.ActiveDocument;
            Editor ed = acDoc.Editor;
            using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())
            {
                foreach (string name in Alignchecklist.CheckedItems)
                {
                    var alignId = alignList[name];
                    Alignment myAlignment = ts.GetObject(alignId, OpenMode.ForWrite) as Alignment;
                    ObjectId styleID = CivilApplication.ActiveDocument.Styles.AlignmentStyles[AlignStyleCombo.SelectedIndex];
                    ObjectId alignmentLablesSetStyleId = CivilApplication.ActiveDocument.Styles.LabelSetStyles.AlignmentLabelSetStyles[AlignLablSetCombo.SelectedIndex];

                    AlignmentStyle myAlignmentStyle = ts.GetObject(styleID, OpenMode.ForWrite) as AlignmentStyle;
                    AlignmentLabelSetStyle myAlignmentStyleSet = ts.GetObject(alignmentLablesSetStyleId, OpenMode.ForWrite) as AlignmentLabelSetStyle;

                    var lineStyleId = CivilApplication.ActiveDocument.Styles.LabelStyles.AlignmentLabelStyles.LineLabelStyles[LineLabelStyleCombo.SelectedIndex];
                    var arcStyleId = CivilApplication.ActiveDocument.Styles.LabelStyles.AlignmentLabelStyles.CurveLabelStyles[CurveLabelStyleCombo.SelectedIndex];

                    var POBId = CivilApplication.ActiveDocument.Styles.LabelStyles.AlignmentLabelStyles.StationOffsetLabelStyles[POBcombobox.SelectedIndex];
                    var POEId = CivilApplication.ActiveDocument.Styles.LabelStyles.AlignmentLabelStyles.StationOffsetLabelStyles[POEcombobox.SelectedIndex];

                    var Markid = CivilApplication.ActiveDocument.Styles.MarkerStyles[0];
                    double s = myAlignment.StartingStation;
                    double end = myAlignment.EndingStation;
                    try
                    {
                        myAlignment.StyleId = myAlignmentStyle.Id;
                        myAlignment.ImportLabelSet(alignmentLablesSetStyleId);
                       
                        double eastingstart = 0;
                        double northingstart = 0;
                        double eastingend = 0;
                        double northingend = 0;

                        myAlignment.PointLocation(s, 0, ref eastingstart, ref northingstart);
                        myAlignment.PointLocation(end, 0, ref eastingend, ref northingend);
                        

                        Point2d startp = new Point2d(eastingstart, northingstart);
                        Point2d endp = new Point2d(eastingend, northingend);
                        StationOffsetLabel.Create(alignId, POBId, Markid, startp);
                        StationOffsetLabel.Create(alignId, POEId, Markid, endp);

                        double station = myAlignment.Length / 2;
                        var ent = myAlignment.Entities.EntityAtStation(station);
                        switch (ent.EntityType)
                        {
                            case AlignmentEntityType.Arc:
                                AlignmentCurveLabel.Create((AlignmentSubEntityArc)ent[0], arcStyleId);
                                break;

                            case AlignmentEntityType.Line:
                                AlignmentTangentLabel.Create((AlignmentSubEntityLine)ent[0], lineStyleId);
                                break;
                        }
                    }
                    catch (System.Exception)
                    {
                        System.Windows.MessageBox.Show("Error, Please check Alignemnt and Styles", "AUTO ALIGNMENT LABEL", MessageBoxButton.OK, MessageBoxImage.Information);
                        return;
                    }                   
                }
                ts.Commit();
                System.Windows.MessageBox.Show("Alignment Styles Changed Successfully!", "AUTO ALIGNMENT LABEL", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 13:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10086756#M7317</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-16T13:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10087414#M7318</link>
      <description>&lt;P&gt;Does that not work? Do you get any errors?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10087414#M7318</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-16T17:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10087433#M7319</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I tried to add to my code. But your code is class method. I dont know how to bring that to my code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:37:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10087433#M7319</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-16T17:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10087539#M7320</link>
      <description>&lt;P&gt;To use it, just create another Class module in the same Namespace then you can call it like so&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;var alignLabelSets = RangeList(myAlignment);&lt;/LI-CODE&gt;
&lt;P&gt;which will return a list of LabelSetRange objects. You can the loop through those like so:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;foreach (LabelSetRange r in alignLabelSets)
{
   ed.WriteMessage("\nLabelSet named {0} goes from Station {1} to Station {2}.", r.Name, r.RangeStart.ToString("F2"), r.RangeEnd.ToString("F2"));
//or however else you intend to use the stations
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should note that since the Alignment object derives from the Curve object, you can use Curve properties on the Alignment. Thereby allowing you to save some processing time by changing this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;                        double eastingstart = 0;
                        double northingstart = 0;
                        double eastingend = 0;
                        double northingend = 0;

                        myAlignment.PointLocation(s, 0, ref eastingstart, ref northingstart);
                        myAlignment.PointLocation(end, 0, ref eastingend, ref northingend);
                        

                        Point2d startp = new Point2d(eastingstart, northingstart);
                        Point2d endp = new Point2d(eastingend, northingend);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;                        Point2d startp = new Point2d(myAlignment.StartPoint.X, myAlignment.StartPoint.Y);
                        Point2d endp = new Point2d(myAlignment.EndPoint.X, myAlignment.EndPoint.Y);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:06:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10087539#M7320</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-16T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10089999#M7321</link>
      <description>&lt;P&gt;now iam getting below error,&lt;/P&gt;&lt;P&gt;object does not contain public instance definition for getenumerator&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aruntr_0-1613569010492.png" style="width: 904px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/882055iAAA22015B9E1365B/image-dimensions/904x122?v=v2" width="904" height="122" role="button" title="aruntr_0-1613569010492.png" alt="aruntr_0-1613569010492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;may be I used your code wrongly?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 13:38:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10089999#M7321</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-17T13:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10090768#M7322</link>
      <description>&lt;P&gt;Sorry for not testing, or proofreading, what I posted. The following code, placed in 2 Class modules, works for me.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.Civil.DatabaseServices;
using System.Collections.Generic;

namespace Civil3D_Misc_Commands.AlignmentTools
{
    public class LabelSetRanges
    {
        public string LabelSet = string.Empty;
        public double RangeStart = double.NaN;
        public double RangeEnd = double.NaN;

        public LabelSetRanges()
        { }
    }
    public class LabelSetTools
    {
        public static List&amp;lt;LabelSetRanges&amp;gt; RangeList(Alignment align)
        {
            var retval = new List&amp;lt;LabelSetRanges&amp;gt;();
            foreach (ObjectId id in align.GetAlignmentLabelGroupIds())
            {
                var l = new LabelSetRanges();
                var labels = (AlignmentLabelGroup)id.Open(OpenMode.ForRead);
                try
                {
                    l.LabelSet = labels.DisplayName;
                    l.RangeEnd = labels.RangeEnd;
                    l.RangeStart = labels.RangeStart;
                    retval.Add(l);
                }
                catch { }
                labels.Close();

            }
            return retval;
        }

    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;
using Autodesk.Civil;
using Autodesk.Civil.ApplicationServices;
using Autodesk.Civil.DatabaseServices;
using System;


namespace Civil3D_Misc_Commands.AlignmentTools
{

    public class RangeTests
    {
        [CommandMethod("testingrangelist")]
        public void testingrangelist()
        {
            var ed = Application.DocumentManager.MdiActiveDocument.Editor;
            foreach (ObjectId id in CivilApplication.ActiveDocument.GetAlignmentIds())
            {
                var myAlignment = (Alignment)id.Open(OpenMode.ForRead);
                var alignLabelSets = LabelSetTools.RangeList(myAlignment);
                try
                {
                    foreach (LabelSetRanges r in alignLabelSets)
                    {
                        ed.WriteMessage("\nLabelSet named {0} goes from Station {1} to Station {2}.", r.LabelSet, r.RangeStart.ToString("F2"), r.RangeEnd.ToString("F2"));
                        //or however else you intend to use the stations
                    }
                }
                catch { }
            }
        }
   }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10090768#M7322</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-17T17:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091009#M7323</link>
      <description>&lt;P&gt;Thanks Jeff,&lt;/P&gt;&lt;P&gt;I tried this code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not changing in the Labelset properies.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aruntr_0-1613588661629.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/882233iC8D02DE86FBF3265/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aruntr_0-1613588661629.png" alt="aruntr_0-1613588661629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; var alignLabelSets = LabelSetTools.RangeList(myAlignment);
                        try
                        {
                            foreach (LabelSetRanges r in alignLabelSets)
                            {                                
                                r.RangeStart = 100;
                                r.RangeEnd = 200;
                                
                                ed.WriteMessage("\nLabelSet named {0} goes from Station {1} to Station {2}.", r.LabelSet, r.RangeStart.ToString("F2"), r.RangeEnd.ToString("F2"));
                                
                            }
                        }

                        catch 
                    { 
                    }&lt;/LI-CODE&gt;&lt;P&gt;but message showing the changed chainages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LabelSet named Alignment Geometry Point Label Group goes from Station 100.00 to Station 200.00.&lt;BR /&gt;LabelSet named Alignment Station Label Group goes from Station 100.00 to Station 200.00.&lt;BR /&gt;LabelSet named Alignment Station Label Group goes from Station 100.00 to Station 200.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the Labelset name is incorrect in the message.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:07:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091009#M7323</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-17T19:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091055#M7324</link>
      <description>&lt;P&gt;The example I showed just GETS the values and prints them out. You didn't say you wanted to change them.&lt;/P&gt;
&lt;P&gt;In your main code you can just do something like this (not tested but should work):&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;            foreach (ObjectId id in myAlignment.GetAlignmentLabelGroupIds())
            {
                var labels = (AlignmentLabelGroup)ts.GetObject(id, OpenMode.ForWrite);
                try
                {
                    //make sure you use valid values                  
                    labels.RangeStart = 100;
                    labels.RangeEnd = 200;
                }
                catch { }
             }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:28:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091055#M7324</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-17T19:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091130#M7325</link>
      <description>&lt;P&gt;Thanks Jeff,&lt;/P&gt;&lt;P&gt;I tried it but nothing happening.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 20:02:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091130#M7325</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-17T20:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091163#M7326</link>
      <description>Please zip up your project and post it here.</description>
      <pubDate>Wed, 17 Feb 2021 20:18:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091163#M7326</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-17T20:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091193#M7327</link>
      <description>&lt;P&gt;Jeff, zip file is attached.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 20:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091193#M7327</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-17T20:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091196#M7328</link>
      <description>&lt;P&gt;some error, please find zip file here&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 20:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091196#M7328</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-17T20:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091475#M7329</link>
      <description>&lt;P&gt;I know this is a work in progress so I won't comment on the other things that need to be addressed other than you should modify parts of the code to only run when the proper radio buttons are checked. These changes to the range portion now allows it to work:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;                        foreach (ObjectId id in myAlignment.GetAlignmentLabelGroupIds())
                        {
                            var labels = (AlignmentLabelGroup)ts.GetObject(id, OpenMode.ForWrite);
                            try
                            {
                                labels.RangeStartFromFeature = false;
                                labels.RangeEndFromFeature = false;
                                labels.RangeStart = myAlignment.StartingStation + Convert.ToDouble(StartChTextbox.Text);
                                labels.RangeEnd = myAlignment.EndingStation - Convert.ToDouble(EndChTextbox.Text);
                                //ed.WriteMessage("\nLabelSet named {0} goes from Station {1} to Station {2}.", labels.DisplayName, labels.RangeStart.ToString("F2"), labels.RangeEnd.ToString("F2"));
                            }
                            catch { }
                        }
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:59:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10091475#M7329</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-02-17T21:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment Label set style start chainage</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10093276#M7330</link>
      <description>&lt;P&gt;Thanks Jeff, Finally it is working .&lt;/P&gt;&lt;P&gt;Sorry i wasted your time. I didnt mentioned what i want in the topic.&lt;/P&gt;&lt;P&gt;Many thanks for helping me.&lt;/P&gt;&lt;P&gt;Please guide me, I want to explore more in .net.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:28:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/alignment-label-set-style-start-chainage/m-p/10093276#M7330</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2021-02-18T14:28:54Z</dc:date>
    </item>
  </channel>
</rss>

