I am trying to create a new line style with: LineStyle.Create. I want line pattern to be solid but solid pattern not returned by neither LinePatternElement.GetByName nor Line Patterns
Don’t provide an input for the linePattern. ‘Solid’ isn’t actually a pattern and should be adopted by default. You can also try calling it up from its element ID, this page may help: GetSolidPatternId Method
Thank you It works without providing line pattern.