Scope: Schematic editor - Embedded symbol editor (ESE)
Object: SchematicSheetDocument Object
Prerequisites: Symbol opened to edition from Library Manager (in LM mode) or from Databook (in Netlist mode) - non-local symbol
Saves non-local symbol opened in the embedded symbol editor to a different name.
SchematicSheetDocument.SaveAs(ByVal Symbol As String)
A string containing the name of the local symbol.
Set app = CreateObject("Viewdraw.Application")
Scripting.AddTypeLibrary("Viewdraw.Application")
run_ESE = "-lmc C:\MentorGraphics\EEVX.2.3\SDD_HOME\standard\examples\"
+ "SampleLib2007\SymbolLibs -partition Discrete -- cap.1"
app.RunISE(run_ESE)
Set myDoc = app.ActiveDocument
Set myView = app.ActiveView
'Change the symbol
Set ese_symbol = myView.ActiveBlock
Call ese_symbol.AddArc(200,200,250,250,200,300)
'Save on disk in Netlist flow
myDoc.saveas "c:\MyLibs\Discrete\sym\newcap.1"
'Save in Central Library in partition Discrete
myDoc.saveas "Discrete:newcap.1"