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

Please help with Acad Express Viewer code syntax

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
270 Views, 3 Replies

Please help with Acad Express Viewer code syntax

I have used whip to turn off and on layers by passing them to the param tag as shown below:

codebase="http://www.autodesk.com/products/whip"
width=675
height=425>






With the above code as soon as the DWF is loaded layers are turned ON and OFF acordingly.

How do I acomplish the same scenario using Acad Express Viewer? Code syntax will be helpful.

I have written the code as below for AcadExpressViewer:



classid = "clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
border = "2"
width = "1000"
height = "700">





3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous



style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Does the following answer
your question?



style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">
 


<object
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
   
id="AdView"
    width="450"
   
height="300">

 

    <param
name="Src"  value="http://www.autodesk.com/myfile.dwf
   
<param name="ViewerParams" value="layersoff=BLUELAYER">

</object>


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
have used whip to turn off and on layers by passing them to the param tag as
shown below:

<object classid="clsid:B2BE75F3-9197-11CF-ABF4-08000996E931"

codebase="http://www.autodesk.com/products/whip"
width=675

height=425>


value="ALL" name="NamedView">

name="LayersON">

name="LayersOFF">

With the above code as soon as the DWF is loaded layers are turned ON and
OFF acordingly.

How do I acomplish the same scenario using Acad Express Viewer? Code syntax
will be helpful.

I have written the code as below for AcadExpressViewer:





     &nbspclassid =
"clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"

     &nbspborder = "2"

     &nbspwidth = "1000"

     &nbspheight = "700">

      
      


Message 3 of 4
Anonymous
in reply to: Anonymous

In the API help file it says explicitly not to use
param for anything other than src.


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



style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Does the following answer
your question?



style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">
 


<object
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
   
id="AdView"
    width="450"
   
height="300">

 

    <param
name="Src" 
value="http://www.autodesk.com/myfile.dwf
    <param
name="ViewerParams" value="layersoff=BLUELAYER">

</object>


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
have used whip to turn off and on layers by passing them to the param tag as
shown below:

<object classid="clsid:B2BE75F3-9197-11CF-ABF4-08000996E931"

codebase="http://www.autodesk.com/products/whip"
width=675

height=425>


name="NamedView" value="ALL">

value="layer1,layer2,layer3,layer4">

value="layer5,layer6,layer7">

With the above code as soon as the DWF is loaded layers are turned ON and
OFF acordingly.

How do I acomplish the same scenario using Acad Express Viewer? Code
syntax will be helpful.

I have written the code as below for AcadExpressViewer:





     &nbspclassid =
"clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"

     &nbspborder = "2"

     &nbspwidth = "1000"

     &nbspheight = "700">

      
      

Message 4 of 4
Anonymous
in reply to: Anonymous

Using param tags for things other then src is not a
problem, but it is generally not a good idea to use the param tag for setting
the  “ViewerParams”. This makes use of a hidden API that is not supported
(hidden APIs may be removed or changed in future releases without warning). That
being said, EV 3.0 has some problems with its APIs and using “ViewerParams”
provides some workarounds. Until the next version is released.


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

In the API help file it says explicitly not to
use param for anything other than src.


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



style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Does the following
answer your question?



style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">
 


<object
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
   
id="AdView"
    width="450"
   
height="300">

 

    <param
name="Src" 
value="http://www.autodesk.com/myfile.dwf
    <param
name="ViewerParams" value="layersoff=BLUELAYER">

</object>


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
have used whip to turn off and on layers by passing them to the param tag
as shown below:

<object classid="clsid:B2BE75F3-9197-11CF-ABF4-08000996E931"

codebase="http://www.autodesk.com/products/whip"
width=675

height=425>


value="ALL" name="NamedView">

value="layer1,layer2,layer3,layer4" name="LayersON">

value="layer5,layer6,layer7" name="LayersOFF">

With the above code as soon as the DWF is loaded layers are turned ON
and OFF acordingly.

How do I acomplish the same scenario using Acad Express Viewer? Code
syntax will be helpful.

I have written the code as below for AcadExpressViewer:





     &nbspclassid =
"clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"

     &nbspborder = "2"

     &nbspwidth = "1000"

     &nbspheight = "700">

      
      

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

Post to forums  

Autodesk Design & Make Report