.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi ,
Is there somebody can help me?
Everytime, I build my project, there is following warning coming out and asks me to remove the reference file "ACMgd".
Warning 1
The referenced assembly "AcMgd" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. AutoCADHoodDWG
Best regards,
Jusitn
Solved! Go to Solution.
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
- Do you use the correct release of ObjectArx?
- In VS, did you switch its "Local Copy" property to FALSE?
Regards,
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I suppose that you are working with Autocad 2013, if I'm correct, review yor project properties, the target .NET Framework for your app mus be 4.0 (probably you have 3.5).
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi
I use autocad2012 64bit version with win7 64bit os. The C:\ObjectARX 2012 is my folder for ObjectARX.
I use VS 2010 C# to program a stand alone application.
all of them are reommended by autodesk's website. They shuould work together properly.
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
jiallxy wrote:Hi ,
Is there somebody can help me?
Everytime, I build my project, there is following warning coming out and asks me to remove the reference file "ACMgd".
Warning 1
The referenced assembly "AcMgd" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. AutoCADHoodDWG
Best regards,
Jusitn
Try retargeting to full .NET 4.0 version instead of Client.
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Now than you mentioned this:
<quote>
I use VS 2010 C# to program a stand alone application.
</quote>
Please be aware, the Acad .NET API assemblies (acdbmgd.dll/acmgd.dll...) can only be used inside AutoCAD (if you do Acad addin DLL project). You CANNOT use them with stand-alone EXE project.
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
jiallxy wrote:
Hi
I use autocad2012 64bit version with win7 64bit os. The C:\ObjectARX 2012 is my folder for ObjectARX.
I use VS 2010 C# to program a stand alone application.
all of them are reommended by autodesk's website. They shuould work together properly.
Do I understand correctly that you're trying to make external exe-file (not dll-file that will be loaded with NETLOAD command into AutoCAD)? If so, then you can not use acmgd.dll and acdbmgd.dll in your project.
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yes, you are right.
I have just found that these two dll files only can be used in add-in projects.
I have to use COM interop: Autodesk.AutoCAD.Interop
The problem is that the COM interop have less good functions and is more difficult to program.
I will try to balance which way I should choose.
thank you very much!
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yes, you are right.
I have just found that these two dll files only can be used in add-in projects.
I have to use COM interop: Autodesk.AutoCAD.Interop for standalone application.
The problem is that the COM interop have less good functions and is more difficult to program.
I will try to balance which way I should choose.
thank you very much!
Re: what happen to the file of AcMgd.dll in my project
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you!
I changed the framework type, and it works!




