DWF Viewer

Reply
Member
M36653219
Posts: 4
Registered: ‎10-18-2010
Message 1 of 7 (3,148 Views)

Exporting DWF Drawings to Autodesk Design Review 2010 and higher

3148 Views, 6 Replies
10-18-2010 04:15 AM

Incorrect Document Name on Canvas Toolbar ( cryptic tempoary filename indtead of document name )

 

Hello,

I make DWF Exporting with PlotInfo, PlotSettingsValidator etc. as proposed on AutoCAD .NET Developer's Guide.
Everything works fine. DWF Viewer ( ADR 2011 + 2011 ) openend on desktop shows filename ( correct document name ) as it is stored on my PC. ( see picture )
When opening DWF Viewer on Internet - Explorer, DWF Viewer canvas toolbar shows the name of the temporary filename ( cryptic name, see picture 2)

What do I have to change or make to be able to see the correct document name ?

Any Help is appreciated

Thanks in advance

Markus

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 2 of 7 (3,106 Views)

Re: Exporting DWF Drawings to Autodesk Design Review 2010 and higher

10-20-2010 06:33 PM in reply to: M36653219

Thank you for your question.

 

Could you please attach the DWF/x file which can reproduce this problem for us to investigate in more detail?



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Member
M36653219
Posts: 4
Registered: ‎10-18-2010
Message 3 of 7 (3,098 Views)

Re: Exporting DWF Drawings to Autodesk Design Review 2010 and higher

10-21-2010 04:57 AM in reply to: M36653219

Thank you for your quick response.

 

You will find as an attachement two pictures and two files( AutoDeskHelp.zip ):
pic1.jpg: on canvas toolbar you will find the filename "AEM5F7A" instead of DocumentName "PR_EG-FM1276.DWF". The document name corresponds to the filename AEM5F7A.dwf in the folder ..../AppData/Local/Temp.
pic2.jpg: on canvas toolbar the document name is correct. I did not find the reason why this DWF, produced with an earlier version, displays every thing correctly.

PR_EG-FM1276.DWF: dwf file of pic1.jpg  ( NOT correct on Internet Explorer 8, correct on local DWF Viewer )
W3_UG-FM 5.dwf: dwf file of pic2.jpg ( correct on Internet Explorer 8, and local DWF Viewer )

 

Thanks in advance, Markus Fritschi ( CH )

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 4 of 7 (3,072 Views)

Re: Exporting DWF Drawings to Autodesk Design Review 2010 and higher

10-21-2010 11:54 PM in reply to: M36653219

Thank you for your feedback.

 

I tested with your dwf file PR_EG-FM1276.DWF, it's correct on Internet Explorer 8, and local Design Review. See attached picture.

 

Actually, the name on the canvas toolbar is section/page name but not document name.

 

You can save your DWF file in the web site in pic1.jpg as a new DWF file, and then open it in local Design Reivew. To see if the section name is correct.

 

Please let me know if I can be of any further assistance.

 

 



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Member
M36653219
Posts: 4
Registered: ‎10-18-2010
Message 5 of 7 (3,060 Views)

Re: Exporting DWF Drawings to Autodesk Design Review 2010 and higher

10-22-2010 06:59 AM in reply to: M36653219

Thanks for your fast reply!.

 

I got exaxtly the same result as you.
I added a picture to show you in more detail the problem I have.
As you see,
1) I renamed file from PR_EG-FM1276.DWF to 12345.DWF and the result in the toolbar is 12345.DWF.
2) I renamed W3_UG-FM 5.dwf to 67890.DWF and I got the result I wanted: CW W3_UG-FM. ( see picture )

The only difference between the two DWF Drawings: W3_UG-FM 5.dwf ( original filename was CW W3_UG-FM 5.dwf ) was exported with Autodesk.Autocad Interop routine:
.....
Dim ThisDrawing As AcadDocument = DocumentManager.MdiActiveDocument.AcadDocument
ThisDrawing.Plot.PlotToFile(FileLocation)
.....

and PR_EG-FM1276.DWF is now exported with C# NET routine
....
// Define the plot output
string docName = System.IO.Path.GetFileName(doc.Name);
docName = docName.Substring(0, docName.Length - 4);
pe.BeginDocument(pInfo, docName, null, 1, true, FileName);
.....
as proposed on AutoCAD .NET Developer's Guide ( with some little modifications )

I do not find the trick!!
What do I make wrong or what do I have to change ? I did not find a routine in the DWF Viewer API to change the Section Name( only read only)
In Autodesk.AutoCAD.PlottingServices I tried nearly everything.

HOW can I make the canvas toolbar section/page name independent of the actual filename? ( as with ThisDrawing.Plot.PlotToFile(FileLocation) and thus eliminating cryptic section/page names)

 

Thanks for you answer and good weekend!

Member
M36653219
Posts: 4
Registered: ‎10-18-2010
Message 6 of 7 (3,058 Views)

Re: Exporting DWF Drawings to Autodesk Design Review 2010 and higher

10-22-2010 08:07 AM in reply to: M36653219

Hi,

 

Strange behaviour
and workaround to display same document name on canvas toolbar  ( section/page name ) independent from filename: Compress file before uploading it to the server!

Perhaps you have a better solution.

 

Thanks in advance.

 

P.S. I can not compress ( setting compression in Plotter configuration editor ) when exporting DWG - File ( System.AccessViolationException  at Autodesk.AutoCAD.PlottingServices.PlotEngine.BeginGenerateGraphics(Object parameters) )

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 7 of 7 (3,051 Views)

Re: Exporting DWF Drawings to Autodesk Design Review 2010 and higher

10-22-2010 08:39 PM in reply to: M36653219

Thank you for your feedback.

 

The file PR_EG-FM1276.DWF is old version of DWF format. You can open it in local Design Reivew and then save it in another place with the same file name. The new saved DWF file is you wanted.

 

Please let me know if I can be of any further assistance.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community