Author Topic: Combining DWGs using ACCoreConsole  (Read 157 times)

0 Members and 1 Guest are viewing this topic.

Rokte

  • Mosquito
  • Posts: 2
Combining DWGs using ACCoreConsole
« on: March 12, 2019, 01:01:33 PM »
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

  • Water Moccasin
  • Posts: 2204
  • Marseille, France
Re: Combining DWGs using ACCoreConsole
« Reply #1 on: March 12, 2019, 01:35:23 PM »
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).
Speaking English as a French Frog

Rokte

  • Mosquito
  • Posts: 2
Re: Combining DWGs using ACCoreConsole
« Reply #2 on: March 12, 2019, 03:20:42 PM »
I double-checked, AcCoreMgd and AcDbMgd are the only AutoCAD files I have referenced.