I’m using Autodesk Design Automation v3 for AutoCAD, and I created a .bundle ZIP containing a custom batchplot.lsp. When I try to load and run it via SCR script in a WorkItem, I get the following errors:
[06/17/2025 12:35:46] Command: (load "batchplot.lsp")
[06/17/2025 12:35:46] ; error: LOAD failed: "batchplot.lsp"
[06/17/2025 12:35:46] Command: (c:batchplot)
[06/17/2025 12:35:46] ; error: no function definition: C:BATCHPLOT
Here is how I zipped the AppBundle:
ListLayers2.bundle.zip
- ListLayers2.bundle/
- PackageContents.xml
- Contents/
- batchplot.lsp
xml
<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage
SchemaVersion="1.0"
AutodeskProduct="AutoCAD"
Name="ListLayers2"
Description="Batch plotting LISP"
AppVersion="1.0.0"
ProductCode="AutoCAD"
AppName="ListLayers2"
>
<CompanyDetails
Name="MyCompany"
Url="http://example.com"
/>
<Components>
<RuntimeRequirements
OS="Win64"
Platform="AutoCAD*"
/>
<ComponentEntry
AppType="AutoLISP"
ModuleName="./Contents/batchplot.lsp"
/>
</Components>
</ApplicationPackage>
❗ What I want to know
1. Why is (load "batchplot.lsp") failing even though the file exists inside the AppBundle’s Contents folder?
2. Does the /al flag guarantee that the Contents folder becomes the current directory for LISP/SCR?
3. Is the AppBundle structure or SCR logic incorrect in any way?
Thank you