PDF convertion using DWG true view

Minu_vb
07-19-2010, 03:38 AM
Hi,

I need to convert a selected .dwg file to pdf using dwg true view using VB. Is it possible?

Could anybody help me?

:(

ZKat
07-19-2010, 08:38 AM
Hi,

Have a look at the Shell function. This will allow you to execute 3rd party apps.

Minu_vb
07-21-2010, 03:45 AM
Friends finally it got solved


1. add acctrl.dll in reference
2. in component you can find the option 'acctrl component'. Select it and drag to the form
3. use the function
PutSourcePath("specify the path of file you need to view")
eg:
AcCtrl1.PutSourcePath ("D:\B-96043-01.dwg")
5. dim str(1) as string
srt(0)=getsourcepath [Path of DWG file]
Acctrl.Silentpublish(str)

Now this will work only if i set a path in which the converted pdf file will get reside. That can be specified in the following path of registry

HKEY_CURRENT_USER\Software\Autodesk\DWG TrueView\R7\DWGVIEWR-8001:409\Profiles\<<Unnamed Profile>>\Dialogs\AcPublishDlg\Location

so in program you need to do the following task
4.

1. check whether the path : HKEY_CURRENT_USER\Software\Autodesk\DWG TrueView\R7\DWGVIEWR-8001:409\Profiles\<<Unnamed Profile>>\Dialogs\AcPublishDlg
exist in registry. if not create it

2. update 'Location' with the desired path
3. Now run silentpublish function

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum