Change the line style
Moderators: SDS, support, admin
Change the line style
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.
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
The method .dashstyle=1 does not work.
Re: Change the line style
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:
Alexander.
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();
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Change the line style
Thank you very much. Everything is working.