issue with style/coloring after export and open

 From:  pior (PIOR_O)
10426.1 
Hello Michael,

There seems to be a minor issue going on with style assignment/coloring, in V4. The steps are as follows :

- Creating a 2D drawing in a fresh new session or file
- Performing a File>Export to .3dm
- Opening this newly .3dm file

Now in this new file, style/color assignment doesn't seem to do what it should with all lines remaining default black.

After that point, even doing a regular File > Save and reopening that, fails at bringing back the styling features. However copy/pasting the objects into a fresh new file make the styling commands operational again.

I should also mention that my usual way of assigning colors is through a custom command as opposed to using the default UI, but I don't think that's the issue. FWIW I am using this syntax :

command="script: var style = moi.geometryDatabase.findStyle( 'Red', true /*CreateIfNotFound*/ ); moi.geometryDatabase.getSelectedObjects().setProperty( 'styleIndex', style.index );"

I hope this makes sense !

EDITED: 21 Aug 2021 by PIOR_O