the following C# code (specific for the Italian version of Rhino) deletes all linetypes but the continuous:
RhUtil.RhinoApp().RunScript("-_DocumentProperties t e “Bordo” e “Centro” e “Nascosto” e “Punti di annotazione” e “Tratteggiato” e “TrattinoPunto” INVIO INVIO");
By itself it works, but when I run this plug-in from at startup (through a single line rhinoscript code which is run at startup) it fails: the resulting lineType list is still the default one.
If then I wait one second and run the plug-in code again (without the startup rhinoscript call) it works. It looks like if Rhino is restoring the line database in parallel. Is it possible?