Generating thick lines
![]() 10/17/2006 11:20 AM
|
---|
Is it possible to 'translate' a pennumber into a thicker line. |
![]() 10/17/2006 3:27 PM
|
---|
Hi Ron, Yes it is possible! You can use DxfLwPolyline and set the property ConstantWidth. Don't confuse it with property Thickness though: the thickness is the extrusion along its z-axis. Alternatively you could use DxfPolyline2D and use the DefaultStartWidth and DefaultEndwidth properties. Thanks! Wout |
![]() 10/17/2006 4:47 PM
|
---|
Hi Wout, Only problem i have is that the application is generating single lines... Ron |
![]() 10/17/2006 5:55 PM
|
---|
Hi Ron, Ah, if you want to define it on the layer level, then the appropriate property is DxfLayer.LineWeight. CadLib should be able to read/write it, but it doesn't use it for the rendering at the moment. Is this an important feature to you? Another option is using GDIGraphics3D.NonTextPenWidth, but this affects the pen width for all lines (non-text). Kind regards, Wout |
![]() 10/17/2006 8:59 PM
|
---|
Hi Wout, Yes rendering it is an important issue. Ron |
![]() 10/17/2006 9:33 PM
|
---|
Hi Ron, I'm going to look into this. It will probably take a few days in terms of elapsed time before I have something worked out. Looks like AutoCad applies the line width regardless of the scaling (zooming) of the drawing on the screen, so that's actually indeed a pen width rather than a real line width (so I'll have to fit it in the drawing design somewhere). Kind regards, Wout |