Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4331

[V8i SS3 c#] Setting element line style not utilizing the default linestyle scale

$
0
0

I do not have too much experience with custom line styles so I apologize if I am missing something simple.

I have a line style defined with a scale factor of 3.937 as you can see here: 

If I create an element and change its line style like so:

LineStyle lineStyle = Ms.Com.ActiveDesignFile.LineStyles.Find(name);
elem.LineStyle = lineStyle;

the line style scale is set to the scale for whatever my active line style is for that element.

For example, I create the element and set the linestyle while the "0" line style is selected in my active line styles, the line style scale is set to 1.0

Shouldn't it be using the 3.937 value?

Is there a way of getting the LineStyleParameters from a LineStyle as it is not currently a property of LineStyle?

If I can retrieve the line style properties, then I imagine I can overwrite the values in the Element using  elem.SetLineStyleParameters


Viewing all articles
Browse latest Browse all 4331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>