Clarión - google earth
Clarión - google earth
(OP)
Hi,
I need send data to google earth and show location.
Or can i pass parameters to google earth and open the KML file.
And i need view a layout (no necesary in clarion) of autocad but this it must be can zoom and move across it.
Thank's
I need send data to google earth and show location.
Or can i pass parameters to google earth and open the KML file.
And i need view a layout (no necesary in clarion) of autocad but this it must be can zoom and move across it.
Thank's
RE: Clarión - google earth
For Google Earth, you need to embed a browser inside a OLE control and send the URL for it along with the parameters OR calling ShellExecute. I have not tried it but there is some information on by somebody else.
For using ShellExecute ::
CODE
MODULE('WINAPI')
ShellExecute(Unsigned, *CString, *CString, *CString, *CString,Signed),Unsigned, Pascal, Raw, Proc,name('ShellExecuteA'),proc
GetDesktopWindow(), Unsigned, Pascal
END
2. When ready to run
AssocFile = 'YourFile.ext'
Param = '
Directory = '
Operation = 'open'
ShellExecute(GetDesktopWindow(),Operation,AssocFile,Param,Directory,5)
Another Example :
MODULE('WinApi')
ShellExecute PROCEDURE(ULONG,*CSTRING,*CSTRING,*CSTRING,*CSTRING,SIGNED),UNSIGNED,PASCAL,RAW,PROC,NAME('ShellExecuteA')
END
taskOperation CSTRING(8)
taskFile CSTRING(1550)
taskParameters CSTRING(5)
taskDirectory CSTRING(5)
taskShowCmnd SIGNED
taskOperation = 'open'
taskFile = 'mailto:Someone@Somewhere.ca?subject=Test It&body=this is a test' & LOC:LongString
taskParameters = '
taskDirectory = '
taskShowCmnd = 1
IF ShellExecute(Window{PROP:Handle}, taskOperation, taskFile, taskParameters, taskDirectory, taskShowCmnd) < 33
MESSAGE('Error executing connection to :' & taskFile,'Client: Shell Execute Error',ICON:Exclamation)
END
For Google Earth URL ::
I have no idea about AutoCAD. Google for AutoCAD viewers.
Regards
RE: Clarión - google earth