DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Corresponding Syntax???

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
301 Views, 10 Replies

Corresponding Syntax???

All or any:

What is the corresponding syntax in Express to what was tradionally the
following in Whip:


name="DWFMain"
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
align="baseline" border="0" width="600" height="480">




value="SOME,LAYERS,I,DO,NOT,WANT,TO,SHOW,ON,LOAD">



There doesn't seem to be *any* support for setting these properties in this
fashion. Am I missing something? Should I be setting this somehow in
Javascript instead?

Any help would be greatly appreciated on this. TIA,

:Pete
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

Peter,

Here is a sample code:

value="\\Drawings\DWFs\MyFile.dwf?view='initial'&backcolor=0">

Cheers,
Thilak


"Peter Lone" wrote in message
news:4FB8D95E59EAE41FDC3855D501D6C9CA@in.WebX.maYIadrTaRb...
> All or any:
>
> What is the corresponding syntax in Express to what was tradionally the
> following in Whip:
>
>
> name="DWFMain"
> classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
> align="baseline" border="0" width="600" height="480">
>
>
>
>
> value="SOME,LAYERS,I,DO,NOT,WANT,TO,SHOW,ON,LOAD">
>
>

>
> There doesn't seem to be *any* support for setting these properties in
this
> fashion. Am I missing something? Should I be setting this somehow in
> Javascript instead?
>
> Any help would be greatly appreciated on this. TIA,
>
> :Pete
>
>
>
Message 3 of 11
Anonymous
in reply to: Anonymous

"Peter Lone" wrote
> There doesn't seem to be *any* support for setting these properties in this
> fashion. Am I missing something?

I believe most of the support is there, but the documentation is rather sketchy. I've yet
to find a list of all params. I have found, for example, that

or

works within the object tag, however the API documentation tells us we should append all
the params to the src url as Thilak has shown. No explanation is given as to why we should
do it that way and IMO it makes the HTML rather difficult to read.
Message 4 of 11
Anonymous
in reply to: Anonymous

Thanks for the reply, Joe.

The problem with appending "LayersOn", or perhaps more often "LayersOff" to
the URL string is that long lists of layers get truncated in my experience,
as the URL string can only be so long. I tried that and it was just
hopefully unacceptable.

I ended up wrting a JavaScript function I launched under the OBJECT tag that
calls a function to set my properties for the viewer. Email me if you'd
like the code snippet.

Now, if I could only get the URLs to open in the *same* window as the
drawing ...

Thanks again!

:P

"Joe Blizzard" wrote in message
news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb...
> "Peter Lone" wrote
> > There doesn't seem to be *any* support for setting these properties in
this
> > fashion. Am I missing something?
>
> I believe most of the support is there, but the documentation is rather
sketchy. I've yet
> to find a list of all params. I have found, for example, that
>
> or
>
> works within the object tag, however the API documentation tells us we
should append all
> the params to the src url as Thilak has shown. No explanation is given as
to why we should
> do it that way and IMO it makes the HTML rather difficult to read.
>
>
Message 5 of 11
Anonymous
in reply to: Anonymous

There are two ways in which you can pass the information to EV. One is
through the URL and the other is through the param tags in html. Both of
them should work and have the same behavior.

"Joe Blizzard" wrote in message
news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb...
> "Peter Lone" wrote
> > There doesn't seem to be *any* support for setting these properties in
this
> > fashion. Am I missing something?
>
> I believe most of the support is there, but the documentation is rather
sketchy. I've yet
> to find a list of all params. I have found, for example, that
>
> or
>
> works within the object tag, however the API documentation tells us we
should append all
> the params to the src url as Thilak has shown. No explanation is given as
to why we should
> do it that way and IMO it makes the HTML rather difficult to read.
>
>
Message 6 of 11
Anonymous
in reply to: Anonymous

Thanks Subu,

But, I thought we weren't supposed to used the PARAM tags, as per the AEV
API documentation? When I tried, I didn't have the best of luck as I didn't
know the names of available PARAMs (undocumented). I figured that's why we
were told to use the URL instead in the API documentation.

Then I saw and example that was given for a PARAM that went something like:


All permeatations of this that I tried for more than one PARAM didn't seem
to work. Ie:

value="'LayersOn=LAYER1,LAYER2,LAYER3',LayersOff='LAYERA,LAYERB,LAYERC'">

It was slow going as I was just throwing darts at the board here, so I
didn't know what to do. Can I do this?






