|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > RemoteAccess > PutInBriefcaseTree |
Put a document in the BriefCase.
call DBWShell("PutInBriefcaseTree ZipFile DestCompanyID DrawingsMode AddStandard AddGeneric
AddNonManaged Silent AutoCheckOut TraverseMode AvoidToModifyCheckedOutDocs
AddForeignDocs TransferOwnership OnlyProjects")
ZipFile |
the full file name of the briefcase to put doc into |
|---|---|
DestCompanyID |
destination Company ID (according to what specified in DBCustomizer) |
DrawingsMode |
possibile values are: |
AddStandard |
possibile values are: |
AddGeneric |
possibile values are: |
AddNonManaged |
possibile values are: |
Silent |
to avoid asking confirmation |
AutoCheckOut |
0: Do not set autocheckout |
TraverseMode |
0: Insert only the passed node |
AvoidToModifyCheckedOutDocs |
0: Let modify checkedout documents |
AddForeignDocs |
0: Do not add foreign documents |
TransferOwnership |
0: Do not allow to take ownership |
OnlyProjects |
0: Insert every document |
|
The option must be used with the Autocheckout Mode set to FALSE. |
When the option is checked, the following changes applies to the briefcase being written:
•the state BEING_MODIFIED ( Checked-out ) is transformed into state CHECKED_IN
•the OWNER_COMPANY_ID is always set to NULL
•the CHECKED_OUT_BY is always set to NULL
GetFromBriefcaseTree command
readableFileName="e:\myBriefcases\test.zip"
DestCompanyID = "MechWorks"
BcDrawingsMode="1" 'All related drawings
BcAddStandard="0"
BcAddGeneric="0"
BcAddNonManaged="0"
silent="1"
BcAutoCheckOut = "0"
BcTraverseMode = "1"
BcAvoidToModifyCheckedOutDocuments = "1"
BcAddForeignDocuments = "0"
transferOwnership = "1"
OnlyProjects = "0"
strCommand= Replace(readableFileName," ","|") & " " & _
Replace(DestCompanyID," ","|") & " " & _
BcDrawingsMode & " " & _
BcAddStandard & " " & _
BcAddGeneric & " " & _
BcAddNonManaged & " " & _
silent & " " & _
BcAutoCheckOut & " " & _
BcTraverseMode & " " & _
BCAvoidToModifyCheckedOutDocuments & " " & _
BCAddForeignDocuments & " " & _
transferOwnership & " " & _
OnlyProjects
call DBWShell("PutInBriefCaseTree " & strCommand)