Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

change grid setting using skill programing

Status
Not open for further replies.

iqbalsahid

Newbie level 4
Joined
Jul 7, 2017
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
48
Hi everyone,

How can i change grid of cadence virtuoso layout using skill scripting??
 

If you do it via the menus, then in the cds.log file you
ought to see the commands (Skill) that did what you
said.

Then the trick is to get those same commands to be
executed when / where you want. You could enter
them to the CIW of course (but why?) or make a
bindkey.
 

i want to load the grid setting when the virtoso is loaded. So i make a skill code it will load in virtuoso initially.
 

i want to load the grid setting when the virtoso is loaded. So i make a skill code it will load in virtuoso initially.
envSetVal() is a skill function.
I can control grid setting by envSetVal() at least six month ago.

However it can not work now due to some unknown reason.
 

Are you sure that your local or chosen cdsinit, cds.env files
are being invoked? Maybe your local CAD support weasel
(or your benevolent tools vendor themselves) changed the
init chain and what you used to have going on, is now just
deadwood.

A question is, does a SKILL snippet work as before if you
enter it in the CIW (perhaps with appropriate preamble, to
make it evaluate right)? If so then chase why it is not
doing the same, in the init chain.
 

Are you sure that your local or chosen cdsinit, cds.env files are being invoked?
Yes.
Other setting for environment variables are effective.
For example, followings in my ".cdsinit" are effective.
Code:
envSetVal("schematic" "statusBanner" 'boolean t) 

; Schematics>Options>Display:Coordinates_on_Status_Banner:off/on
;envSetVal("schematic" "statusBannerXY" 'boolean t) 
schChangeStatusBanner( "xy" ); on
;schChangeStatusBanner( "" ); off

;ui      showOptionForms boolean t

envSetVal("graphic" "dotStyleMajorGrid" 'boolean t)

envSetVal("schematic" "createLabelFontStyle" 'cyclic "roman")
envSetVal("schematic" "symbolLabelFontStyle" 'cyclic "roman")
envSetVal("schematic" "noteFontStyle" 'cyclic "roman")

envSetVal("schematic" "viewNameList" 'string "veriloga schematic symbol")

envSetVal("schematic" "schDynamicNetHilightOn" 'boolean t)

envSetVal("schematic" "schDynamicNetHilightColor" 'string "magenta")
envSetVal("schematic" "schDynamicNetHilightColorPre" 'string "white"); magenta
envSetVal("schematic" "schDynamicNetHilightColorAlt" 'string "orange")
envSetVal("schematic" "schDynamicNetHilightColorMemNet" 'string "cadetBlue")

;envSetVal("schematic" "descendCanvasType" 'string "new tab"); {new tab|current tab|new window}
envSetVal("schematic" "descendCanvasType" 'string "current tab"); {new tab|current tab|new window}

Maybe your local CAD support weasel
(or your benevolent tools vendor themselves) changed the init chain
and what you used to have going on, is now just deadwood.
I think so.

A question is,
does a SKILL snippet work as before
if you enter it in the CIW (perhaps with appropriate preamble,
to make it evaluate right)?
They all return "t".
When I confirmed environment variable, values are surely changed.
However they can not be reflected to GUI.
 
Last edited:

thanks but this not working
Try the followings.
Code:
;[Set Working Grid]
hiGetCurrentWindow() ~> xSnapSpacing = 0.005 ; [um]
hiGetCurrentWindow() ~> ySnapSpacing = 0.005 ; [um]

;[Set Display Minor Grid]
hiGetCurrentWindow() ~> gridSpacing = 0.1 ; Minor Spacing [um]

;[Set Display Major Grid]
hiGetCurrentWindow() ~> gridMultiple = 5 ; (=Major_Spacing/Minor_Spacing)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top