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

namedview issue after reload dwf

1 REPLY 1
Reply
Message 1 of 2
fransnellen
292 Views, 1 Reply

namedview issue after reload dwf

I was wondering if you could help me with the following issue.
In my As long (visual net 2003) I load a dwf file from where a user can click on an area (url) which will bring up a new dwf file. The swap is made by setting the sourcepath to a drawing directory & the name of the url as the drawing name. When the new drawing loads it should go to a named view but at this point I run into a problem. Aslong as i don't swap the drawing I'm able to go to a named view but after swapping the drawing the named view (viewer.view = viewer.namedviews("Selection") gives me an error.

Any help is appreciated
Frans Nellen
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: fransnellen

You have a couple of options. The simplest option is for you to append a
parameter to the file name when loading the file. The 2nd option is to use
code to monitor which DWF is opened and to load the file and then set the
view. Try the 1st one 1st. This is an example of a file name with a
namedview parameter

newdrawing.dwf?NamedView=VIEWX

wrote in message news:5233816@discussion.autodesk.com...
I was wondering if you could help me with the following issue.
In my As long (visual net 2003) I load a dwf file from where a user can
click on an area (url) which will bring up a new dwf file. The swap is made
by setting the sourcepath to a drawing directory & the name of the url as
the drawing name. When the new drawing loads it should go to a named view
but at this point I run into a problem. Aslong as i don't swap the drawing
I'm able to go to a named view but after swapping the drawing the named view
(viewer.view = viewer.namedviews("Selection") gives me an error.

Any help is appreciated
Frans Nellen

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

Post to forums  

Autodesk Design & Make Report