Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Starting Revit programs from the AutoCAD command line

7 REPLIES 7
Reply
Message 1 of 8
BIMAbhi
741 Views, 7 Replies

Starting Revit programs from the AutoCAD command line

You want to know how to start a Revit (any version) from the AutoCAD® command line. We have seen that Excel is opened through AutoCAD command line (http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=11938192&linkID=9240617).

 

Thanks in advance.

Thanks & Regards
BIMAbhi
7 REPLIES 7
Message 2 of 8
dbroad
in reply to: BIMAbhi

If you're asking a question, then the answer would be something similiar to:

 

(defun c:revit ()
(startapp "C:\\Program Files\\Autodesk\\Revit 2014\\Revit.exe")
(princ)
)

 

You would need to provide the complete path name, save the text above in lisp file and load it as part of your startup suite contents.

Architect, Registered NC, VA, SC, & GA.
Message 3 of 8
BIMAbhi
in reply to: BIMAbhi

Thanks for your valuable feedback regarding this issue. We have not opened the Revit 2014 through AutoCAD interface with your provided lisp code. We have attached the problem snap for your reference

Thanks & Regards
BIMAbhi
Message 4 of 8
dbroad
in reply to: BIMAbhi

As I warned you before, "You would need to provide the complete path name."  In other words, you must provide the complete path to Revit on your machines.  I cannot do that for you.  There is almost no need to do this in any case. Revit and AutoCAD don't work together.

Architect, Registered NC, VA, SC, & GA.
Message 5 of 8
BIMAbhi
in reply to: BIMAbhi

We have attached a snap for the file lication and the lisp file content. Please give your suggestion.

Thanks & Regards
BIMAbhi
Message 6 of 8
dbroad
in reply to: BIMAbhi

Look at my post and the double backslashes.  You must escape each backslash by adding an extra backslash at each backslash as I demonstrated in my first post.

Architect, Registered NC, VA, SC, & GA.
Message 7 of 8
BIMAbhi
in reply to: BIMAbhi

We have put the content (as mentioned below) but not working. Please suggest.

 

(defun c:revit ()
(startapp "C:\\Program Files\\Autodesk\\Revit 2014\\Revit.exe")
(princ)
)

Thanks & Regards
BIMAbhi
Message 8 of 8
dbroad
in reply to: BIMAbhi

No. Sorry. Out of ideas. Works fine here.

Architect, Registered NC, VA, SC, & GA.

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

Post to forums  

Autodesk Design & Make Report

”Boost