Hello Zebiya!
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Ñ—what can I do with LType.Pen.DashStyle?<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
This line does not allows to do anything. <b>CAD Import .NET</b> does not use standard system dash styles.
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Ñ—Can I make more "complex" linetypes?
Ñ—How?
Ñ—Which are the limits?<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Please use the following example:
Code: Select all
<font color="blue">Dim</font id="blue"> lType <font color="blue">As</font id="blue"> CADLineType
lType = <font color="blue">Me</font id="blue">.FCADImage.Converter.LTypeByName("New LineType")
<font color="blue">If</font id="blue"> (lType <font color="blue">Is Nothing</font id="blue">) <font color="blue">Then</font id="blue">
lType = <font color="blue">New</font id="blue"> CADLineType
lType.Name = "New LineType"
lType.Lines.Ticks.Add(5.0)
lType.Lines.Ticks.Add(-0.5)
lType.Lines.Ticks.Add(0.1)
lType.Lines.Ticks.Add(-0.5)
lType.Lines.Ticks.Add(0.1)
lType.Lines.Ticks.Add(-0.5)
lType.Lines.Ticks.Add(0.1)
lType.Lines.Ticks.Add(-0.5)
<font color="blue">Me</font id="blue">.FCADImage.Converter.GetSection(CADImport.ConvSection.LTypes).AddEntity(lType)
<font color="blue">End If</font id="blue">
Number of ticks is unlimited.
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Ñ—What are Ticks?<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
<b>Ticks</b> define length of dashes and dots and empty spaces between them.
Positive value defines a dash(or dot - dependently on its length).
Negative value defines empty space between dashes (dots).
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Ñ—What does exactely mean LineTypeScale? <hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
<b>LineTypeScale</b> defines a value which is used for multiplying length of dashes and dots and empty spaces between them.
Currently changing CADLineType.LineTypeScale gives no result. It will be corrected in future versions of the library. Until that we recommend to set this value for entities directly:
Code: Select all
<font color="blue">Dim</font id="blue"> I <font color="blue">As Integer
Dim</font id="blue"> entLine <font color="blue">As</font id="blue"> CADLine
<font color="blue">For</font id="blue"> I = 0 <font color="blue">To Me</font id="blue">.FCADImage.Converter.Entities.Count - 1
<font color="blue">If</font id="blue"> (<font color="blue">TypeOf Me</font id="blue">.FCADImage.Converter.Entities(I) <font color="blue">Is</font id="blue"> CADLine) <font color="blue">Then</font id="blue">
entLine = <font color="blue">Me</font id="blue">.FCADImage.Converter.Entities(I)
entLine.SetLType(lType)
entLine.LineWeight = 0.6
entLine.LineTypeScale = 20
<font color="blue">Me</font id="blue">.FCADImage.Converter.Loads(entLine)
<font color="blue">End If
Next I</font id="blue">
Sergey
Please post questions to the forum or write to
support@cadsofttools.com