Normal Topic Program execution?? (Read 1576 times)
JJuarez
Member
*
Offline


No personal text

Posts: 26
Joined: Dec 15th, 2003
Program execution??
Oct 15th, 2004 at 2:20pm
Print Post Print Post  
I have created a database of our drawings we use here at work. Is there a way to view the drawing in AutoCAD from within Sesame after I have made a search?? I tried using and @shell command...but I was not able to do it Undecided  partly because I didn't know how  Undecided if it is possible.

  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Program execution??
Reply #1 - Oct 15th, 2004 at 2:45pm
Print Post Print Post  
If AutoCad allows it, you should be able to do it. For most programs, it would look something like:

var vShell as Int
vShell = @Shell("C:\ThePath\autocad.exe " + MyFilename)

If it doesn't work, let us know what it is doing.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Program execution??
Reply #2 - Oct 15th, 2004 at 3:11pm
Print Post Print Post  
What version of AutoCad are you using? 

I may be able to duplicate up through version 2005, Mechanical.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
JJuarez
Member
*
Offline


No personal text

Posts: 26
Joined: Dec 15th, 2003
Re: Program execution??
Reply #3 - Oct 15th, 2004 at 3:51pm
Print Post Print Post  
We are using Autocad 2002

Here is what I have on the database.
It didn't work for me.

http://tinypic.com/cosqd

http://tinypic.com/cosqe

I would like to be able to choose and load the drawing of whichever search it finds.

When I did the test it did not give any errors.
It did not do anything when I selected a drawing from the database?? Lips Sealed
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Program execution??
Reply #4 - Oct 15th, 2004 at 4:42pm
Print Post Print Post  
I believe it will look something like this. I do not have Auto Cad to test it.

Code
Select All
 Var vShell as Int
Var vDoc as String
Var vAutoCad as String

vAutoCad = @Chr(34) + "C:\Program Files\AutoCAD 2002\acad.exe" + @Chr(34)
vDoc = @Chr(34) + DWGLocation + "\" + DWGName + ".dwg" + @Chr(34)

vShell = @Shell(@Chr(34) + vAutoCad + " " + vDoc + @Chr(34)) 



DWGLocation(I am assuming that is the name of your element) needs to have the complete path to the folder ex I:\Master\Cadd\Details
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
JJuarez
Member
*
Offline


No personal text

Posts: 26
Joined: Dec 15th, 2003
Re: Program execution??
Reply #5 - Oct 15th, 2004 at 6:05pm
Print Post Print Post  
Cheesy  Cheesy Thanks for the quick replys.  Cheesy  Cheesy

Hammer, Ray...thanks for showing me how to program this.

WOW it works   Smiley   Smiley

Need I say more.  Another happy camper.
  
Back to top
 
IP Logged