Product : Converter, Version : 4.1.6.1028, ArticleID : 41023377

HowTo : Extrusion vector of a polyline does not saved in dwg format

Article41023377
TypeHowTo
ProductConverter
Version4.1.6.1028
Date Added1/13/2004
Submitted byMario Pellegrino
Keywords

Subject

Extrusion vector of a polyline does not saved in dwg format

Summary

Extrusion vector of a polyline does not saved in dwg format.

Solution

The DWG/DXF format has two different objects for polyline. 3D Polyline and 2D Polyline.
2D Polylines have all the vertexes in the same plane and also has extrusion vector.
3D Polylines can have the vertexes in different planes and they can not have extrusion vector.

VectorDraw uses one object (vdPolyLine) for these two different polylines.
So if a polyline with more than 3 points and these points do not define one plain then the drawing is saved as a 3D PolyLine without extrusion vector.
If you want to have a polyline where the points are defining a plane vertical to WCS,
(for example extrusion vector=(0,-1,0) then you have to set the points to
WCS (for example (0,0,0),(0,0,1),(1,0,1),(1,0,0)) and extrusion vector=(0,-1,0).

The same result you can do as followed: Using cmdRotate3D.
Add a polyline with the following world coordinate vertexes (0,0,0),(0,1,0),(1,1,0),(1,0,0) with extrusion vector (0,0,1)
Run the cmdRotate3D by selecting rotating about x , 90 degrees and defining BasePoint (0,0,0) for the previous polyline. This polyline will be the same as in the first example.