ARX file fails to load Autodesk RFA

ARX file fails to load Autodesk RFA

ytzvib
Advocate Advocate
1,061 Views
3 Replies
Message 1 of 4

ARX file fails to load Autodesk RFA

ytzvib
Advocate
Advocate

Hi,

 

I'm using Flood and river analysis which is a module in Civil 3d and I wanted to make a lisp to run some of the commands again and again. Please see the lisp below, before I finished writing it I tested it to see if it would even run the command and all it says is "arx failed to load" I don't really know what I'm doing so any help would be appreciated.

 

Thanks

 

(arxload "C:\Program Files\Autodesk\Autodesk RFA 2016\River.arx")
(DEFUN C:redall ()
(command "RMS_XSNEXT");next cross section

(command "RMS_REDUCE");reduce cross section
(princ)
)

0 Likes
Accepted solutions (1)
1,062 Views
3 Replies
Replies (3)
Message 2 of 4

Jonathan3891
Advisor
Advisor
Accepted solution

Try loading the arx after the defun.

(defun c:redall (/ )
(arxload "C:\\Program Files\\Autodesk\\Autodesk RFA 2016\\River.arx")

You should use double backslash in a filepath.  The single backslash character is a "special" control character in Vlisp.
It's purpose is to say "the next character is to be read literally" (it also doubles as a pause character when it is passed to a command and not included in a string).

 

As for the command section of code. Do you have to do anything after entering "RMS_XSNEXT" or "RMS_REDUCE"? If so you will have to account for that in that section of code. You will have to be a little more specific in this area.

 

 

 


Jonathan Norton
Blog | Linkedin
Message 3 of 4

ytzvib
Advocate
Advocate

Thanks!

 

It loads now!

 

But it does not recognize the commands that I put in even though I can type them in the command line. And I know that it is the correct ARX file because when I remove it from the folder then I can't type those commands in the command line.

0 Likes
Message 4 of 4

ytzvib
Advocate
Advocate

It works now I had to put it in like this (C:RMS_XSNEXT)

0 Likes