// private void CreateProject() { k_project = new k.Project.KicadProject(); k.Project.Section k_section = new k.Project.Section(); k_project.Sections.Add(k_section); k_section.AddItem("update", k.Project.KicadProject.FormatDateTime(DateTime.Now)); k_section.AddItem("version", 1); k_section.AddItem("last_client", "kicad"); k_section = new k.Project.Section("general"); k_project.Sections.Add(k_section); k_section.AddItem("version", 1); k_section.AddItem("RootSch", ""); k_section.AddItem("BoardNm", ""); k_section = new k.Project.Section("pcbnew"); k_project.Sections.Add(k_section); k_section.AddItem("version", 1); //PageLayoutDescrFile=C:/git_bobc/WebRadio/hardware/test_main - Copy/custom.kicad_wks k_section.AddItem("LastNetListRead", ""); //k_section.AddItem("UseCmpFile", 1); k_section.AddItem("PadDrill", 0.6f); k_section.AddItem("PadDrillOvalY", 0.6f); k_section.AddItem("PadSizeH", 1.5f); k_section.AddItem("PadSizeV", 1.5f); k_section.AddItem("PcbTextSizeV", 1.5f); k_section.AddItem("PcbTextSizeH", 1.5f); k_section.AddItem("PcbTextThickness", 0.3f); k_section.AddItem("ModuleTextSizeV", 1.0f); k_section.AddItem("ModuleTextSizeH", 1.0f); k_section.AddItem("ModuleTextSizeThickness", 0.15f); k_section.AddItem("SolderMaskClearance", 0.2f); k_section.AddItem("SolderMaskMinWidth", 0.0f); k_section.AddItem("DrawSegmentWidth", 0.2f); k_section.AddItem("BoardOutlineThickness", 0.1f); k_section.AddItem("ModuleOutlineThickness", 0.15f); k_section = new k.Project.Section("cvpcb"); k_project.Sections.Add(k_section); k_section.AddItem("version", 1); k_section.AddItem("NetIExt", "net"); k_section = new k.Project.Section("eeschema"); k_project.Sections.Add(k_section); k_section.AddItem("version", 1); k_section.AddItem("LibDir", ""); }
public void SetLibNames(List <string> LibNames) { k.Project.Section k_section; k_section = new k.Project.Section("eeschema/libraries"); k_project.Sections.Add(k_section); int index = 1; foreach (string lib in LibNames) { k_section.AddItem("LibName" + index, lib); index++; } // todo ? /* * [schematic_editor] * version=1 * PageLayoutDescrFile=custom.kicad_wks * PlotDirectoryName= * SubpartIdSeparator=0 * SubpartFirstId=65 * NetFmtName= * SpiceForceRefPrefix=0 * SpiceUseNetNumbers=0 * LabSize=60 */ }