or perhaps this?
(BTW, I'm concerned about possible PARAMeter truncation in AEV due to length
here) ...



value="LayersOn=LAYER1,LAYER2,LAYER3&LayersOff=LAYERA,LAYERB,LAYERC&NamedVie
w=TOP">


or something else? TIA,

:P

"Subu Gupta" wrote in message
news:2673D0D125949BCC50A34B5542A40B76@in.WebX.maYIadrTaRb...
> There are two ways in which you can pass the information to EV. One is
> through the URL and the other is through the param tags in html. Both of
> them should work and have the same behavior.
>
> "Joe Blizzard" wrote in message
> news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb...
> > "Peter Lone" wrote
> > > There doesn't seem to be *any* support for setting these properties in
> this
> > > fashion. Am I missing something?
> >
> > I believe most of the support is there, but the documentation is rather
> sketchy. I've yet
> > to find a list of all params. I have found, for example, that
> >
> > or
> >
> > works within the object tag, however the API documentation tells us we
> should append all
> > the params to the src url as Thilak has shown. No explanation is given
as
> to why we should
> > do it that way and IMO it makes the HTML rather difficult to read.
> >
> >
>
>
Message 7 of 11
Anonymous
in reply to: Anonymous

Use the ViewParams param tag to avoid the parameters from being truncated
off of the URL.




"Peter Lone" wrote in message
news:2BA23A448C31413D1EB8ED591EBE7569@in.WebX.maYIadrTaRb...
> Thanks Subu,
>
> But, I thought we weren't supposed to used the PARAM tags, as per the AEV
> API documentation? When I tried, I didn't have the best of luck as I
didn't
> know the names of available PARAMs (undocumented). I figured that's why
we
> were told to use the URL instead in the API documentation.
>
> Then I saw and example that was given for a PARAM that went something
like:
>
>
> All permeatations of this that I tried for more than one PARAM didn't seem
> to work. Ie:
>
> value="'LayersOn=LAYER1,LAYER2,LAYER3',LayersOff='LAYERA,LAYERB,LAYERC'">
>
> It was slow going as I was just throwing darts at the board here, so I
> didn't know what to do. Can I do this?
>
>
>
>
>

>
> or perhaps this?
> (BTW, I'm concerned about possible PARAMeter truncation in AEV due to
length
> here) ...
>
>
>
>
value="LayersOn=LAYER1,LAYER2,LAYER3&LayersOff=LAYERA,LAYERB,LAYERC&NamedVie
> w=TOP">
>

>
> or something else? TIA,
>
> 😛
>
> "Subu Gupta" wrote in message
> news:2673D0D125949BCC50A34B5542A40B76@in.WebX.maYIadrTaRb...
> > There are two ways in which you can pass the information to EV. One is
> > through the URL and the other is through the param tags in html. Both of
> > them should work and have the same behavior.
> >
> > "Joe Blizzard" wrote in message
> > news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb...
> > > "Peter Lone" wrote
> > > > There doesn't seem to be *any* support for setting these properties
in
> > this
> > > > fashion. Am I missing something?
> > >
> > > I believe most of the support is there, but the documentation is
rather
> > sketchy. I've yet
> > > to find a list of all params. I have found, for example, that
> > >
> > > or
> > >
> > > works within the object tag, however the API documentation tells us we
> > should append all
> > > the params to the src url as Thilak has shown. No explanation is given
> as
> > to why we should
> > > do it that way and IMO it makes the HTML rather difficult to read.
> > >
> > >
> >
> >
>
>
Message 8 of 11
Anonymous
in reply to: Anonymous

Thanks Ben, that's the earlier exampe I saw that I was referring to.

But how to do more than one "ViewerParam"? Is it like:

value="layersoff=BLUELAYER&layerson=REDLAYER&namedview=TOP">

... or perhaps using a collection, ala:





I can't say I've had any luck with either so far. Any suggestions?

Thanks again and in advance,

:P

"Ben Cochran" wrote in message
news:FDD421E76589C98483DB78BCFFAB2A4C@in.WebX.maYIadrTaRb...
> Use the ViewParams param tag to avoid the parameters from being truncated
> off of the URL.
>
>
>
>
> "Peter Lone" wrote in message
> news:2BA23A448C31413D1EB8ED591EBE7569@in.WebX.maYIadrTaRb...
> > Thanks Subu,
> >
> > But, I thought we weren't supposed to used the PARAM tags, as per the
AEV
> > API documentation? When I tried, I didn't have the best of luck as I
> didn't
> > know the names of available PARAMs (undocumented). I figured that's why
> we
> > were told to use the URL instead in the API documentation.
> >
> > Then I saw and example that was given for a PARAM that went something
> like:
> >
> >
> > All permeatations of this that I tried for more than one PARAM didn't
seem
> > to work. Ie:
> >
> >
value="'LayersOn=LAYER1,LAYER2,LAYER3',LayersOff='LAYERA,LAYERB,LAYERC'">
> >
> > It was slow going as I was just throwing darts at the board here, so I
> > didn't know what to do. Can I do this?
> >
> >
> >
> >
> >

