Macro Language Reference > Macros > Document > tdcom
  
tdcom
Description
Creates a document comment stream called _doc_com_ if it does not already exist and places the text cursor at the top of that stream. The tdcom macro can, therefore, be used both to create and examine document comments. You can use comments to describe how a document works or its use. Alternatively, a comment can store variable values, which can then be read automatically by an PTC ALD script via tfread.
Syntax
tdcom
Additional Information
Comment streams must always be the first tag in a document, since this saves unnecessary searching. When you comment a document from within PTC ALD the comment will always appear at the start of the document. If you are planning to add comments to a document using an external editor or database program, you may want to examine the way PTC ALD writes a comment by setting one up as normal and looking at the resulting .3d file.
Related Links