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

EplotViewer.dll for DwfViewer 7.0

5 REPLIES 5
Reply
Message 1 of 6
dtrommatter
682 Views, 5 Replies

EplotViewer.dll for DwfViewer 7.0

I have html pages with the DWF Viewer embedded. I then use vbscript with hyperlinks to navigate between drawings and a database. Since upgrading from 6.5 to 7.0, the viewer hangs up when I click on a hyperlink. It pulls up a form to send to Autodesk, and then from IE, you can look at the error. The error says that it's because of EplotViewer.dll

Is this file corrupt?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: dtrommatter

Please post the code you are using to catch the hyperlink event, I'll take a
look and see if there's anything that can be done differently to avoid the
crash.


wrote in message news:5476334@discussion.autodesk.com...
I have html pages with the DWF Viewer embedded. I then use vbscript with
hyperlinks to navigate between drawings and a database. Since upgrading from
6.5 to 7.0, the viewer hangs up when I click on a hyperlink. It pulls up a
form to send to Autodesk, and then from IE, you can look at the error. The
error says that it's because of EplotViewer.dll

Is this file corrupt?
Message 3 of 6
dtrommatter
in reply to: dtrommatter

Hi,
Here is the file with the viewer. It uses an external file called dwf_workaround.js to embed the object. I tried it 3 different ways. All 3 work on 6.5.

1. ExpViewer.SourcePath = DwfUrl, this is how it is currently set. (still failing under 7.0)
2. ExpViewer.NavigateToUrl DwfUrl. This also failed under 7.0.
3. window.location=DwfUrl, This method worked under 7.0, but then once it navigated to the new page, my code was lost where I try to trap when the user clicks.

I am delivering this to a client, so that is why I run the code to detect https or http. Look under the https area, and then under the Else statement within the if statement.
Message 4 of 6

Hi,

I verified all the APIs you are using here in separate programs.

- OnExecuteURL
- Link.Link (nIndex)
- Viewer.SourcePath

All of these work perfectly here in JavaScript.

Since you're saying that the script doesn't work for you, I would like to know how do you construct the string DwfUrl? As far as I understand, following is how you attempt to do this...

- Get the piAdPageLink and nIndex from the OnExecuteURL event
- Hlink = piAdPageLink.Link(nIndex)
- DwfURL = "https://www.entecheng.com/aoc" & lcase(Hlink) 'Get the Link URL

Please confirm the above observations. Also, please check and tell me what is the value for DwfUrl after doing all these, and whether you can manually browse into this adrress?

Regards,
Anand Iyer
Autodesk
Message 5 of 6
dtrommatter
in reply to: dtrommatter

Hello,
Thanks for trying to help me. I am creating hyperlinks within the drawings and publishing them to the dwfs. I have 2 types of links.
1. The first type of link simply navigates to other dwf files. For example I have an isometric view in the lower corner of the drawing that allows the user to click on different floor levels. Once clicked, they see the other floors.
2. This 2nd link actually points to an html page that then links to a database and shows information about a piece of equipment or room information.

That is why I am creating differend DwfURL locaitons within the If statement in order to tell it where to go to.

So the first thing I go is create this Hlink variable. After that I go into the If statement and concatenate the Hlink variable with different web addresses. In most cases it uses the DwfURL created under the Else statement. But NavigateToURL, and SourcePath make 7.0 lockup, but not 6.5. If I use window.navigate(DwfURL), this work on 7.0, but only the first time. This actually opens a new page and then my code to trap when the users clicks goes away, and then it no longer works.

Hlink = piAdPageLink.Link(nIndex)

If (window.location.protocol = "https:") Then

If left(Hlink,9) = "/projects" then
'msgbox left(Hlink,1)
'window.navigate(DwfURL)
pHandled.State = true
DwfURL = "https://www.entecheng.com/aoc" & lcase(Hlink) 'Get the Link URL
Message 6 of 6

Hi,

ok, thanks for the confirmation. Can you answer my next question as to, if you try to manually browse to the address (the one you obtained by concatenating HLink with the https:// root address) in the browser, does it work as expected?

Basically, what I am trying to find out if the problem is because of a wrong address, in which case SourcePath or NavigateToURL can't be the culprits. I think you're able to understand what I am trying to do here...

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

Post to forums  

Autodesk Design & Make Report