> >
> > or perhaps this?
> > (BTW, I'm concerned about possible PARAMeter truncation in AEV due to
> length
> > here) ...
> >
> >
> >
> >
>
value="LayersOn=LAYER1,LAYER2,LAYER3&LayersOff=LAYERA,LAYERB,LAYERC&NamedVie
> > w=TOP">
> >

> >
> > or something else? TIA,
> >
> > 😛
> >
> > "Subu Gupta" wrote in message
> > news:2673D0D125949BCC50A34B5542A40B76@in.WebX.maYIadrTaRb...
> > > There are two ways in which you can pass the information to EV. One is
> > > through the URL and the other is through the param tags in html. Both
of
> > > them should work and have the same behavior.
> > >
> > > "Joe Blizzard" wrote in message
> > > news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb...
> > > > "Peter Lone" wrote
> > > > > There doesn't seem to be *any* support for setting these
properties
> in
> > > this
> > > > > fashion. Am I missing something?
> > > >
> > > > I believe most of the support is there, but the documentation is
> rather
> > > sketchy. I've yet
> > > > to find a list of all params. I have found, for example, that
> > > >
> > > > or
> > > >
> > > > works within the object tag, however the API documentation tells us
we
> > > should append all
> > > > the params to the src url as Thilak has shown. No explanation is
given
> > as
> > > to why we should
> > > > do it that way and IMO it makes the HTML rather difficult to read.
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Message 9 of 11
Anonymous
in reply to: Anonymous



face=Arial>
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I
just crated three working examples I hope they are
helpful.



size=2> 


Using the
param Tags:



size=2><param name="LayersOff" value="BLUE,RED">



size=2>
 


Using
VBScript:



size=2><script language="vbscript">
  function
ShowLayersOneAtATime_VBScript ()



size=2>
 



size=2>    'Turn all the layers off
    for
each layer in AdView.Viewer.Layers
     
layer.Visible = false
    next



size=2>
 



size=2>    'Display each layer by itself
   
for each layer in AdView.Viewer.Layers
     
layer.Visible = true
      MsgBox
layer.name
      layer.Visible =
false
    next



size=2>
 



size=2>    'Turn all the layers back on
    for
each layer in AdView.Viewer.Layers
     
layer.Visible = true
    next



size=2>
  end function
</script >



size=2>
 


Using
Jave Script:



size=2><script language=="javascript">



size=2>  function ShowLayersOneAtATime_JScript ()
 
{
    // Turn all the layers off
    for (i
= 1; i <= AdView.Viewer.Layers.Count; i++ )

      AdView.Viewer.Layers.Item(i).Visible =
false;



size=2>
 



size=2>    // Display each layer by itself
   
for (i = 1; i <= AdView.Viewer.Layers.Count; i++ )
   
{
      layer =
AdView.Viewer.Layers.Item(i);
      layer.Visible =
true;
      alert(layer.name);  

      layer.Visible = false;
   
}



size=2>
 



size=2>    // Turn all the layers back on
   
for (i = 1; i <= AdView.Viewer.Layers.Count; i++ )

      AdView.Viewer.Layers.Item(i).Visible =
true;

  }
</script
>



value="BLUE,RED" name="LayersOff">
size=2>



value="BLUE,RED" name="LayersOff">


> Thanks Ben,
that's the earlier exampe I saw that I was referring to.
>
> But
how to do more than one "ViewerParam"?  Is it like:
> <param
name="ViewerParams"
>
value="layersoff=BLUELAYER&layerson=REDLAYER&namedview=TOP">
>

> ... or perhaps using a collection, ala:
>
> <param
name="ViewerParams" value="layersoff=BLUELAYER">
> <param
name="ViewerParams" value="layerson=REDLAYER">
> <param
name="ViewerParams" value="namedview=TOP">
>
> I can't say I've
had any luck with either so far.  Any suggestions?
>
> Thanks
again and in advance,
>
> 😛
>
> "Ben Cochran"
<

