Can an ARX plugin be loaded through an SCR script file?

Can an ARX plugin be loaded through an SCR script file?

zhengyunyang2019
Advocate Advocate
1,085 Views
9 Replies
Message 1 of 10

Can an ARX plugin be loaded through an SCR script file?

zhengyunyang2019
Advocate
Advocate

I created an SCR file and input the command ("appload" "D:\work\ElecCoordinationSys.arx"), but it returned the error: "Error: Function error: 'appload' Command: APPLOAD."

0 Likes
Accepted solutions (2)
1,086 Views
9 Replies
Replies (9)
Message 2 of 10

pendean
Community Legend
Community Legend
Did you test your code by typing that at the commandline first?
Does it work or give you the same error, or something else?
0 Likes
Message 3 of 10

Valentin_CAD
Mentor
Mentor

@zhengyunyang2019 ,

 


@zhengyunyang2019 wrote:

Can an ARX plugin be loaded through an SCR script file?


Check if the missing file is in the right folder for To Locate Support Files.

Or something like this:

/ld D:\work\ElecCoordinationSys.arx.

 

These links provide more help:

 

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 4 of 10

paullimapa
Mentor
Mentor
Accepted solution

@zhengyunyang2019 Have you tried this updated version:

 

(arxload "D:\\work\\ElecCoordinationSys.arx")

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 10

zhengyunyang2019
Advocate
Advocate

its the same error when i input it in cad commad

0 Likes
Message 6 of 10

paullimapa
Mentor
Mentor
0 Likes
Message 7 of 10

zhengyunyang2019
Advocate
Advocate

(ARXLOAD "D:\\work\\ElecCoordinationSys.arx")

You did it the right way. Thank you

And use "\\" in the path to take effect, not "\"

0 Likes
Message 8 of 10

paullimapa
Mentor
Mentor
Accepted solution

Yes, either double backslashes "\\" or single forward slash "/" like this:

(arxload "D:/work/ElecCoordinationSys.arx")

Now if you add D:\work to your AutoCAD Options>Files>Support File Search Path then you don't even need to include the path in your loading code:

(arxload "ElecCoordinationSys.arx")

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 9 of 10

zhengyunyang2019
Advocate
Advocate

Hello, I have a new problem, what if I want to load a dll file? Which command should I use?

I tried (netload "xxx.dll"), but the message "no function definition: NETLOAD"

0 Likes
Message 10 of 10

paullimapa
Mentor
Mentor

Did you try:

(command "netload" "xxx.dll")

FYI: You'll need to include the path if it's not located in one of the Support File Search Path

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes