高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】beginner question - geometry data
beginner question - geometry data
beginner question - geometry data
i'm new to dwg objects. i need to extract geometry information from the objects in the database.
unfortunately, the sample seems to extract names from geometry and geometry from text. cute.
i was expecting to be able to get at the x,y,z or radius or other data. however, when i look at the examples and help for 2dpolylines i can only find a routine that returns the vertex position (ppoly->vertexposition), but it requires a reference to a vertex and i only know how to get a smartpointer to a vertex, which doesn't seem to work. ????
could you help by telling me or pointing me in a direction that will help me get at the geometry data for objects?
is there a good reference for the types of data in the dwg file and their limitations? (i don't mean the classes used by dd)
thanks
bill
in general, there are two ways to extract geometry information from drawing.
first way is to extract it manually from entities (oddbentity inheritants). you'll need to be able to process all entities in this case. entities can be non-primitive (e. g. oddbhatch, oddbaligneddimension). in this way you'll get all information in form that is stored in dwg file. the sample for this way is odreadex.
second way is to use dwgdirect vectorization pipeline. in this case you'll get a set of "primitives" (odgiconveyorgeometry interface); you'll get only geometry data. the samples for this way are odvectorizeex, dwfexport, svgexport.
sincerely yours,
george udov
never mind...
never mind... i found it
thanks,
billl
last edited by wtcoggins; 26th august 2004 at 02:51 pmfff">.
|