CloseObject process

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

Description

Close a document, focussed document, project, all documents in a project or all documents in the DXP workspace.

Parameters

ObjectKind (All,Document,FocusedDocument,FocusedCategory,ProjectAndDocuments,FocusedProjectAndDocument,FocusedProjectTree,ProjectDocuments,FocusedProjectDocuments,WorkspaceDocuments)

Example

Process: WorkSpaceManager:CloseObject

Parameters : ObjectKind = All

Example 2: Close everything in DXP in a script

Procedure CloseEverything;

Begin

    ResetParameters;

    AddStringParameter('ObjectKind','All');

    RunProcess('WorkspaceManager:CloseObject');

End;

Example 3 Close all the documents within the focussed project tree in a script

Procedure CloseProjectTree(ProjectName : String);

Begin

    ResetParameters;

    AddStringParameter('ObjectKind','FocusedProjectTree');

    RunProcess('WorkspaceManager:CloseObject');

End;

See also

OpenObject process

SaveObject process

WorkSpaceManager processes

Your Ad Here