Example #1
0
        protected Point3d TockaNaStacionazi(string kodTocke)
        {
            using (Transaction tr = doc.TransactionManager.StartTransaction())
            {
                Corridor corr = PlovniPutMetoda();
                Baseline bl   = corr.Baselines[0] as Baseline;

                bl.UpdateStation(stacionaza);
                AppliedAssembly appliedassy = bl.GetAppliedAssemblyAtStation(stacionaza);

                CalculatedPointCollection ptsbycode = appliedassy.GetPointsByCode(kodTocke);

                Point3d pt3     = ptsbycode[0].StationOffsetElevationToBaseline;
                Point3d ptWorld = bl.StationOffsetElevationToXYZ(pt3);

                tr.Commit();
                return(ptWorld);
            }
        }