Macro Language Reference > Macros > Namespace > tnload
  
tnload
Description
Loads a namespace and its contents into the current document.
Syntax
tnload invoke_db:n? load_name:t? filename:s as_link:n? run_autoexec:n?
tnload
[no parameter]
Invoke the Load Namespace dialog box.
invoke_db
0
Do not display the Load Namespace dialog box.
1
Display the Load Namespace dialog box, even if the correct parameters are given.
load_name
The namespace to be loaded. This does not necessarily have to be the .3ns file that was saved. An automatic renaming process takes place when using a different name to what is in the file.
filename
The name of the file from which the namespace is to be loaded. If the parameter is omitted but the namespace has been loaded from 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 to PTC ALD program folder (not the document folder). The load_name will be the same as the namespace being loaded.
as_link
0
Do not maintain any link from the current document.
1
Load 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.
run_autoexec
0
Do not run the namespace's autoexec script.
1
Run the namespace's autoexec script after loading (default value). The autoexec usually performs repetitive operations associated with loading the namespace, such as inserting it into the search list. Beware of macros which directly reference the namespace name: if the namespace is loaded with a different name to the one it was saved as then direct references will be wrong.