![]() |
【转帖】exporting dashed lines
exporting dashed lines
exporting dashed lines hi, i have a problem rendering dashed lines while exporting to dxf. the line type is exported correctly using for e.g. plt->setnumdashes(2); plt->setpatternlength(0.8); plt->setdashlengthat(0, 0.4); plt->setdashlengthat(1, -0.4); the layer is created using this line-type. but, this line-type is not actually applied to the intended line. just fyi, if i set the scale of the line, the dashed lines are seen; i.e. pline->setlinetypescale (20.0); /*20.0 is just a random number here*/ is there any method that will apply the line type (dash.blank.dash.blank...) over the entire length of the intended-line? thanks a lot in advance, kd if the linetype is applied after you set scale 20 most probably it's too dense if scale is 1. and thats why line is rendered with solid linetype. sergey slezkin hey sergey, the scale that i entered, 20.0 in this case, was just a random number. depending on this scale, the number of dashed lines in a given line-length changes. is there any method where i could specify the line-type, parameters like solid-length, gap-length, etc. and dwgdirect will directly apply the line-type to the entire line? thanks, kedar |
所有的时间均为北京时间。 现在的时间是 06:13 PM. |