Code Red > .NET
Combining DWGs using ACCoreConsole
(1/1)
Rokte:
I am trying to combine multiple DWG's into a single DWG using AutoCAD 2019 and ACCoreConsole.
My code is almost identical to the code found in this thread (Message 5 of 6) https://forums.autodesk.com/t5/net/accoreconsole-and-net-copy-modify-multiple-drawings/td-p/8501190
I am getting an eLockViolation error on the WBlockCloneObjects call. I'm not specifying a /i parameter on my start up script so I tried adding a LockDocument after creating the new database. After I do that I get an eNotAllowedForThisProxy error.
The code does work in full AutoCAD but not ACCoreConsole so I'm worried I can't do what I want to do in core console. Any ideas on what I could be doing wrong? Thanks!
gile:
Hi,
Just a shoot in the dark, make sure the code you run in the core console does not use APIs from AcMgd.dll (only APIs from AcCoreMgd.dll and AcDbMgd.dll).
Rokte:
I double-checked, AcCoreMgd and AcDbMgd are the only AutoCAD files I have referenced.
Navigation
[0] Message Index
Go to full version