|
|
|
|
|
<diagLibrary variable>.LoadLibrary (Función) Carga un archivo de diagrama y crea a partir de él una biblioteca de formas predefinidas. // Add a new library MyLibrary is diagLibrary MyLibrary.LoadLibrary("Furniture01.wddiag") MyLibrary.Name = "Furniture" DIAGEDT_Diagram.Library.Add(MyLibrary)
sFile is string = fTempDir() + [ fSep ] + "custom_library.wddiag"
TempLibrary is Diagram
D1 is diagOval
D1.Width = 50
D1.Height = 50
D1.Background.Color = DarkRed
Add(TempLibrary.Shape, D1)
D2 is diagOval
D2.Width = 50
D2.Height = 70
D2.Background.Color = DarkGreen
Add(TempLibrary.Shape, D2)
TempLibrary.Save(sFile)
MyLibrary is diagLibrary
MyLibrary.LoadLibrary(sFile)
MyLibrary.Name = "Custom"
Add(DIAGEDT_Diagram.Library, MyLibrary)
ToastDisplay("The custom library has been added to the list.")
Sintaxis
<Result> = <Library>.LoadLibrary(<File>)
<Result>: booleano - True si se ha cargado la biblioteca,
- False en caso contrario. ErrorInfo devuelve más detalles sobre el error.
<Library>: Variable de tipo diagLibrary Nombre de la variable diagLibrary en la que debe importarse el archivo correspondiente a la biblioteca. <File>: Cadena de caracteres Ruta completa del archivo de diagrama correspondiente a la biblioteca que se desea importar. Este archivo corresponde a un diagrama previamente guardado con <Diagram Editor>Guardar. Observaciones - Una biblioteca corresponde a un archivo de diagrama creado con <Diagram Editor>Guardar (archivo ".wddiag").
- La función <diagLibrary variable>.LoadLibrary transforma un diagrama en una biblioteca de formas predefinidas que se puede mostrar en el panel izquierdo del control Editor de diagramas.
- Para utilizar solo las bibliotecas personalizadas, elimine las bibliotecas predeterminadas. Para ello, utilice la función <Array>.DeleteAll en el array de bibliotecas del diagrama. Ejemplo:
DIAGEDT_Diagram.Library.DeleteAll()
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|