dfII view type
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
dfII view type

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





Posted: Fri Nov 26, 2004 5:54 pm    Post subject: dfII view type Reply with quote

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.

Back to top
Erik Wanta
Guest





Posted: Sun Nov 28, 2004 1:52 pm    Post subject: Re: dfII view type Reply with quote

Sam:
Probably not the best way, but ...

objid=ddGetObj("lib" "cell" "view")

foreach(file objid~>files
when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
viewType=ddMapGetFileViewType(file)
) ; when
) ; foreach

---
Erik


Sam <agnes.sam@NoSpamfree.fr> wrote in message news:<co7974$sc5$1@newshost.mot.com>...
Quote:
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
Back to top
fogh
Guest





Posted: Mon Nov 29, 2004 2:13 pm    Post subject: Re: dfII view type Reply with quote

Sam wrote:
Quote:
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I
would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.
Hi Sam,

Do you mean this:
geGetEditCellView()->cellViewType
?

Back to top
Andrew Beckett
Guest





Posted: Mon Nov 29, 2004 2:18 pm    Post subject: Re: dfII view type Reply with quote

A better way:

objId=ddGetObj("lib" "cell" "view" "*")
viewType=objId && ddMapGetFileViewType(objId)

The "*" argument tells ddGetObj to access the file referenced by the
master.tag.

Regards,

Andrew.


On 28 Nov 2004 00:52:19 -0800, erikwanta@starband.net (Erik Wanta) wrote:

Quote:
Sam:
Probably not the best way, but ...

objid=ddGetObj("lib" "cell" "view")

foreach(file objid~>files
when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
viewType=ddMapGetFileViewType(file)
) ; when
) ; foreach

---
Erik


Sam <agnes.sam@NoSpamfree.fr> wrote in message news:<co7974$sc5$1@newshost.mot.com>...
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
Back to top
Andrew Beckett
Guest





Posted: Mon Nov 29, 2004 3:21 pm    Post subject: Re: dfII view type Reply with quote

That won't work with anything other than CDBA/OA viewtypes - i.e. stuff that
can be opened in a graphics editor. See my previous posting with a solution
for this.

Regards,

Andrew.

On Mon, 29 Nov 2004 10:13:07 +0100, fogh
<cad_support@skipthisandunderscores.catena.nl> wrote:

Quote:
Sam wrote:
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I
would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.
Hi Sam,
Do you mean this:
geGetEditCellView()->cellViewType
?

Back to top
Sam
Guest





Posted: Mon Nov 29, 2004 5:29 pm    Post subject: Re: dfII view type Reply with quote

Thanks for your precious answer Erik;

Sam.

Quote:
Sam:
Probably not the best way, but ...

objid=ddGetObj("lib" "cell" "view")

foreach(file objid~>files
when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
viewType=ddMapGetFileViewType(file)
) ; when
) ; foreach

---
Erik


Sam <agnes.sam@NoSpamfree.fr> wrote in message news:<co7974$sc5$1@newshost.mot.com>...

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
Back to top
Stefan Robert
Guest





Posted: Fri Dec 10, 2004 9:53 pm    Post subject: Re: dfII view type Reply with quote

On 2004-11-26 07:54:16 -0500, Sam <agnes.sam@NoSpamfree.fr> said:

Quote:
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.

; First open the window and get the window:ID
wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

; Get the database ID of the cell inside that window
cv = geGetWindowCellView( wid )

; Then get the cellViewType
cellViewType = cv~>cellViewType

Hope this help!

Stefan Robert
Universite de Sherbrooke
Back to top
Andrew Beckett
Guest





Posted: Sun Dec 12, 2004 3:48 am    Post subject: Re: dfII view type Reply with quote

But as I mentioned in previous solutions, this approach won't work for a
textual cellView, because you can't do the geOpen(). Sam was asking
about "text" views.

I gave a solution for this in a previous post in this thread (in fact I then
wrote this up as a sourcelink solution too).

Nice try though ;-)

Best Regards,

Andrew.

On Fri, 10 Dec 2004 16:53:20 GMT, Stefan Robert
<s.robert.N0T@R3Q.usherbrooke.ca> wrote:

Quote:
On 2004-11-26 07:54:16 -0500, Sam <agnes.sam@NoSpamfree.fr> said:

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.

; First open the window and get the window:ID
wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

; Get the database ID of the cell inside that window
cv = geGetWindowCellView( wid )

; Then get the cellViewType
cellViewType = cv~>cellViewType

Hope this help!

Stefan Robert
Universite de Sherbrooke
Back to top
Stefan Robert
Guest





Posted: Mon Dec 13, 2004 5:32 am    Post subject: Re: dfII view type Reply with quote

Yeah I saw your message after my post.

On 2004-12-11 17:48:37 -0500, Andrew Beckett
<andrewb@DcEaLdEeTnEcTe.HcIoSm> said:

Quote:
But as I mentioned in previous solutions, this approach won't work for a
textual cellView, because you can't do the geOpen(). Sam was asking
about "text" views.

I gave a solution for this in a previous post in this thread (in fact I then
wrote this up as a sourcelink solution too).

Nice try though ;-)

Best Regards,

Andrew.

On Fri, 10 Dec 2004 16:53:20 GMT, Stefan Robert
s.robert.N0T@R3Q.usherbrooke.ca> wrote:

On 2004-11-26 07:54:16 -0500, Sam <agnes.sam@NoSpamfree.fr> said:

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.

; First open the window and get the window:ID
wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

; Get the database ID of the cell inside that window
cv = geGetWindowCellView( wid )

; Then get the cellViewType
cellViewType = cv~>cellViewType

Hope this help!

Stefan Robert
Universite de Sherbrooke
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
Contact Us
Powered by phpBB