Page 1 of 1
Change the line style
Posted: 06 Feb 2012, 17:33
by NetProger
Hello.
How can I change the line style or line style of any object? For example, I need to replace the solid style to the intemittent style. Is this possible?
Thanks.
Re: Change the line style
Posted: 07 Feb 2012, 09:48
by NetProger
The method .dashstyle=1 does not work.
Re: Change the line style
Posted: 08 Feb 2012, 16:28
by support
Hello.
CAD Import .NET provides
CADLineType class for the line type specifying. The correspond line type object must be created if not contained in imported drawing data:
Code: Select all
CADLineType LType = this.cadImage.Converter.LTypeByName("ISO dash");
if (LType == null)
{
CADLineType LType = new CADLineType();
LType.Name = "ISO dash";
LType.Lines.Initialize(new double[] { 1.2, -0.9 });
this.cadImage.Converter.Loads(LType);
this.cadImage.Converter.GetSection(CADImport.FaceModule.ConvSection.LTypes).AddEntity(LType);
}
CADLine entLine = (CADLine)this.cadImage.Converter.Entities[i];
entLine.SetLType(this.cadImage.Converter.LTypeByName("ISO dash"));
entLine.Loaded(this.cadImage.Converter);
//if cadImage.UseDoubleBuffering is false
this.cadPictBox.Invalidate();
Alexander.
Re: Change the line style
Posted: 09 Feb 2012, 09:49
by NetProger
Thank you very much. Everything is working.