size=2>ben@nospan.com
> wrote in
message
>

href="news:FDD421E76589C98483DB78BCFFAB2A4C@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:FDD421E76...

face=Arial size=2>...
> > Use the ViewParams param tag to avoid the
parameters from being truncated
> > off of the URL.
>
>
> >
> > <param name="ViewerParams"
value="layersoff=BLUELAYER">
> >
> > "Peter Lone"
<

size=2>plone@livingworkplace.com
> wrote in
message
> >

href="news:2BA23A448C31413D1EB8ED591EBE7569@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:2BA23A448...

face=Arial size=2>...
> > > Thanks Subu,
> > >
>
> > But, I thought we weren't supposed to used the PARAM tags, as per
the
> AEV
> > > API documentation?  When I tried, I
didn't have the best of luck as I
> > didn't
> > > know the
names of available PARAMs (undocumented).  I figured that's why
>
> we
> > > were told to use the URL instead in the API
documentation.
> > >
> > > Then I saw and example that
was given for a PARAM that went something
> > like:
> > >
<PARAM name="ViewerParams" value="LayersOn=LAYER1,LAYER2,LAYER3">
>
> >
> > > All permeatations of this that I tried for more than
one PARAM didn't
> seem
> > > to work.  Ie:
> >
> <PARAM name="ViewerParams"
> > >
>
value="'LayersOn=LAYER1,LAYER2,LAYER3',LayersOff='LAYERA,LAYERB,LAYERC'">
>
> >
> > > It was slow going as I was just throwing darts at
the board here, so I
> > > didn't know what to do.  Can I do
this?
> > > <OBJECT ...>
> > > <PARAM
name="LayersOn" value="LAYER1,LAYER2,LAYER3">
> > > <PARAM
name="LayersOff" value="LAYERA,LAYERB,LAYERC">
> > > <PARAM
name="NamedView" value="TOP">
> > > </OBJECT>
> >
>
> > > or perhaps this?
> > > (BTW, I'm concerned
about possible PARAMeter truncation in AEV due to
> > length
>
> > here) ...
> > >
> > > <OBJECT
...>
> > > <PARAM name="ViewerParams"
> >
>
> >
>
value="LayersOn=LAYER1,LAYER2,LAYER3&LayersOff=LAYERA,LAYERB,LAYERC&NamedVie
>
> > w=TOP">
> > > </OBJECT>
> > >
>
> > or something else?  TIA,
> > >
> > >
:P
> > >
> > > "Subu Gupta" <

href="mailto:subu.gupta@autodesk.com">
size=2>subu.gupta@autodesk.com
> wrote in
message
> > >

href="news:2673D0D125949BCC50A34B5542A40B76@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:2673D0D12...

face=Arial size=2>...
> > > > There are two ways in which you can
pass the information to EV. One is
> > > > through the URL and
the other is through the param tags in html. Both
> of
> > >
> them should work and have the same behavior.
> > > >
>
> > > "Joe Blizzard" <

href="mailto:blizzard@zmm.cTHEOBVIOUSom">
size=2>blizzard@zmm.cTHEOBVIOUSom
> wrote
in message
> > > >

href="news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:A5FFEF827...

face=Arial size=2>...
> > > > > "Peter Lone" wrote
>
> > > > > There doesn't seem to be *any* support for setting
these
> properties
> > in
> > > > this
>
> > > > > fashion.  Am I missing something?
> >
> > >
> > > > > I believe most of the support is
there, but the documentation is
> > rather
> > > >
sketchy. I've yet
> > > > > to find a list of all params. I
have found, for example, that
> > > > > <param
name="LayersOff" value="(THIS, THAT)">
> > > > > or
>
> > > > <param name="PaperVisible" value="0">
> >
> > > works within the object tag, however the API documentation tells
us
> we
> > > > should append all
> > > >
> the params to the src url as Thilak has shown. No explanation is
>
given
> > > as
> > > > to why we should
> >
> > > do it that way and IMO it makes the HTML rather difficult to
read.
> > > > >
> > > > >
> > >
>
> > > >
> > >
> > >
>
>
> >
>
>
Message 10 of 11
Anonymous
in reply to: Anonymous

Thanks for the reply, Ben.  As for your
examples ...

 

The first one using the PARAM tags, I understand
that one PARAM will work, as I can do this.  I've been having problems
gettings *more* than one to work together, as in this example:

 



size=2><param name="LayersOff" value="BLUE,RED">



