Linetype and Lineweigth
Posted: 24 Jan 2011, 16:32
Hello!
I got two questions:
First one:
How can I assign the lineweight of the layer to an entity? Assigning Layercolor works with
newestEntity.Color = CADConst.clByLayer
Is there a similar way for lineweight?
Second Question:
I tried to assign a certain linetype to an entity. I made it the following way:
dim lt_dash as CADLineType = New CADLineType
lt_dash.Name = "Dash"
lt_dash.Lines.AddTick(5)
lt_dash.Lines.AddTick(-0.5)
Me.cadImageFld.Converter.GetSection(CADImport.FaceModule.ConvSection.LTypes).AddEntity(lt_dash)
CType(newestEntity, CADPolyLine).SetLType(lt_dash)
Checking the entity's linetype property in debugging shows the correct linetype, but the line is still solid in the picturebox.
Thanks a lot!
I got two questions:
First one:
How can I assign the lineweight of the layer to an entity? Assigning Layercolor works with
newestEntity.Color = CADConst.clByLayer
Is there a similar way for lineweight?
Second Question:
I tried to assign a certain linetype to an entity. I made it the following way:
dim lt_dash as CADLineType = New CADLineType
lt_dash.Name = "Dash"
lt_dash.Lines.AddTick(5)
lt_dash.Lines.AddTick(-0.5)
Me.cadImageFld.Converter.GetSection(CADImport.FaceModule.ConvSection.LTypes).AddEntity(lt_dash)
CType(newestEntity, CADPolyLine).SetLType(lt_dash)
Checking the entity's linetype property in debugging shows the correct linetype, but the line is still solid in the picturebox.
Thanks a lot!