internal AcadLayout FriendAddAcadObjectLayoutModel(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "") { object[] dadecExtMin = new object[3]; double[] dadblExtMin = new double[3]; object[] dadecExtMax = new object[3]; double[] dadblExtMax = new double[3]; if (mobjAcadLayoutModel == null) { string dstrLayoutName = "Model"; mobjAcadLayoutModel = (AcadLayout)FriendGetItem(dstrLayoutName); if (mobjAcadLayoutModel == null) { mobjAcadLayoutModel = FriendAddAcadObject(dstrLayoutName, Conversions.ToDouble(Interaction.IIf(nvdblObjectID == -1.0, base.Database.FriendGetNextObjectID, nvdblObjectID)), ref nrstrErrMsg); if (mobjAcadLayoutModel != null) { bool flag = false; dadblExtMin[0] = 1E+20; dadblExtMin[1] = 1E+20; dadblExtMin[2] = 1E+20; dadblExtMax[0] = -1E+20; dadblExtMax[1] = -1E+20; dadblExtMax[2] = -1E+20; AcadLayout acadLayout = mobjAcadLayoutModel; acadLayout.FriendLetModelType = true; acadLayout.PlotType = Enums.AcPlotType.acDisplay; acadLayout.StandardScale = Enums.AcPlotScale.acScaleToFit; acadLayout.FriendAddReactorsID(base.ObjectID, 330); acadLayout = null; } } } return(mobjAcadLayoutModel); }
internal AcadLayout FriendAddAcadObjectLayout2(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "") { object[] dadecExtMin = new object[3]; double[] dadblExtMin = new double[3]; object[] dadecExtMax = new object[3]; double[] dadblExtMax = new double[3]; if (mobjAcadLayout2 == null) { string dstrLayoutName = "Layout2"; mobjAcadLayout2 = (AcadLayout)FriendGetItem(dstrLayoutName); if (mobjAcadLayout2 == null) { mobjAcadLayout2 = FriendAddAcadObject(dstrLayoutName, Conversions.ToDouble(Interaction.IIf(nvdblObjectID == -1.0, base.Database.FriendGetNextObjectID, nvdblObjectID)), ref nrstrErrMsg); if (mobjAcadLayout2 != null) { bool flag = false; dadblExtMin[0] = 1E+20; dadblExtMin[1] = 1E+20; dadblExtMin[2] = 1E+20; dadblExtMax[0] = -1E+20; dadblExtMax[1] = -1E+20; dadblExtMax[2] = -1E+20; AcadLayout acadLayout = mobjAcadLayout2; acadLayout.FriendAddReactorsID(base.ObjectID, 330); acadLayout = null; } } } return(mobjAcadLayout2); }
internal AcadLayout FriendAddAcadObjectLayout1(double nvdblObjectID = -1.0, ref string nrstrErrMsg = "") { object[] dadecExtMin = new object[3]; double[] dadblExtMin = new double[3]; object[] dadecExtMax = new object[3]; double[] dadblExtMax = new double[3]; if (mobjAcadLayout1 == null) { string dstrLayoutName = "Layout1"; mobjAcadLayout1 = (AcadLayout)FriendGetItem(dstrLayoutName); if (mobjAcadLayout1 == null) { mobjAcadLayout1 = FriendAddAcadObject(dstrLayoutName, Conversions.ToDouble(Interaction.IIf(nvdblObjectID == -1.0, base.Database.FriendGetNextObjectID, nvdblObjectID)), ref nrstrErrMsg); if (mobjAcadLayout1 != null) { bool flag = false; dadblExtMin[0] = 1E+20; dadblExtMin[1] = 1E+20; dadblExtMin[2] = 1E+20; dadblExtMax[0] = -1E+20; dadblExtMax[1] = -1E+20; dadblExtMax[2] = -1E+20; AcadLayout acadLayout = mobjAcadLayout1; acadLayout.FriendAddReactorsID(base.ObjectID, 330); acadLayout.FriendLetExtMin = RuntimeHelpers.GetObjectValue(Interaction.IIf(Expression: false, dadecExtMin, dadblExtMin)); acadLayout.FriendLetExtMax = RuntimeHelpers.GetObjectValue(Interaction.IIf(Expression: false, dadecExtMax, dadblExtMax)); acadLayout = null; } } } return(mobjAcadLayout1); }