TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: TimSpangler on February 07, 2007, 12:53:39 PM

Title: Need some ginny pi...Volonteers
Post by: TimSpangler on February 07, 2007, 12:53:39 PM
Could someone try this and tell me if it works for them.  It is a sub to open a word document

The call is (Open_Doc "mydoc with path").

Thanks
Title: Re: Need some ginny pi...Volonteers
Post by: JohnK on February 07, 2007, 12:59:38 PM
Done and done; she worked
Title: Re: Need some ginny pi...Volonteers
Post by: TimSpangler on February 07, 2007, 01:02:55 PM
Thanks.  What version of office are you running?  Just curoius to see if that will have any effect.
Title: Re: Need some ginny pi...Volonteers
Post by: JohnK on February 07, 2007, 01:09:57 PM
2003
Title: Re: Need some ginny pi...Volonteers
Post by: Crank on February 07, 2007, 01:13:54 PM
Works on Acad2006 and Acad2008-B5 with Office 2003.
Title: Re: Need some ginny pi...Volonteers
Post by: CAB on February 07, 2007, 01:14:49 PM
Worked Here.
Windows 2000 - Office 2000 - ACAD 2000
Title: Re: Need some ginny pi...Volonteers
Post by: TimSpangler on February 07, 2007, 01:18:00 PM
Thanks guys,  We have some help files here in doc format that the company would like to add to the pulldown but they need a way of opening them.  Does this way seem to be a good way.

I also looked at the shell but I don't like the shell dialog opening also.
Title: Re: Need some ginny pi...Volonteers
Post by: JohnK on February 07, 2007, 01:32:23 PM
...No fricken way! I was doing the exact same thing last week. (help file display)

I build a way for me to display text on the command line (nothing fancy) for the basic help but for the more advanced i was going to display web pages (so i can use flash videos and stuff) But did you think of using a CHM or a PDF? (something the user cant edit)
Title: Re: Need some ginny pi...Volonteers
Post by: Crank on February 07, 2007, 01:59:08 PM
This is what I use for PDF:
Code: [Select]
(defun pdf (filename / shell bestand)
(vl-load-com)
(setq bestand (findfile (strcat "subfolder_of_searchpath/" filename)))
(if bestand
(progn
(setq shell (vla-getinterfaceobject (vlax-get-acad-object) "Shell.Application"))
(vlax-invoke-method shell 'Open bestand)
(vlax-release-object shell)
)
(alert "PDF-file not found !")
)
(princ)
)
Title: Re: Need some ginny pi...Volonteers
Post by: TimSpangler on February 08, 2007, 12:40:36 PM
...No fricken way! I was doing the exact same thing last week. (help file display)

I build a way for me to display text on the command line (nothing fancy) for the basic help but for the more advanced i was going to display web pages (so i can use flash videos and stuff) But did you think of using a CHM or a PDF? (something the user cant edit)

Yes Way!!

I would love to use PDF's however my company does not allow user installed software and there is only a hand full of people that have the ability to create PDF (and they would rather not be bothered) So I will be using a word doc (for now).  I may eventurally convert the word document to PDF (at home).

Thanks for everyones help
Title: Re: Need some ginny pi...Volonteers
Post by: hendie on February 09, 2007, 03:10:20 AM
why don't you just add your own help files into the AutoCAD help file ?
It's a pretty straight forward process.
Title: Re: Need some ginny pi...Volonteers
Post by: adalea03 on February 09, 2007, 07:41:36 AM
Hendie,
Would that have to be done every machine in the office?
Title: Re: Need some ginny pi...Volonteers
Post by: hendie on February 09, 2007, 12:29:17 PM
sort of ~ just do it on one machine then copy the help file to the others but you could always batch that process.
It does make it look a bit more professional though, having your own help inside the Acad help file, but that's just my opinion. I guess it's whatever you feel comfy with at the end of the day