Developer: .NET
Summary: Demonstrates how to locate Rhino's default linetype file.
Is there a way to get the path and filename of the Rhino's language-specific default linetype file?
Yes, see the following example.
public override IRhinoCommand.result RunCommand(IRhinoCommandContext context) { MRhinoProfileContext pc = RhUtil.RhinoApp().GetRhinoProfileContext( IRhinoProfileContext.context_location.cl_build_date_local_machine ); uint lcid = RhUtil.RhinoApp().AppSettings().AppearanceSettings().m_language_identifier; if (0 == lcid) lcid = 1033; string section = string.Format("{0}", lcid); string entry = "Default Linetype List"; string value = ""; pc.LoadProfileString(section, entry, ref value); RhUtil.RhinoApp().Print(string.Format("{0} = {1}\n", entry, value)); return IRhinoCommand.result.success; }