OpenObject process

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


Your Ad Here

Description

Open a specific object in DXP such as a document or a project.

Parameters

ObjectKind (NewAnything, DocumentList, RecentDocument, RecentProject, RecentProjectGroup, Document, FocusedDocument, FocusedCategory, Variant, Project, FocusedProject, ProjectAndDocuments, FocusedProjectAndDocuments, ProjectDocuments, FocusedProjectDocuments, ProjectGroupDocuments, ProjectGroup, LastProjectGroup, PrimaryDocument, MessageView, MessageViewSelection, CreateProjectsFromPath, All,Assembly, Fabrication, Report, Netlist, Documentation, ,OtherOutput, OutputSingle, OutputBatch, OutputSelected, OutputDuplicate, DatabaseLink, OutputPreference, ControlPanel, FreeDocument, WorkSpaceDocuments, Workspace)

OpenMode (Standard, NewFromExisting, NewFromTemplate, .Project)

Ext (*.PCBDOC, *.SCHDOC)

DocumentType (PCB, SCH)

Filename (String)

Index (Integer) The position in the most recently used documents list.

Kind (EDIF, EDIFLIB, ProtelNetlist, PCB, SCH, SCHLIB, PCBLIB, PCB3DLIB, C, TEXT, CPP, CUPL, MDL, NSX, CKT, SIMDATA, EditScript, OutputJob, DatabaseLink, VHDL,VHDLIB, VHDMDL, VHDTST VHDL,PcbProject, CoreProject, FpgaProject, EmbeddedProject, IntegratedLibrary, ProjectGroup, CAMTastic, WAVE, IntLibrary, ScriptProject, EditScriptUnit, EditScriptForm)

Notes

Example

Process: WorkspaceManager:OpenObject

Parameter: ObjectKind = Project

Example 2: Open a project using the script

Procedure OpenProject(ProjectName : String);

Begin

    Result := True;

    If Not FileExists(ProjectName) Then Result := False;

    ResetParameters;

    AddStringParameter('ObjectKind','Project');

    AddStringParameter('FileName', ProjectName);

    RunProcess('WorkspaceManager:OpenObject');

End;

See also

CloseObject process

SaveObject process

See also

WorkSpaceManager processes