Accoreconsole failing to load dll

Accoreconsole failing to load dll

BKSpurgeon
Collaborator Collaborator
2,711 Views
5 Replies
Message 1 of 6

Accoreconsole failing to load dll

BKSpurgeon
Collaborator
Collaborator

Hi folks

 

I've created a "hello world" dll.

 

It basically loops through some entities in the model space and prints out the hangle or object id to the editor. 

 

I am trying to netload this dll to accoreconsole. netloading is failing.

 

I have removed the reference to the troublesome acmgd which would prevent it from working in accoreconsole. But it still refuses to load.

 

attached is my project.

 

Any assistance would be much appreciated.

 

 

regards

 

BK

Accepted solutions (2)
2,712 Views
5 Replies
Replies (5)
Message 2 of 6

jeff
Collaborator
Collaborator
Accepted solution

I have not looked at it but is the location of dll included in "Trusted Paths"?

You can also find your answers @ TheSwamp
Message 3 of 6

BKSpurgeon
Collaborator
Collaborator
Accepted solution

THank you Mr Jeff

 

I will try this out.

 

For those researching this in the future, if you want to add a trusted path folder location, here it is:

 

http://www.ccadinc.com/autocad-tutorials-trusted-locations.html

 

 

with kind regards

 

BK

Message 4 of 6

BKSpurgeon
Collaborator
Collaborator

yup works like a charm now.

 

cheers.

 

rgds

 

BK

0 Likes
Message 5 of 6

BKSpurgeon
Collaborator
Collaborator

There is great rejoicing in the land!

 

Managed to get accoreConsole working with Scriptpro 2.0 to allow for the batch processing of files. This allows for speedy batch processing of many, many autocad files.

 

 

Below are my script files: (because this forum will not allow me to upload it):

 

;Loading the .Net module
Netload "C:\Users\Koshy\Documents\Visual Studio 2013\Projects\BatchProcessingII\countEntities\countEntities\bin\Debug\countEntities.dll"
;
; Run the command
(command "Count")
(command "save")

Please note that there are to carriage returns at the end of the file.

 

If you want to avoid using ScriptPro 2.0 and simply want a windows bat file here it is below:

 

cd D:\Program Files\Actual Autocad Program\AutoCAD 2016
d:
cls
accoreconsole.exe /i "C:\Users\Koshy\Documents\Visual Studio 2013\Projects\BatchProcessingII\Lights.dwg" /s "C:\Users\Koshy\Documents\Visual Studio 2013\Projects\BatchProcessingII\RunCustomNETCmd.scr" /l en-US
PAUSE

I copied that from Augusto Gonglaves or Balaji Ram. or some other such autodesk genious. 

 

 

any problems please don't hestitate to PM me - if you reply to the thread it's highly likely that i'll miss it.

 

regards

 

BK 

 

0 Likes
Message 6 of 6

jayandseth
Community Visitor
Community Visitor
0 Likes