size=2><param name="LayersOn" value="YELLOW,GREEN">



size=2><param name="NamedView" value="TOP">




size=2><param name="ToolbarVisible" value="0">    <!--
"false" doesn't work either -->



face="Courier New">
 


As per examples 2 and 3, I have been able to get
these to work prior, as well.  But these examples show how to adjust the
settings via user interaction *after* the page and the DWF is loaded. 
I wanted to know about the PARAM tags to set up the DWF display on
initial load.  Alas, as I cannot seem to get multiple PARAMs to work
together, I have written a JavaScript function that sets up my
DWF properties.  It is called on page load (after the OBJECT
element) in lieu of using PARAMs.   This works fine, but I just
feel that this couldn't possibly be the right way to do this.  I'm also a
bit concerned about doubling the load time, as I'm setting technically up the
DWF twice, once on initial load, and again to get it the way I want it for
display.

 

Are you familiar with a multiple PARAM issue? 
Can you get the multiple PARAMs to work together as in the example I gave
above?

 

BTW, is there a limit to the length that a VALUE
for a PARAM can be?  If I have a long "LayersOff" list (which I do),
could it be truncating and causing the rest of the PARAMs to be ignored? 
Just a thought.

 

Here's a pseudo
example of my working solution for anyone who is having the same
problem(s):

 

<html>

<body>

<!-- this can be in the <head> or
<body> -->

<script language="javascript"
type="text/javascript">

    function initDwf()
{

        var
obj = AdView.Viewer;

 

       
// set up some properties in the "AdView" object


size=2>           
obj.NamedView = "TOP";


size=2>           
...

        // I
also loop through the layers to set them up how I want

       
    ...

    }

</script>


<!-- place in <body>
-->
<object id="AdView" ...>

    <param
src="http://myServer/myPath/myFile.dwf">

</object>



<!-- place in <body> somewhere
AFTER the <object> -->
<script language="javascript"
type="text/javascript">

size=2>    // call the function

       
initDwf;

</script>

</body>

</html>

 

Thanks for your efforts so far and in advance for
your response here,

 

😛


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">



face=Arial>
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I
just crated three working examples I hope they are
helpful.



size=2> 


Using
the param Tags:



size=2><param name="LayersOff" value="BLUE,RED">



size=2>
 


Using
VBScript:



size=2><script language="vbscript">
  function
ShowLayersOneAtATime_VBScript ()



size=2>
 



size=2>    'Turn all the layers off
    for
each layer in AdView.Viewer.Layers
     
layer.Visible = false
    next



size=2>
 



size=2>    'Display each layer by itself
   
for each layer in AdView.Viewer.Layers
     
layer.Visible = true
      MsgBox
layer.name
      layer.Visible =
false
    next



size=2>
 



size=2>    'Turn all the layers back on
   
for each layer in AdView.Viewer.Layers
     
layer.Visible = true
    next



size=2>
  end function
</script >



size=2>
 


Using
Jave Script:



size=2><script language=="javascript">



size=2>  function ShowLayersOneAtATime_JScript ()
 
{
    // Turn all the layers off
    for
(i = 1; i <= AdView.Viewer.Layers.Count; i++ )

      AdView.Viewer.Layers.Item(i).Visible =
false;



size=2>
 



size=2>    // Display each layer by
itself
    for (i = 1; i <= AdView.Viewer.Layers.Count;
i++ )
    {
      layer =
AdView.Viewer.Layers.Item(i);
      layer.Visible
= true;
      alert(layer.name);  

      layer.Visible =
false;
    }



size=2>
 



size=2>    // Turn all the layers back on
   
for (i = 1; i <= AdView.Viewer.Layers.Count; i++ )

      AdView.Viewer.Layers.Item(i).Visible =
true;

  }
</script
>



name="LayersOff" value="BLUE,RED">
value="BLUE,RED">



name="LayersOff" value="BLUE,RED">


> Thanks Ben,
that's the earlier exampe I saw that I was referring to.
>
> But
how to do more than one "ViewerParam"?  Is it like:
> <param
name="ViewerParams"
>
value="layersoff=BLUELAYER&layerson=REDLAYER&namedview=TOP">
>

> ... or perhaps using a collection, ala:
>
> <param
name="ViewerParams" value="layersoff=BLUELAYER">
> <param
name="ViewerParams" value="layerson=REDLAYER">
> <param
name="ViewerParams" value="namedview=TOP">
>
> I can't say
I've had any luck with either so far.  Any suggestions?
>
>
Thanks again and in advance,
>
> 😛
>
> "Ben
Cochran" <

