Skill Qn: How to check if a cellview exists
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Skill Qn: How to check if a cellview exists

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Suresh Jeevanandam
Guest





Posted: Mon Nov 28, 2005 1:10 pm    Post subject: Skill Qn: How to check if a cellview exists Reply with quote

Hi,
I want to check if a cellview exists for a given
libName-cellName-viewName .

This could be done by checking the return value of
dbOpenCellViewByType().This one prints a warning message every time it
could not find a cellview.Is there any other function that would just
check if a cellview exists and returns t/nil .

regards,
Suresh.

Back to top
Andrew Beckett
Guest





Posted: Mon Nov 28, 2005 1:10 pm    Post subject: Re: Skill Qn: How to check if a cellview exists Reply with quote

On Mon, 28 Nov 2005 11:16:48 +0100, Bernd Fischer
<""bernd.fischer\"@xignal-A%&HY%$v#&G=.de"> wrote:

Quote:

ddGetObj returns the design data ID if the object exist or nil if not

ddGetObj(
{ t_libName/nil }
[ t_cellName/nil ]
[ t_viewName/nil ]
[ t_fileName/nil ]
[ b_contextId/nil ]
[ t_mode ]
)
=> b_ddId

Bernd

Suresh Jeevanandam wrote:
Hi,
I want to check if a cellview exists for a given
libName-cellName-viewName .

This could be done by checking the return value of
dbOpenCellViewByType().This one prints a warning message every time it
could not find a cellview.Is there any other function that would just
check if a cellview exists and returns t/nil .

regards,
Suresh.

Also see my sourcelink solution 11026564 which shows a way to suppress the
warnings.

Regards,

Andrew.
Back to top
Bernd Fischer
Guest





Posted: Mon Nov 28, 2005 1:10 pm    Post subject: Re: Skill Qn: How to check if a cellview exists Reply with quote

ddGetObj returns the design data ID if the object exist or nil if not

ddGetObj(
{ t_libName/nil }
[ t_cellName/nil ]
[ t_viewName/nil ]
[ t_fileName/nil ]
[ b_contextId/nil ]
[ t_mode ]
)
=> b_ddId

Bernd

Suresh Jeevanandam wrote:
Quote:
Hi,
I want to check if a cellview exists for a given
libName-cellName-viewName .

This could be done by checking the return value of
dbOpenCellViewByType().This one prints a warning message every time it
could not find a cellview.Is there any other function that would just
check if a cellview exists and returns t/nil .

regards,
Suresh.


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB