WriteTree

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Tree >

WriteTree

Description

Writes on the file <filename>.<revision>.TREE a representation of the tree structure of the document with the passed <unique_id>. Can be used mainly to check that project structures are correct.

Syntax

call DBWShell("WriteTree UniqueID FileName Revision Configuration")

Parameters

UniqueID

unique id of the document to create the tree of.

FileName

filename part of the final filename.

Please note any space char in filenames and paths must be replaced by "|" char.

Revision

revision part of the final filename.

Configuration

configuration part of the final filename.

Remarks

If invoked with no parameters, it works on the currently opened document.

If it is a released document, it overwrites the last revision .TREE file for the opened document.
The command should be only used by DBWorks Administrators; the purpose is to align the .TREE structure with the actual opened document structure

If the option

Revision → ApprovalcheckOFFCreate Structure History for all the documents types
is unchecked, Filename must have .sldasm extension because tree file can be done only for assembly.

See also

WriteActualGrid
WriteActualTree
WriteTree

Example

DBWShell("WriteTree 223 C:\My|Tests\checkTest.sldasm REV1 157")