[PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: "Patrick Escher" <patrick.escher@xxxxxxxxx>
- To: icu-pcb-forum@xxxxxxxxxxxxx
- Date: Wed, 13 Sep 2006 17:15:38 +0200
thx. that helps a lot.
but I cannot find that command in the Allegro Skill Manual ( Version 15.5.1)
Is this an undocumented command ?
Are we allowed to use it ?
btw. if I type that in to the Skill Dev Console, I get the following error
message
---
E- *Error* eval: undefined function - axlSaveEnable
ERROR
----
regards
Patrick
2006/9/13, fxf <fxf@xxxxxxxxxxx>:
NAME
axlSaveEnable - set or query save design state
SYNOPSIS
axlSaveEnable(
[g_saveEnable]
) -> t/nil
FUNCTION
This queries or sets the design save design. When t the
File->Save
design menu item is enabled, nil it is disabled.
If no arguments are provided then returns current status.
If g_saveEnable is t then enables save menu (reset of next
database save). If g_saveEnable is nil disables the save menu.
If is not recommended that you unset the save enable.
NEEDS
g_saveEnable: t
if not provided just does query
RETURNS
Returns current save setting if query and previous setting
if changing the value.
SEE ALSO
axlSaveDesign
EXAMPLES
1) query state of save
state = axlSaveEnable()
2) Set state of save to t (enable save menu)
oldState = axlSaveEnable(t)
Patrick Escher wrote:
> this command saves the databse, right ?
> I would need a command which checks if the database is modified and
> not saved yet. So basically a flag for pending changes.
>
>
>
> 2006/9/13, fxf < fxf@xxxxxxxxxxx <mailto:fxf@xxxxxxxxxxx>>:
>
> If writing Skill code use axlSaveEnable(nil).
>
> You can also run your program on the active database by checking out
> axlRunBatchDBProgram
>
>
>
> Patrick Escher wrote:
> > Is it possible to detect if a layout in Allegro PCB 15.x has
> pending
> > changes which have not been saved yet to the layout database ?
> > Getting a 'boolean' value is sufficient.
> > Any flag, console command or Allegro Skill command how this can be
> > detected.
> >
> > Usecase:
> >
> > we have a program which uses the layout database for some
> > postprocessing. The program is at the moment triggered fromthe
> Allegro
> > menu and it reads the layout database file.
> > So we want to make sure, that the program uses the latest database
> > file the user is currently working on. If the layout is modified
but
> > not saved, we want to bring up a warning dialog/message to the
user
> > asking for a couple of options. we do not want to force
> automatically
> > a databse save ( by e.g. console command)
> >
> > regards
> >
> > Patrick
> -----------------------------------------------------------
> To subscribe/unsubscribe:
> Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
> <mailto:icu-pcb-forum-request@xxxxxxxxxxxxx>
> with a subject of subscribe or unsubscribe
>
> To view the archives of this list go to
> http://www.freelists.org/archives/icu-pcb-forum/
>
> Problems or Questions:
> Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
> <mailto:icu-pcb-forum-admins@xxxxxxxxxxxxx>
> -----------------------------------------------------------
>
>
-----------------------------------------------------------
To subscribe/unsubscribe:
Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
with a subject of subscribe or unsubscribe
To view the archives of this list go to
http://www.freelists.org/archives/icu-pcb-forum/
Problems or Questions:
Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
-----------------------------------------------------------
- Follow-Ups:
- References:
- [PCB_FORUM] detect a unsaved layout in Allegro PCB
- From: Patrick Escher
- [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: fxf
- [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: Patrick Escher
- [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: fxf
Other related posts:
- » [PCB_FORUM] detect a unsaved layout in Allegro PCB
- » [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- » [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- » [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- » [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- » [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
NAME axlSaveEnable - set or query save design state SYNOPSIS axlSaveEnable( [g_saveEnable] ) -> t/nil FUNCTION This queries or sets the design save design. When t the File->Save design menu item is enabled, nil it is disabled.
If no arguments are provided then returns current status.
If g_saveEnable is t then enables save menu (reset of next
database save). If g_saveEnable is nil disables the save menu. If is not recommended that you unset the save enable.
NEEDS
g_saveEnable: t
if not provided just does query RETURNS
Returns current save setting if query and previous setting
if changing the value.
SEE ALSO
axlSaveDesign
EXAMPLES
1) query state of save
state = axlSaveEnable()
2) Set state of save to t (enable save menu)
oldState = axlSaveEnable(t)Patrick Escher wrote: > this command saves the databse, right ? > I would need a command which checks if the database is modified and > not saved yet. So basically a flag for pending changes. > > > > 2006/9/13, fxf < fxf@xxxxxxxxxxx <mailto:fxf@xxxxxxxxxxx>>: > > If writing Skill code use axlSaveEnable(nil). > > You can also run your program on the active database by checking out > axlRunBatchDBProgram > > > > Patrick Escher wrote: > > Is it possible to detect if a layout in Allegro PCB 15.x has > pending > > changes which have not been saved yet to the layout database ? > > Getting a 'boolean' value is sufficient. > > Any flag, console command or Allegro Skill command how this can be > > detected. > > > > Usecase: > > > > we have a program which uses the layout database for some > > postprocessing. The program is at the moment triggered fromthe > Allegro > > menu and it reads the layout database file. > > So we want to make sure, that the program uses the latest database > > file the user is currently working on. If the layout is modified but > > not saved, we want to bring up a warning dialog/message to the user > > asking for a couple of options. we do not want to force > automatically > > a databse save ( by e.g. console command) > > > > regards > > > > Patrick > ----------------------------------------------------------- > To subscribe/unsubscribe: > Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx > <mailto:icu-pcb-forum-request@xxxxxxxxxxxxx> > with a subject of subscribe or unsubscribe > > To view the archives of this list go to > http://www.freelists.org/archives/icu-pcb-forum/ > > Problems or Questions: > Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx > <mailto:icu-pcb-forum-admins@xxxxxxxxxxxxx> > ----------------------------------------------------------- > > ----------------------------------------------------------- To subscribe/unsubscribe: Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx with a subject of subscribe or unsubscribe
To view the archives of this list go to http://www.freelists.org/archives/icu-pcb-forum/
Problems or Questions: Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx -----------------------------------------------------------
- [PCB_FORUM] detect a unsaved layout in Allegro PCB
- From: Patrick Escher
- [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: fxf
- [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: Patrick Escher
- [PCB_FORUM] Re: detect a unsaved layout in Allegro PCB
- From: fxf