size=2>ben@nospan.com
> wrote in
message
>

href="news:FDD421E76589C98483DB78BCFFAB2A4C@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:FDD...

face=Arial size=2>...
> > Use the ViewParams param tag to avoid the
parameters from being truncated
> > off of the URL.
>
>
> >
> > <param name="ViewerParams"
value="layersoff=BLUELAYER">
> >
> > "Peter Lone"
<

size=2>plone@livingworkplace.com
> wrote
in message
> >

href="news:2BA23A448C31413D1EB8ED591EBE7569@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:2BA...

face=Arial size=2>...
> > > Thanks Subu,
> > >
>
> > But, I thought we weren't supposed to used the PARAM tags, as per
the
> AEV
> > > API documentation?  When I tried, I
didn't have the best of luck as I
> > didn't
> > > know
the names of available PARAMs (undocumented).  I figured that's
why
> > we
> > > were told to use the URL instead in the
API documentation.
> > >
> > > Then I saw and example
that was given for a PARAM that went something
> > like:
> >
> <PARAM name="ViewerParams"
value="LayersOn=LAYER1,LAYER2,LAYER3">
> > >
> > >
All permeatations of this that I tried for more than one PARAM didn't
>
seem
> > > to work.  Ie:
> > > <PARAM
name="ViewerParams"
> > >
>
value="'LayersOn=LAYER1,LAYER2,LAYER3',LayersOff='LAYERA,LAYERB,LAYERC'">
>
> >
> > > It was slow going as I was just throwing darts at
the board here, so I
> > > didn't know what to do.  Can I do
this?
> > > <OBJECT ...>
> > > <PARAM
name="LayersOn" value="LAYER1,LAYER2,LAYER3">
> > > <PARAM
name="LayersOff" value="LAYERA,LAYERB,LAYERC">
> > > <PARAM
name="NamedView" value="TOP">
> > > </OBJECT>
>
> >
> > > or perhaps this?
> > > (BTW, I'm
concerned about possible PARAMeter truncation in AEV due to
> >
length
> > > here) ...
> > >
> > >
<OBJECT ...>
> > > <PARAM name="ViewerParams"
>
> >
> >
>
value="LayersOn=LAYER1,LAYER2,LAYER3&LayersOff=LAYERA,LAYERB,LAYERC&NamedVie
>
> > w=TOP">
> > > </OBJECT>
> >
>
> > > or something else?  TIA,
> > >
>
> > 😛
> > >
> > > "Subu Gupta" <

href="mailto:subu.gupta@autodesk.com">
size=2>subu.gupta@autodesk.com
> wrote in
message
> > >

href="news:2673D0D125949BCC50A34B5542A40B76@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:267...

face=Arial size=2>...
> > > > There are two ways in which you
can pass the information to EV. One is
> > > > through the URL
and the other is through the param tags in html. Both
> of
> >
> > them should work and have the same behavior.
> > >
>
> > > > "Joe Blizzard" <

href="mailto:blizzard@zmm.cTHEOBVIOUSom">
size=2>blizzard@zmm.cTHEOBVIOUSom
> wrote
in message
> > > >

href="news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb">
face=Arial
size=2>news:A5F...

face=Arial size=2>...
> > > > > "Peter Lone" wrote
>
> > > > > There doesn't seem to be *any* support for setting
these
> properties
> > in
> > > > this
>
> > > > > fashion.  Am I missing something?
> >
> > >
> > > > > I believe most of the support is
there, but the documentation is
> > rather
> > > >
sketchy. I've yet
> > > > > to find a list of all params. I
have found, for example, that
> > > > > <param
name="LayersOff" value="(THIS, THAT)">
> > > > >
or
> > > > > <param name="PaperVisible"
value="0">
> > > > > works within the object tag, however
the API documentation tells us
> we
> > > > should append
all
> > > > > the params to the src url as Thilak has shown.
No explanation is
> given
> > > as
> > > > to
why we should
> > > > > do it that way and IMO it makes the
HTML rather difficult to read.
> > > > >
> > >
> >
> > > >
> > > >
> >
>
> > >
> >
> >
>
>
Message 11 of 11
Anonymous
in reply to: Anonymous


This will be addressed in the
next release.



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Thanks for the reply, Ben.  As for your
examples ...

 

The first one using the PARAM tags, I understand
that one PARAM will work, as I can do this.  I've been having problems
gettings *more* than one to work together, as in this example:

 



