高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】lwpolyline elevation not rendered
lwpolyline elevation not rendered
lwpolyline zcoordinates not rendered
hi ,
iam using a customer provided dxf file in one of my applications. the dxf file
contains group codes for x, y and z coordinates for a polyline entity as 10,
20 ,30. the dxf file doesnot contain any information or group code for elevation. the dwgdirect libraries read the entity as a lwpolyline. the x and y coordinates are rendered properly but the z coordinates are getting null values. in the mfcapplication provided by this opendwg alliance which uses the dwg direct libraries, it shows lwpolyline and contains point2d as well point3d with z values being zero. it does not contain information about elevation. as per my understanding i feel thet lwpolyline is a 2d polyline with elevation. so these z coordinates should get rendered based on elevation by converting the zcoordinates into elevation i suppose.
even when tried to get the elevation from this line weight polyline entity it is
getting null value. if anyone of you have idea about this please reply me as soon as possible.
thanks in advance
aparna
last edited by aparna; 27th march 2007 at 06:36 amfff">.
oddbpolyline may come from lwpolyline dxf entity or it may be converted from oddb2dpolyline (polyline in dxf).
in lwpolyline elevation is stored with group code 38 (default is zero).
in polyline elevation is stored with group code 30 (in polyline, not in vertex).
if dd loads the file incorrectly (not the same way as autocad does) please attach the sample file.
sergey slezkin
|