Skill Qn: Getting the cellview type from the ddViewId

S

Suresh Jeevanandam

Guest
Is it possible to find the cellviewtype of a cellview given that I know
only the ddId of the cellview.

ddId = ddGetObj("MyLibName" "MyCellName" "MyViewName")

I am checking if this is pointing to a "schematic" viewType by checking
the value of member("sch.cdb" ddId->files~>name)

Is there any other /clean/ way of doing this.

regards,
Suresh
 
Suresh,

On Wed, 14 Dec 2005 17:13:43 +0530, Suresh Jeevanandam
<sureshj@DELETETHISti.com> wrote:

Is it possible to find the cellviewtype of a cellview given that I know
only the ddId of the cellview.

ddId = ddGetObj("MyLibName" "MyCellName" "MyViewName")

I am checking if this is pointing to a "schematic" viewType by checking
the value of member("sch.cdb" ddId->files~>name)

Is there any other /clean/ way of doing this.

regards,
Suresh
ddId=ddGetObj("MyLibName" "MyCellName" "MyViewName" "*")
ddMapGetFileViewType(ddId)

will do it.

The "*" tells it to get the file object for the master file, and then the second
function does the mapping using the registry.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top