dbFlattenInst and lot of warnings.

M

Marcel Preda

Guest
Hi all,

I have a pice of code which wants to flatten the entire hierarchy (I
need some layers to have all the sapes on top)

The code is like:
~~~~~~~~~~~~~~~~~~
foreach( inst cv->instances
when(inst->objType == "inst"
dbFlattenInst(inst 32 t nil nil)
)
)

foreach( mosaic cv->mosaicss
when( mosaic->objType == "mosaic"
dbFlattenInst(mosaic 32 t nil nil)
)
)
~~~~~~~~~~~~~~~~~~

The code seems to be working well but I get hundreds of warnings like:

\w *WARNING* cannot copy Text Display object by itself
\w *WARNING* The given type 0 is not a valid fig type

Any idea about how can I get ride of those warnings ?

icfb version: 5.10.41.500.6.131

Thank you,
Marcel
 
Marcel Preda wrote, on 11/25/10 07:49:
Hi all,

I have a pice of code which wants to flatten the entire hierarchy (I
need some layers to have all the sapes on top)

The code is like:
~~~~~~~~~~~~~~~~~~
foreach( inst cv->instances
when(inst->objType == "inst"
dbFlattenInst(inst 32 t nil nil)
)
)

foreach( mosaic cv->mosaicss
when( mosaic->objType == "mosaic"
dbFlattenInst(mosaic 32 t nil nil)
)
)
~~~~~~~~~~~~~~~~~~

The code seems to be working well but I get hundreds of warnings like:

\w *WARNING* cannot copy Text Display object by itself
\w *WARNING* The given type 0 is not a valid fig type

Any idea about how can I get ride of those warnings ?

icfb version: 5.10.41.500.6.131

Thank you,
Marcel
(Trying posting again - having some troubles with the news server I was using
last week)

Hi Marcel,

I'm less sure about the "The given type 0 is not a valid fig type" messages, but
the textDisplay messages are due to the fact that dbFlattenInst doesn't handle
these - because it needs to associate the textDisplay with the new flattened
object - and it can't do that.

The only way I can think of to swallow the warnings is to surround your code with:

let(((nullport outfile("/dev/null")))
when(nullport
let(((woport nullport))
; your code goes here
)
close(nullport)
)
)

this will redirect all warnings to /dev/null.

Regards,

Andrew.
 
On Nov 29, 1:07 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Marcel Preda wrote, on 11/25/10 07:49:



Hi all,

I have a pice of code which wants to flatten the entire hierarchy (I
need some layers to have all the sapes on top)

The code is like:
~~~~~~~~~~~~~~~~~~
foreach( inst cv->instances
      when(inst->objType == "inst"
            dbFlattenInst(inst 32 t nil nil)
      )
)

foreach( mosaic cv->mosaicss
      when( mosaic->objType == "mosaic"
             dbFlattenInst(mosaic 32 t nil nil)
      )
)
~~~~~~~~~~~~~~~~~~

The code seems to be working well but I get hundreds of warnings like:

\w *WARNING* cannot copy Text Display object by itself
\w *WARNING* The given type 0 is not a valid fig type

Any idea about how can I get ride of those warnings ?

icfb version:      5.10.41.500.6.131

Thank you,
Marcel

(Trying posting again - having some troubles with the news server I was using
last week)

Hi Marcel,

I'm less sure about the "The given type 0 is not a valid fig type" messages, but
the textDisplay messages are due to the fact that dbFlattenInst doesn't handle
these - because it needs to associate the textDisplay with the new flattened
object - and it can't do that.

The only way I can think of to swallow the warnings is to surround your code with:

let(((nullport outfile("/dev/null")))
   when(nullport
     let(((woport nullport))
       ; your code goes here
     )
     close(nullport)
   )
)

this will redirect all warnings to /dev/null.

Regards,

Andrew.
Thank you,

I've use the trick, it works .


BR,
Marcel
 

Welcome to EDABoard.com

Sponsor

Back
Top