DWG TrueView
Welcome to Autodesk’s DWG Trueview Forums. Share your knowledge, ask questions, and explore popular DWG Trueview topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Visual fox pro or Visual Basic - Voloview launching

3 REPLIES 3
Reply
Message 1 of 4
loic
178 Views, 3 Replies

Visual fox pro or Visual Basic - Voloview launching

I'm trying to view a drawing by lauching voloview using either visual fox pro or visual basic. I'm missing the correct syntax for a line of code and I cannot figure it out. it starts to be quiet frustating.....

Here is my problem:
Using a click event in one form of one those programs, I managed to launch the voloview application using the following code:

oleapp= createobject("voloview.application")
oleapp.visible=.T.

However, I cannot open my drawing using the following command line (that works for autocad but not voloview):
oleapp.acaddocuments.open("C:\ddd.dwg")

Any help will be really appreciated
thanks in advance.
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: loic

Try "oleapp.src=""....
See http://www.autodesk.com/prods/volo/custguid/workapi.htm for the complete API.
Greatings, Hans van Koelen
Message 3 of 4
loic
in reply to: loic

Thanks a lot.

That is exactly what I was looking for. I couldn't
find the documentation on the web-site.
This is a very good source for future programs.

Best Regards

Loic Deneuville
Message 4 of 4
Anonymous
in reply to: loic

This question is closely related. I'm using VFP to instatiate VoloView Express. My problem is I am trying to set the .src property from a variable. The variable is a string, but VoloView keeps throwing an error. This does not happen if I hard code a file name such as .src = "c:\myfile.dwg"

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

Post to forums  

Autodesk Design & Make Report