Getting error on run time.

I am trying to implement the BricscadApp.AcadApplication() in my application by creating an object Look into below Code:
BricscadApp.AcadApplication oACAD = new BricscadApp.AcadApplication();
BricscadApp.AcadDocument oACADdoc = default(BricscadApp.AcadDocument);
 but I am getting below error while run the application:
Retrieving the COM class factory for component with CLSID {A23B547F-1C56-4E43-9FD2-490573ABD1D4} failed due to the following error: 80080005.
Can you please suggest me how I can add this dll into my application and generate the BCAD image.
I tried to resolve this I tried to build this application against AnyCPU, but still I am getting same error.
[code] private void AddCurbLines()
        {
            double off = 0;
            double offx = 0;
            double offy = 0;
            BricscadApp.AcadApplication oACAD = new BricscadApp.AcadApplication();
            BricscadApp.AcadDocument oACADdoc = default(BricscadApp.AcadDocument);
            oACADdoc = oACAD.ActiveDocument;
            BricscadDb.AcadText objEnt = default(BricscadDb.AcadText);
            //BricscadApp.AcadApplication oACAD = default(BricscadApp.AcadApplication);
            //BricscadApp.AcadDocument oACADdoc = default(BricscadApp.AcadDocument);
            ////oACAD = (BricscadApp.AcadApplication)Interaction.GetObject("BricscadApp.AcadApplication");
            //oACADdoc = oACAD.ActiveDocument;
            //BricscadDb.AcadText objEnt = default(BricscadDb.AcadText);
            double adjustX = 0;
            double adjustY = 0;
            BricscadDb.AcadLine lineobject1 = default(BricscadDb.AcadLine);
            object offsetobject = null;



            StartPoint[0] = 120;
            StartPoint[1] = streetwidth2 / 2 + Blockendy;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend - 120;
            EndPoint[1] = streetwidth2 / 2 + Blockendy;
            EndPoint[2] = 0.0;
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();


            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = 120;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend - 120;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = -streetwidth1 - 120;
            StartPoint[1] = streetwidth2 / 2 + Blockendy;
            StartPoint[2] = 0.0;

            EndPoint[0] = -streetwidth1 - 120 - 1200;
            EndPoint[1] = streetwidth2 / 2 + Blockendy;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = -streetwidth1 - 120;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4;
            StartPoint[2] = 0.0;

            EndPoint[0] = -streetwidth1 - 120 - 1200;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3 + 120;
            StartPoint[1] = streetwidth2 / 2 + Blockendy;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3 + 120 + 1200;
            EndPoint[1] = streetwidth2 / 2 + Blockendy;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3 + 120;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3 + 120 + 1200;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;



            StartPoint[0] = -streetwidth1;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = -streetwidth1;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120 + 1200;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;


            StartPoint[0] = 0;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = 0;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120 + 1200;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120 + 1200;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3;
            StartPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3;
            EndPoint[1] = streetwidth2 / 2 + Blockendy + streetwidth4 + 120 + 1200;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;



            StartPoint[0] = -streetwidth1;
            StartPoint[1] = streetwidth2 / 2 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = -streetwidth1;
            EndPoint[1] = Blockendy - 120 + streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = 0.0;
            StartPoint[1] = streetwidth2 / 2 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = 0.0;
            EndPoint[1] = Blockendy - 120 + streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = -streetwidth1;
            StartPoint[1] = -streetwidth2 / 2 - 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = -streetwidth1;
            EndPoint[1] = -1200.0 - streetwidth2 / 2 - sidewalkwidth22;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = 0.0;
            StartPoint[1] = -streetwidth2 / 2 - 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = 0.0;
            EndPoint[1] = -1200.0 - streetwidth2 / 2 - sidewalkwidth22;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = -streetwidth1 - 120;
            StartPoint[1] = streetwidth2 / 2;
            StartPoint[2] = 0.0;

            EndPoint[0] = -1200.0 - streetwidth1 - sidewalkwidth12;
            EndPoint[1] = streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = -streetwidth1 - 120;
            StartPoint[1] = -streetwidth2 / 2;
            StartPoint[2] = 0.0;

            EndPoint[0] = -1200.0 - streetwidth1 - sidewalkwidth12;
            EndPoint[1] = -streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = 120;
            StartPoint[1] = streetwidth2 / 2;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend - 120;
            EndPoint[1] = streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;


            StartPoint[0] = 120;
            StartPoint[1] = -streetwidth2 / 2;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend - 120;
            EndPoint[1] = -streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend;
            StartPoint[1] = streetwidth2 / 2 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend;
            EndPoint[1] = Blockendy - 120 + streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend;
            StartPoint[1] = -streetwidth2 / 2 - 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend;
            EndPoint[1] = -1200.0 - streetwidth2 / 2 - sidewalkwidth22;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3;
            StartPoint[1] = streetwidth2 / 2 + 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3;
            EndPoint[1] = Blockendy - 120 + streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3;
            StartPoint[1] = -streetwidth2 / 2 - 120;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3;
            EndPoint[1] = -1200.0 - streetwidth2 / 2 - sidewalkwidth22;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3 + 120;
            StartPoint[1] = streetwidth2 / 2;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3 + 1200.0 + sidewalkwidth32;
            EndPoint[1] = streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(6)
            off = 6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;

            StartPoint[0] = Blockend + streetwidth3 + 120;
            StartPoint[1] = -streetwidth2 / 2;
            StartPoint[2] = 0.0;

            EndPoint[0] = Blockend + streetwidth3 + 1200.0 + sidewalkwidth32;
            EndPoint[1] = -streetwidth2 / 2;
            EndPoint[2] = 0.0;

            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();

            //lineobject1.color = 8
            //offsetobject = lineobject1.Offset(-6)
            off = -6;
            offx = 0;
            offy = 0;
            if (StartPoint[0] == EndPoint[0])
                offx = off;
            if (StartPoint[1] == EndPoint[1])
                offy = off;
            StartPoint[0] = StartPoint[0] + offx;
            StartPoint[1] = StartPoint[1] + offy;
            StartPoint[2] = StartPoint[2];
            EndPoint[0] = EndPoint[0] + offx;
            EndPoint[1] = EndPoint[1] + offy;
            EndPoint[2] = EndPoint[2];
            lineobject1 = oACADdoc.ModelSpace.AddLine(StartPoint, EndPoint);
            lineobject1.Update();
            lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
            //lineobject1.color = BricscadDb.ACAD_COLOR.acRed;
        }[/code]

Thanks in Advance
SSD