/// <summary> /// Insert a symbol on a given page /// </summary> /// <param name="page">Page where the symbol be insert</param> /// <param name="symbolLibraryName">Symbol library name</param> /// <param name="symbolName">Symbol name</param> /// <param name="symbolvariant">Symbol variant</param> public void Insert(Page page, string symbolLibraryName, string symbolName, int symbolvariant) { page.LockObject(); SymbolLibrary symbolLibrary = new SymbolLibrary(page.Project, symbolLibraryName); Symbol symbol = new Symbol(symbolLibrary, symbolName); Function function = new Function(page.Project, symbol.Variants[symbolvariant]); function.Location = new PointD(200, 150); page.InsertSubPlacement(function); function.Dispose(); }