How to keep the gravity always on in Virtuoso

X

Xiaofeng Wang

Guest
Hi, all:

When using the Virtuoso, it is easy to turn off the gravity
unintentionally by mistyping "g". It will result in the off-grid
error.

Is there any method to secure the gravity to be always on?

Thanks.



Xiaofeng
 
The Gratify Controls have nothing to with the manufacturing grid or
off grid drc errors!

Form the docs:
'You can use gravity to set the cursor (the small square) to snap to objects as
you create them. This helps you create the edge of one object flush with another.'

If you want to be sure that you are not designing off grid errors
set the X snap spacing and the Y snap spacing in the Display Options
to a multiple of your grid.

To prevent users form editing this fields you can disable them
form being edited with some SKILL code, which you have to put
in your or the side wide .cdsinit file.

;; predefine the layout editor display options
procedure( BFpredefLayDisOpts( )

hiSetFieldEditable( leDisplayOptionsForm->xSnap nil )
hiSetFieldEditable( leDisplayOptionsForm->ySnap nil )

) ;; close BFpredefLayDisOpts

defUserInitProc( "le" 'BFpredefLayDisOpts )



Bernd

Xiaofeng Wang wrote:
Hi, all:

When using the Virtuoso, it is easy to turn off the gravity
unintentionally by mistyping "g". It will result in the off-grid
error.

Is there any method to secure the gravity to be always on?

Thanks.



Xiaofeng
 
add the following i your .cdsenv to keep gravity on always,

layout gravityOn boolean nil

Partha

Bernd Fischer <bernd.fischer@xignal.de> wrote in message news:<3F6EB343.5030800@xignal.de>...
The Gratify Controls have nothing to with the manufacturing grid or
off grid drc errors!

Form the docs:
'You can use gravity to set the cursor (the small square) to snap to objects as
you create them. This helps you create the edge of one object flush with another.'

If you want to be sure that you are not designing off grid errors
set the X snap spacing and the Y snap spacing in the Display Options
to a multiple of your grid.

To prevent users form editing this fields you can disable them
form being edited with some SKILL code, which you have to put
in your or the side wide .cdsinit file.

;; predefine the layout editor display options
procedure( BFpredefLayDisOpts( )

hiSetFieldEditable( leDisplayOptionsForm->xSnap nil )
hiSetFieldEditable( leDisplayOptionsForm->ySnap nil )

) ;; close BFpredefLayDisOpts

defUserInitProc( "le" 'BFpredefLayDisOpts )



Bernd

Xiaofeng Wang wrote:
Hi, all:

When using the Virtuoso, it is easy to turn off the gravity
unintentionally by mistyping "g". It will result in the off-grid
error.

Is there any method to secure the gravity to be always on?

Thanks.



Xiaofeng
 
Sorry to contradict you, but the
environment variable setting

layout gravityOn boolean nil

turns the Gravity Controls off not on.

layout gravityOn boolean t

Set the Gravity Controls to be active, but also not
always. This is an environment variable setting
which will be overwritten every time you use the
bindkey 'g' which toggles the Gravity Controls on and off.

Bernd

Partha wrote:
add the following i your .cdsenv to keep gravity on always,

layout gravityOn boolean nil

Partha

Bernd Fischer <bernd.fischer@xignal.de> wrote in message news:<3F6EB343.5030800@xignal.de>...

The Gratify Controls have nothing to with the manufacturing grid or
off grid drc errors!

Form the docs:
'You can use gravity to set the cursor (the small square) to snap to objects as
you create them. This helps you create the edge of one object flush with another.'

If you want to be sure that you are not designing off grid errors
set the X snap spacing and the Y snap spacing in the Display Options
to a multiple of your grid.

To prevent users form editing this fields you can disable them
form being edited with some SKILL code, which you have to put
in your or the side wide .cdsinit file.

;; predefine the layout editor display options
procedure( BFpredefLayDisOpts( )

hiSetFieldEditable( leDisplayOptionsForm->xSnap nil )
hiSetFieldEditable( leDisplayOptionsForm->ySnap nil )

) ;; close BFpredefLayDisOpts

defUserInitProc( "le" 'BFpredefLayDisOpts )



Bernd

Xiaofeng Wang wrote:

Hi, all:

When using the Virtuoso, it is easy to turn off the gravity
unintentionally by mistyping "g". It will result in the off-grid
error.

Is there any method to secure the gravity to be always on?

Thanks.



Xiaofeng
 
And lastly,

redefine your g bindkey to NOT toggle the gravity setting so it's not easy to turn off.

hiSetBindKey("Layout" "<Key>g" "")
or
hiSetBindKey("Layout" "<Key>g" "leSetEnv(\"gravityOn\" t)")

Dennis


Bernd Fischer wrote:

Sorry to contradict you, but the
environment variable setting

layout gravityOn boolean nil

turns the Gravity Controls off not on.

layout gravityOn boolean t

Set the Gravity Controls to be active, but also not
always. This is an environment variable setting
which will be overwritten every time you use the
bindkey 'g' which toggles the Gravity Controls on and off.

Bernd

Partha wrote:
add the following i your .cdsenv to keep gravity on always,

layout gravityOn boolean nil

Partha

Bernd Fischer <bernd.fischer@xignal.de> wrote in message news:<3F6EB343.5030800@xignal.de>...

The Gratify Controls have nothing to with the manufacturing grid or
off grid drc errors!

Form the docs:
'You can use gravity to set the cursor (the small square) to snap to objects as
you create them. This helps you create the edge of one object flush with another.'

If you want to be sure that you are not designing off grid errors
set the X snap spacing and the Y snap spacing in the Display Options
to a multiple of your grid.

To prevent users form editing this fields you can disable them
form being edited with some SKILL code, which you have to put
in your or the side wide .cdsinit file.

;; predefine the layout editor display options
procedure( BFpredefLayDisOpts( )

hiSetFieldEditable( leDisplayOptionsForm->xSnap nil )
hiSetFieldEditable( leDisplayOptionsForm->ySnap nil )

) ;; close BFpredefLayDisOpts

defUserInitProc( "le" 'BFpredefLayDisOpts )



Bernd

Xiaofeng Wang wrote:

Hi, all:

When using the Virtuoso, it is easy to turn off the gravity
unintentionally by mistyping "g". It will result in the off-grid
error.

Is there any method to secure the gravity to be always on?

Thanks.



Xiaofeng
 

Welcome to EDABoard.com

Sponsor

Back
Top