Static voidSwtarxproject5createline (void) { //Add Your code for command Swtarxproject5.createline here//Create a new CAD databaseAcdbdatabase *pdb=Newacdbdatabase (); //Defining a block table pointerAcdbblocktable *pblktbl; //Get block TablePdb->getsymboltable (Pblktbl,acdb::kforread); //defining block Table RecordsAcdbblocktablerecord *PBLKTBLRCD; //get block Table RecordsPblktbl->getAt (Acdb_model_space,pblktblrcd,kforwrite); //Close Block TablePblktbl->Close (); //Defining pointsAcgepoint3d PT (Ten,Ten,0); Acgepoint3d pt1 ( -,Ten,0); //define a line pointer and create a lineAcdbline *pline=NewAcdbline (PT,PT1); //add a line to a block table recordPblktblrcd->appendacdbentity (PLine); //turn off line and block table RecordsPline->Close (); PBLKTBLRCD-Close (); //Save a graphicPdb->saveas (_t ("C:/test. DWG")); //Delete a graphical database pointerDelete pDb; }