Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

vsrDeletePreset

vsrDeletePreset(
t_fileName
[ ?directory t_directory ]
[ ?path t_path ]
[ ?confirmation g_confirmation ]
) ;
=> t / nil

Description

Deletes a preset file.

Arguments

t_fileName

The name of the preset file without .preset extension.

t_directory

The location of the preset file. It can have one of the following values:

  • ".": The current directory from where Virtuoso is run. The file is loaded from the ./.cadence/dfII/ia/presets directory. This is the default value.
  • "$HOME": The user home directory. The file is loaded from the <user-home-directory>/.cadence/dfII/ia/presets directory.
  • "$CDS_PROJECT": The directory specified by the CDS_PROJECT shell environment variable.The file is loaded from the $CDS_PROJECT/dfII/ia/presets directory.

t_path

The location of the preset file.

If both ?directory and ?path are specified, then the location specified in the ?path is considered. However, if the ?path is empty, the location specified in ?directory is considered.

g_confirmation

Displays a confirmation dialog box before deleting the preset file. When set to nil, the preset file is deleted immediately without confirmation. Default is t.

Value Returned

t

The preset file is deleted.

nil

The function is unable to delete the preset file.

Examples

Deletes the preset file commands from the current run directory.

(vsrDeletePreset "commands")

Deletes preset file M1M5Routing.preset from the $CDS_PROJECT/dfII/ia/presets directory without any confirmation.

(vsrDeletePreset "M1M5Routing" ?directory "$CDS_PROJECT" ?confirmation nil)

Deletes preset file M2M4Routing.preset from the ./cadence/dfII/ia/presets directory after confirming the delete operation.

(vsrDeletePreset "M2M4Routing" ?directory ".")

Related Topics

Space-based Router Functions


Return to top
 ⠀
X