can not set variable :(

B

bu-bu

Guest
Hello All,

I'm experiencing a strange experience. It may be my code, but i don't
know where is the mistake.

I need, by script, to enable the option "Use True BBox" in my layout.

So i tried, in my script:
envSetVal("layout" "useTrueBBox" 'boolean t)

But nothing happens :( i mean i can not see any changes in the
layout. But when i use the display option form,
all is fine.

I would not prefer to use the .cdsenv for this variable, because i
want the script to take care of everything.
(and i'm sure some of my users will complain if i ask them to change
their .cdsenv !!)

I'm sure i'm missing something, but what, and where ?

Do you have any idea ?

Thanks a lot for your help :)

best,

bubu
 
bu-bu wrote, on 11/24/09 02:59:
Hello All,

I'm experiencing a strange experience. It may be my code, but i don't
know where is the mistake.

I need, by script, to enable the option "Use True BBox" in my layout.

So i tried, in my script:
envSetVal("layout" "useTrueBBox" 'boolean t)

But nothing happens :( i mean i can not see any changes in the
layout. But when i use the display option form,
all is fine.

I would not prefer to use the .cdsenv for this variable, because i
want the script to take care of everything.
(and i'm sure some of my users will complain if i ask them to change
their .cdsenv !!)

I'm sure i'm missing something, but what, and where ?

Do you have any idea ?

Thanks a lot for your help :)

best,

bubu
Hi bubu,

It may be that something else is superseding it.

Settings such as these are looked for in this order:

1. CellView property (do Edit->Properties->CellView)
2. Library Properties (do RMB->Properties in the library manager) then if
there's a property "viewProps" it will have an "EXPAND" button next to it. Hit
EXPAND and you'll probably see "maskLayout" listed with another EXPAND button.
You'll then see a whole list of properties, including (maybe) useTrueBBox.
3. If not found on the Library Properties, then then looks to the Technology
Library, and the library properties for that (same steps as 2, but for the
technology library).
4. Finally it uses the cdsenv settings.

Once a window is opened, it stores the properties on the window itself:

hiGetCurrentWindow()~>useTrueBBox

So you need to set that if you want to alter existing windows (i.e. the property
lookup is only done at time of window open).

Regards,

Andrew.
 
Hello Andrew,

Thanks a lot for your reply.
Looks like cw~>useTrueBBox = t works fine for me :)

Thanks a lot !!

bubu
 

Welcome to EDABoard.com

Sponsor

Back
Top