Macro Language Reference > Macros > Namespace > tnsave
  
tnsave
Description
Saves a namespace and all its contents to a file.
Syntax
tnsave invoke_db:n? save_name:t? filename:s as_link:n?
tnsave
[no parameter]
Invoke the Save Namespace dialog box.
invoke_db
0
Do not display the Save Namespace dialog box (default value).
1
Display the Save Namespace dialog box, even if the correct parameters are given.
save_name
The namespace to be saved.
filename
The name of the file to which the namespace should be saved. If the parameter is omitted but the namespace has been saved to a file previously, whether linked or not, the same name will be used again. If there is no previous name the file default {@}load_name.3ns will be used. The {@} part of the name is a quick reference toPTC ALD program folder (not the document folder). The save_name will be the same as the namespace being saved.
as_link
0
Do not maintain any link from the current document.
1
Save the namespace as a link.
The default value for this parameter is usually 1, but defaults to 0 if the namespace has been previously saved or loaded as a non-link.