size=2><param name="LayersOff" value="BLUE,RED">



size=2><param name="LayersOn" value="YELLOW,GREEN">



size=2><param name="NamedView" value="TOP">




size=2><param name="ToolbarVisible" value="0">    <!--
"false" doesn't work either -->



face="Courier New">
 


As per examples 2 and 3, I have been able to get
these to work prior, as well.  But these examples show how to adjust the
settings via user interaction *after* the page and the DWF is
loaded.  I wanted to know about the PARAM tags to set up the
DWF display on initial load.  Alas, as I cannot seem to get
multiple PARAMs to work together, I have written a JavaScript function that
sets up my DWF properties.  It is called on page load (after
the OBJECT element) in lieu of using PARAMs.   This works fine,
but I just feel that this couldn't possibly be the right way to do this. 
I'm also a bit concerned about doubling the load time, as I'm setting
technically up the DWF twice, once on initial load, and again to get it the
way I want it for display.

 

Are you familiar with a multiple PARAM
issue?  Can you get the multiple PARAMs to work together as in the
example I gave above?

 

BTW, is there a limit to the length that a VALUE
for a PARAM can be?  If I have a long "LayersOff" list (which I do),
could it be truncating and causing the rest of the PARAMs to be ignored? 
Just a thought.

 

Here's a pseudo
example of my working solution for anyone who is having the same
problem(s):

 

<html>

<body>

<!-- this can be in the <head>
or <body> -->

<script language="javascript"
type="text/javascript">

    function initDwf()
{

        var
obj = AdView.Viewer;

 


size=2>        // set up some properties in
the "AdView" object


size=2>           
obj.NamedView = "TOP";


size=2>           
...

        //
I also loop through the layers to set them up how I want

       
    ...

    }

</script>


<!-- place in <body>
-->
<object id="AdView" ...>

    <param
src="http://myServer/myPath/myFile.dwf">

</object>



<!-- place in <body> somewhere
AFTER the <object> -->
<script language="javascript"
type="text/javascript">

size=2>    // call the function

       
initDwf;

</script>

</body>

</html>

 

Thanks for your efforts so far and in advance for
your response here,

 

😛


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">



face=Arial>
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I
just crated three working examples I hope they are
helpful.



size=2>


Using
the param Tags:



size=2><param name="LayersOff" value="BLUE,RED">



size=2>
 


Using
VBScript:



size=2><script language="vbscript">
  function
ShowLayersOneAtATime_VBScript ()



size=2>
 



size=2>    'Turn all the layers off
    for
each layer in AdView.Viewer.Layers
     
layer.Visible = false
    next



size=2>
 



size=2>    'Display each layer by
itself
    for each layer in
AdView.Viewer.Layers
      layer.Visible =
true
      MsgBox
layer.name
      layer.Visible =
false
    next



size=2>
 



size=2>    'Turn all the layers back on
   
for each layer in AdView.Viewer.Layers
     
layer.Visible = true
    next



size=2>
  end function
</script >



size=2>
 


Using
Jave Script:



size=2><script language=="javascript">



size=2>  function ShowLayersOneAtATime_JScript ()
 
{
    // Turn all the layers off
    for
(i = 1; i <= AdView.Viewer.Layers.Count; i++ )

      AdView.Viewer.Layers.Item(i).Visible =
false;



size=2>
 



size=2>    // Display each layer by
itself
    for (i = 1; i <= AdView.Viewer.Layers.Count;
i++ )
    {
      layer =
AdView.Viewer.Layers.Item(i);
     
layer.Visible = true;
     
alert(layer.name);  
     
layer.Visible = false;
    }



size=2>
 



size=2>    // Turn all the layers back
on
    for (i = 1; i <= AdView.Viewer.Layers.Count; i++
)
      AdView.Viewer.Layers.Item(i).Visible =
true;

  }
</script
>



value="BLUE,RED" name="LayersOff">
name="LayersOff">



value="BLUE,RED" name="LayersOff">


> Thanks Ben,
that's the earlier exampe I saw that I was referring to.
>
>
But how to do more than one "ViewerParam"?  Is it like:
>
<param name="ViewerParams"
>
value="layersoff=BLUELAYER&layerson=REDLAYER&namedview=TOP">
>

> ... or perhaps using a collection, ala:
>
> <param
name="ViewerParams" value="layersoff=BLUELAYER">
> <param
name="ViewerParams" value="layerson=REDLAYER">
> <param
name="ViewerParams" value="namedview=TOP">
>
> I can't say
I've had any luck with either so far.  Any suggestions?
>

