![]() |
【转帖】setting Geometric Extents For Oddbpolyline
setting geometric extents for oddbpolyline
setting geometric extents for oddbpolyline how do we set geometric extents for a newly created oddbpolyline? -praveen. you can't set the extents. you can append/insert vertices or edit existing ones. sergey slezkin geometric extents in polyline thans for the reply... but...after inserting the verticies when i do below steps, the last line fails and i get an unhandled exception. oddbentity* pent = ppolyline.get(); odgeextents3d pt; pent->getgeomextents(pt); -praveen need more clarification i'm trying to do below: polyline_ = oddbpolyline::createobject(); polyline_->addvertexat(0,odgepoint2d(-250.0, -100.0)); polyline_->addvertexat(1,odgepoint2d(-250.0, -200.0)); polyline_->addvertexat(2,odgepoint2d(-150.0, -200.0)); polyline_->addvertexat(3,odgepoint2d(-150.0, -100.0)); odgeextents3d extents; polyline_->getgeomextents(extents) doing above is causing an unhandled exception in last line. am i doing something wrong? some operations may fail if entity's database is unknown. if you call polyline_->setdatabasedefaults(pdb) the polyline will "know" its database and getgeomextents() will work. btw, setdatabasedefaults() only initializes some entity properties without adding the entity to database. sergey slezkin |
所有的时间均为北京时间。 现在的时间是 03:09 PM. |