public Point3d PocetnaTockaNaStacionaziD(Corridor plovniPut) { Corridor corr = plovniPut; Baseline bl = corr.Baselines[0]; AppliedAssembly appliedassy = bl.GetAppliedAssemblyAtStation(stacionaza); CalculatedPointCollection pts = appliedassy.Points; CalculatedPointCollection ptsbycode = appliedassy.GetPointsByCode("UglavljeDesno"); Point3d pt3 = ptsbycode[0].StationOffsetElevationToBaseline; Point3d ptWorld = bl.StationOffsetElevationToXYZ(pt3); return(ptWorld); }
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); } }