- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here's something strange. When I explicitly type in Netload at the AutoCAD command line, I can select the relevant dll and the loading is successful.
However, when I netload it via script, it doesn't work.
To be more specific, I'm launching AutoCAD 2023( as Civil 3D 2023, but it shouldn't matter here) as a Debugging action in my Visual Studio 2023, with the following command line argument:
/ld "D:\Program Files\Autodesk\AutoCAD 2023\\AecBase.dbx" /p "<<C3D_Metric>>" /product "C3D" /b "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\LoadPlugin_2023.scr"
And in my SCR script, this is what I put in
netload "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"
When I launch my debugger, I can see AutoCAD being loaded alright, but I don't see my plugin being activated ( like I mentioned above, if I manually type in Netload then everything works just fine). When I press F2, I got this weird message:
netload Assembly file name: "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"*Cancel*
*Cancel*"C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"
"C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"
Notice that AutoCAD actually cancels (??) my netload, for unknown reasons!
On a separate note, notice that the dll is located 2 directories below the .scr file. I wonder whether it's possible to simplify the scr content to something like
netload "..\bin\Debug\2023\MES.Civil3DIntegrator.dll"
Does SCR file support relative path?
Ngu Soon Hui
##########
I'm the Benevolent Dictator for Life for MiTS Software. Read more here
I also setup Civil WHIZ in order to share what I learnt about Civil 3D
Solved! Go to Solution.