well, an AcDbPolyline is a 2d object, so you have to give it 2d points.
you can draw an AcDb3dPolyline using 3d points, but they cannot have arc
segments. If I am not mistaken, you can't extrude a 3d polyline, either...
--
Jon Rizzo
Langan Engineering and Environmental Services, Inc.
"Rob" wrote in message
news:131DCC0125B7B651F9649EC6DDD36FEE@in.WebX.maYIadrTaRb...
> Im gonna need to to this with 3d points-------is there away to convert the
> lines I have drawn to a pline??
>
> Thanks for the info
>
>
>
>
>
> "Jon Rizzo" wrote in message
> news:5554B82837958DF459C16C7628558FC6@in.WebX.maYIadrTaRb...
> > AcDbPolyline *pPline = new AcDbPolyline();
> > // for the line segments
> > pPline->addVertexAt(0, AcGePoint2d(0,0));
> > pPline->addVertexAt(1, AcGePoint2d(5,5));
> > // for the curve
> > pPline->addVertexAt(2, AcGePoint2d(10,5), 0.5); // .5 is the "bulge
> factor"
> > pPline->addVertexAt(3, AcGePoint2d(20,10));
> > etc...
> >
> > then...
> >
> > AcDbBlockTable *pTable;
> > AcDbBlockTableRecord *pBTR;
> > acdbHostApplicationService()->workingDatabase()->getBlockTable(pTable,
> > AcDb::kForRead);
> > pTable->getAt(ACDB_MODEL_SPACE, pBTR, AcDb::kForWrite);
> > pTable->close();
> > pBTR->appendAcDbEntity(pPline);
> > pBTR->close();
> > pPline->close();
> >
> >
> > Tada....
> >
> > Read through the example problems and online help that ship with the
SDK -
> > they're wonderful!
> >
> > --
> > Jon Rizzo
> > Langan Engineering and Environmental Services, Inc.
> >
> >
>
>