Macro Language Reference > Macros > Tag > tdldtag
  
tdldtag
Description
Loads a tag from another document into the current document.
* 
PTC ALD will load the tag from the last version of the document that was saved.
 
Example 261. Load specific tags from another document
The macro below loads three named tags from a document called a4port.3d:
tdldtag "c:/3d/a4port.3d", "Tag1", "Tag2", "Tag3"
 
Example 262. List all tags available for loading
The macro below loads lists all the tags available for loading from the document a4port.3d, allowing you to make a multiple selection:
tdldtag "c:/3d/a4port.3d", "*
 
Example 263. List all raster tags available for loading
The macro below lists all the raster tags available for loading from a4port.3d, allowing you to make a multiple selection.
tdldtag "c:/3d/a4port.3d", "rg*
 
Example 264. List tags starting with b available for loading
The macro shown below will list all style tags beginning with b:
tdldtag "c:/3d/a4port.3d", "st?b*
Syntax
tdldtab type:n? filename:s?
tdldtab
[no parameter]
Invoke the Load tag(s) from document(s) dialog box.
lib mode
Ø|0
Copy tag from filename to the current document
1
Link tag from filename in library mode. If the tag is subsequently changed in the current document and the changes saved, the tag will be written back to the library.
no db
Ø|0
If any tag name contains wildcard characters, display a dialog box to allow a selection to be made from the matching tags.
1
If any tag name contains wildcard characters, automatically select all matching tags without displaying a dialog box.
filename
The name of the file from which you want to load tags.
tagname
The name of a tag to be loaded from filename. You can specify as many tags as you like, or use wildcard characters to obtain a dialog box from which tags from the document can be selected. Use the no db parameter to suppress the dialog box and select all matching tags automatically.
You can also restrict the list of tags to those beginning (or ending) in a specific pattern. When PTC ALD lists tags for tdldtag it treats the tag type code as part of the tag name even though a space is displayed between the two. You can match this space with a ? wildcard.