public static bool CalcAlignmentOffsetToThisAlignment(ObjectId thisAlignmentId, double stationOnThisAlignment, ref WidthOffsetTarget offsetTarget, AlignmentSide enumSide, ref double offsetToThisAlignment, ref double xOnTarget, ref double yOnTarget) { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) Database db = HostApplicationServices.WorkingDatabase; TransactionManager tm = db.TransactionManager; bool retVal; try { tm.GetObject(thisAlignmentId, 0, false, false); offsetToThisAlignment = offsetTarget.GetDistanceToAlignment(thisAlignmentId, stationOnThisAlignment, enumSide, ref xOnTarget, ref yOnTarget); retVal = true; } catch (Exception projectError) { ProjectData.SetProjectError(projectError); retVal = false; ProjectData.ClearProjectError(); } return(retVal); }
public static bool CalcAlignmentOffsetToThisAlignment(ObjectId thisAlignmentId, double stationOnThisAlignment, ref WidthOffsetTarget offsetTarget, ref double offsetToThisAlignment, ref double xOnTarget, ref double yOnTarget) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) return(CalcAlignmentOffsetToThisAlignment(thisAlignmentId, stationOnThisAlignment, ref offsetTarget, 0, ref offsetToThisAlignment, ref xOnTarget, ref yOnTarget)); }