> Thanks again and in advance,
>
> 😛
>
>
"Ben Cochran" <

size=2>ben@nospan.com
> wrote in
message
>

href="news:FDD421E76589C98483DB78BCFFAB2A4C@in.WebX.maYIadrTaRb">
face=Arial
size=2>ne...

face=Arial size=2>...
> > Use the ViewParams param tag to avoid the
parameters from being truncated
> > off of the URL.
>
>
> >
> > <param name="ViewerParams"
value="layersoff=BLUELAYER">
> >
> > "Peter Lone"
<

size=2>plone@livingworkplace.com
>
wrote in message
> >

href="news:2BA23A448C31413D1EB8ED591EBE7569@in.WebX.maYIadrTaRb">
face=Arial
size=2>ne...

face=Arial size=2>...
> > > Thanks Subu,
> >
>
> > > But, I thought we weren't supposed to used the PARAM
tags, as per the
> AEV
> > > API documentation?  When
I tried, I didn't have the best of luck as I
> > didn't
>
> > know the names of available PARAMs (undocumented).  I figured
that's why
> > we
> > > were told to use the URL
instead in the API documentation.
> > >
> > > Then I
saw and example that was given for a PARAM that went something
> >
like:
> > > <PARAM name="ViewerParams"
value="LayersOn=LAYER1,LAYER2,LAYER3">
> > >
> >
> All permeatations of this that I tried for more than one PARAM
didn't
> seem
> > > to work.  Ie:
> > >
<PARAM name="ViewerParams"
> > >
>
value="'LayersOn=LAYER1,LAYER2,LAYER3',LayersOff='LAYERA,LAYERB,LAYERC'">
>
> >
> > > It was slow going as I was just throwing darts
at the board here, so I
> > > didn't know what to do.  Can
I do this?
> > > <OBJECT ...>
> > > <PARAM
name="LayersOn" value="LAYER1,LAYER2,LAYER3">
> > > <PARAM
name="LayersOff" value="LAYERA,LAYERB,LAYERC">
> > >
<PARAM name="NamedView" value="TOP">
> > >
</OBJECT>
> > >
> > > or perhaps this?
>
> > (BTW, I'm concerned about possible PARAMeter truncation in AEV due
to
> > length
> > > here) ...
> > >
>
> > <OBJECT ...>
> > > <PARAM
name="ViewerParams"
> > >
> >
>
value="LayersOn=LAYER1,LAYER2,LAYER3&LayersOff=LAYERA,LAYERB,LAYERC&NamedVie
>
> > w=TOP">
> > > </OBJECT>
> >
>
> > > or something else?  TIA,
> >
>
> > > 😛
> > >
> > > "Subu Gupta"
<

size=2>subu.gupta@autodesk.com
> wrote
in message
> > >

href="news:2673D0D125949BCC50A34B5542A40B76@in.WebX.maYIadrTaRb">
face=Arial
size=2>ne...

face=Arial size=2>...
> > > > There are two ways in which you
can pass the information to EV. One is
> > > > through the
URL and the other is through the param tags in html. Both
> of
>
> > > them should work and have the same behavior.
> >
> >
> > > > "Joe Blizzard" <

href="mailto:blizzard@zmm.cTHEOBVIOUSom">
size=2>blizzard@zmm.cTHEOBVIOUSom
>
wrote in message
> > > >

href="news:A5FFEF827D7C6A799686413F1D29C182@in.WebX.maYIadrTaRb">
face=Arial
size=2>ne...

face=Arial size=2>...
> > > > > "Peter Lone" wrote
>
> > > > > There doesn't seem to be *any* support for setting
these
> properties
> > in
> > > > this
>
> > > > > fashion.  Am I missing something?
> >
> > >
> > > > > I believe most of the support is
there, but the documentation is
> > rather
> > > >
sketchy. I've yet
> > > > > to find a list of all params.
I have found, for example, that
> > > > > <param
name="LayersOff" value="(THIS, THAT)">
> > > > >
or
> > > > > <param name="PaperVisible"
value="0">
> > > > > works within the object tag,
however the API documentation tells us
> we
> > > >
should append all
> > > > > the params to the src url as
Thilak has shown. No explanation is
> given
> > >
as
> > > > to why we should
> > > > > do it
that way and IMO it makes the HTML rather difficult to read.
> >
> > >
> > > > >
> > > >
>
> > >
> > >
> > >
> >
>
>
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report