Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

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

zhengyunyang2019
Advocate

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
Reply
Accepted solutions (2)
602 Views
9 Replies
Replies (9)

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

Valentin-WSP
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

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

zhengyunyang2019
Advocate
Advocate

its the same error when i input it in cad commad

0 Likes

paullimapa
Mentor
Mentor
0 Likes

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

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

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

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