Hi Maury,
I have tested the behavior of line style scales and found the results are depending on the active settings for line style.
So if ActiveSettings.LineStyle is set to an internal line style ( 0 to 7) the active linestyle scale is not honored.
The behavior is correct or like expected, if ActiveSettings.LineStyle is set to a custom linestyle.
I have filed Defect # 697003 to address this issue.
As workaround I would suggest to set ActiveSettings.LineStyle to a custom linestyle prior to assign a variable with a custom linestyle.
It´s not critical to use exact the same custom linestyle for activeSettings, any custom linestyle will be fine.
I hope this helps?
Best regards,
Artur