Main Content

getFileName

Get absolute filename for dictionary

Since R2024a

Description

filename = getFileName(dictionary) gets the absolute file name for the dictionary. If this dictionary is in a model context then the filename is empty.

example

Examples

collapse all

Add a data interface named newInterface to the local dictionary of the model. Save the local dictionary to a shared dictionary as an SLDD file.

arch = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
addInterface(arch.InterfaceDictionary,"newInterface");
saveToDictionary(arch,"TopDictionary")
topDictionary = systemcomposer.openDictionary("TopDictionary.sldd");

Get filename for dictionary.

fileName = topDictionary.getFileName
fileName =

    'C:\Users\myUser\Models\exampleModel\TopDictionary.sldd'

>> 

Input Arguments

collapse all

Data dictionary, specified as a systemcomposer.interface.Dictionary object. For information on how to create a data dictionary, see createDictionary.

Output Arguments

collapse all

Absolute filename with file extension and full path, returned as a character vector.

Example: 'C:\Users\myUser\Models\exampleModel\TopDictionary.sldd'

Data Types: char

More About

collapse all

Version History

Introduced in R2024a

See Also

Functions

Objects

Blocks

Tools