public static DetailPlotMaster Create(Document doc, string plotTypeName)
        {
            BlockDrawingObject blockDrawingObject = BlockDrawingObject.Create(doc.Database, plotTypeName);

            DetailPlotMaster newPlotMaster = new DetailPlotMaster(doc);

            newPlotMaster.BaseObject   = blockDrawingObject.BaseObject;
            newPlotMaster.PlotTypeName = plotTypeName;

            DataService.Current.GetStore <HousingDocumentStore>(doc.Name).GetManager <DetailPlotMasterManager>().Add(newPlotMaster);
            return(newPlotMaster);
        }
        public static DetailPlot Create(Document doc, DetailPlotMaster master, Point3d basePoint, string PlotId)
        {
            BlockRefDrawingObject refDrawingObject = BlockRefDrawingObject.Create(doc.Database, basePoint, master);
            Transaction           trans            = doc.TransactionManager.TopTransaction;
            BlockReference        reference        = (BlockReference)trans.GetObject(refDrawingObject.BaseObject, OpenMode.ForRead);

            DetailPlot newDetailPlot = new DetailPlot(doc, reference);

            DataService.Current.GetStore <HousingDocumentStore>(doc.Name).GetManager <DetailPlotManager>().Add(newDetailPlot);
            newDetailPlot.PlotId       = PlotId;
            newDetailPlot.PlotTypeName = master.PlotTypeName;
            return(newDetailPlot);
        }