RistanCASERistanCASE Home
Home |  Products |  Company Info |  Partners   
Home » Products » DAC V4.x » FAQ (How-to) » How to control DAC from Command Line?
How to control DAC from Command Line? FAQ Index

"DAC User Manual" and "DAC Documentation Changes", chapter 2.1.1.2 DACEdit

In the software development programs you are using there must be a need to define an "External Editor", for example in version control systems. It is not expedient to cite DAC directly in this case because a new instance of DAC would be started for each file if you were to do so. That is why the DACEdit.exe program, which, if necessary, first starts DAC and then passes on the correct commands via DDE (see "Direct Data Exchange (DDE)" in DAC Users Manual page 144 or >>>), is now at your disposal. Apart from purely editor-type commands, DACEdit can forward a multitude other commands, meaning that it can be used for DAC remote control. These commands can have the following syntax:

DACEdit [/t time] [filename]

DACEdit [/t time] [/p <project name>[.dcp]

DACEdit [/t time] [/saveall]]

DACEdit [/t time] [/f <file path> [/save] [/update] [/l <line>] [/c column]]

DACEdit [/t time] [/q /h] [/e [UDA macro][UDA action][Menu command][Editor macro]]

Should any parameter contain spaces, it must be surrounded by quotation marks.

/p <project name>[.dcp]: Name of the project to be opened in DAC. The extension of this file has to be ".dcp".

/f <filename>: Name of the file to be opened in DAC Editor. The extension has to belong to the list of editablefiles. If no project was opened prior to this (which is certainly highly advisable as DAC is a project-orientedtool), a default project with limited configuration possibilities will be opened.

/l <line>: Line on which the insertion point should be positioned on opening a file. 

/c <column>: Column on which the insertion point should be positioned on opening a file.

/e <command>: Command to be executed in DAC.

/saveall: Command for saving edited files in the Editor.

/save: Command for saving the currently active file in DAC, if it has been altered. To ensure compatibilitywith earlier versions, the alternative command /update can be used.

/q /h: Execute action in quiet mode. 

/t <time>: Delay time in sec after DAC start command was sent.

"DAC User Manual" and "DAC Documentation Changes", 2.17.1 Commands Supported by the DDE Server

- UDA macros assigned in the same format as an individual line in user-defined actions. These commands are marked with (*) in chapter 1.6.5 "User-Defined Actions Macros" on page 56.

- UDA commands as they appear on the Start menu.

- Menu::Command format menu commands (Example: File::Exit). If menu command produces messages they will be automatically saved until default names (as in File / Save As…).

Currently supported Menu Commands:
File::New
File::Open
File::Close
File::Save
File::SaveAs
File::SaveAll
File::Format
File::PageAndPrintingSetup
File::PrintPreview
File::Print
File::Exit
Edit::Undo
Edit::Cut
Edit::Copy
Edit::Paste
Edit::Delete
Edit::Append
Edit::SelectAll
Edit::Hide
Edit::Unhide
Edit::HideAllUnanalyzed
Edit::HideThis
Edit::UnhideAllUnanalyzed
Edit::Format
Edit::Indent
Edit::Unindent
Edit::Upper
Edit::Lower
Edit::Toggle
View::FlowChart
View::StructureHighlighting
Search::Find
Search::Replace
Search::Next
Search::Previous
Search::FindAll
Search::ReplaceAll
Search::NextMessage
Search::PreviousMessage
Search::OlderSourcePos
Search::NewerSourcePos
Search::GotoLine
Search::MatchBracket
Search::Mark0
Search::Mark1
Search::Mark2
Search::Mark3
Search::Mark4
Search::Mark5
Search::Mark6
Search::Mark7
Search::Mark8
Search::Mark9
Browse::Definition
Browse::Declarations
Browse::Uses
Browse::Assignments
Browse::CallsTo
Browse::CallsWithin
Browse::UsesWithin
Browse::GlobalFunctions
Browse::GlobalVariables
Browse::GlobalConstants
Browse::GlobalTypes
Browse::Macros
Graph::FunctionGraph
Graph::TypeGraph
Graph::GraphOfRootFunctions
Graph::UseView
Metrics::Apply
Start::UpdateDatabase
Start::BuildDatabase
Start::FastModuleAnalysis
Start::CheckSymbolNames
Start::GenerateMakefile

- Editor macros in the format in which they are assigned in Editor Macro Language files. Both primitive and user-defined macros belong in this category. You can send multiple commands of any type simultaneously if separated by a ";" character.

 
Copyright © 1996-2008 RistanCASE GmbH. All rights reserved.