[CONNECT UPDATE 15 C#] LineStyle Scale

Hello,

I have problem with setting scale for linestyle in c#. If anyone found working solution please share it.

So far I tried to use ElementPropertiesSetter SetLineStyle function because this function takes LineStyleParameters as param but i can't create LineStyleParameters because it does not have constructor.

I tried to get LineStyleParameters from ElementPropertiesGetter and I get some but I can't change Scale for that object, it stays unchanged after lineStyle.Scale = scale.

Regards.

Parents Reply
  • Yes, scaleParam is IECPropertyValue:

    But when I want to set value for this object i receive this msg from visual studio:

    Microstation crash and code don't even catch this exception. All freeze and I must kill Microstation process.

    I pasted code because maybe I do this wrong way and maybe there is other way to set LSScale value.

    I get instance of LineElement ECClass, then I get  IECPropertyValue of LineStyleParams  param and LineStyleParams Contains LSScale.

Children