Visual Studio 2017 with old projects

Visual Studio 2017 with old projects

joantopo
Mentor Mentor
1,456 Views
9 Replies
Message 1 of 10

Visual Studio 2017 with old projects

joantopo
Mentor
Mentor

Hi,

 

I have done some projects in Visual Studio 2012.

 

Now, I have desintalled VS 2012 and I have installed VS 2017.

 

My project works fine but I can´t debug it in Civil 3D 2017.

 

 

I press the button "play" in VS and it opens AutoCAD 2017.

Then, I can type "netload" to load my dll and it seems working, but it doesn´t recognize any of my commands of the app.

 

Even some commands of AutoCAD are not recognized such as "ribbon", etc...

 

The issue is about Civil 3D 2017 when is thrown from Visual Studio 2017.

 

 

Any ideas?

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
0 Likes
Accepted solutions (2)
1,457 Views
9 Replies
Replies (9)
Message 2 of 10

joantopo
Mentor
Mentor

Here is my Debugging Settings.

 

21.jpg

 

 

My app (dll) works fine out of Visual Studio Debugging, opening directly Civil 3D and load it.

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
0 Likes
Message 3 of 10

RodWing
Enthusiast
Enthusiast

I've stopped trying to have Visual Studio try to launch Civil 3D in debug mode long ago.

 

To debug I do this...

  1. Compile the app in Debug mode in Visual Studio.
  2. Launch Civil 3D from the desktop icon or start menu.
  3. In Visual Studio select DEBUG > Attach to Process...
  4. A dialog is displayed with all of your running processes. Select acad.exe which is usually at the top of the list and click Attach.
  5. Once attached do a NETLOAD and debug the app.
0 Likes
Message 4 of 10

Jeff_M
Consultant
Consultant
Really Rod? I have had no issues in quite some time Debugging from within VS, including the use of Edit & Continue. A few years ago I created a .bundle app and I direct all of my Debug builds to there so I never have to manually load the app.

Joan, I've still not had a chance to do any testing with VS 2017. Hopefully tonight...
Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 5 of 10

norman.yuan
Mentor
Mentor
Accepted solution

I do not have problem to run/debug AutoCAD Civil3D 2017 from VS2017.

 

Do you have SP1 installed? When AutoCAD 2017 came out, it had VS debugging issue with VS2015 (VS2017 has not be out then), and Autodesk solved that issue with AutoCAD 2017 SP1. I suppose the same debugging issue would be with VS2017, if AutoCAD2017 SP1 is not installed.

 

In my Civil3D 2017's "About" window, it says:

 

Product Version:

 

11.0.771.0 Autodesk AutoCAD Civil3D 2017 SP1.1

 

Built on:

 

N.301.0.0 AutoCAD 2017.1.1 Update

N200AC Autodesk AutoCAD Map 3D 2017.0.3 Hot Fix 7.9.48.0 Autodesk AutoCAD Architecture 2017

 

Norman Yuan

Drive CAD With Code

EESignature

Message 6 of 10

joantopo
Mentor
Mentor
Yes, I have the same product version (SP1.1)

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<> Libre de virus. www.avast.com<>
Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
0 Likes
Message 7 of 10

Jeff_M
Consultant
Consultant

Hi Joan,

I finally go a chance to test VS 2017. I started with a project originally created in VS2010 for C3D 2015, edited the References, then built the project without issue. I then ran Debug and everything loaded correctly. I set a breakpoint, ran the associated test command, and could edit the code & continue...also without issue.

 

Is your project set to x64 or AnyCPU? Mine is for x64.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 8 of 10

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Is your project set to x64 or AnyCPU? Mine is for x64.

I would like to add:

  • Is your project set to use Framework 4.6 or another one (which is sometimes a reason for breakpoints ignored)

 

Besides of that: I don't have issues with VS2017 and AutoCAD 2014 - AutoCAD 2018 development and debug (not for the AutoCAD part, not discussing the VS issues here 😉 ).

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 9 of 10

joantopo
Mentor
Mentor

Hi.

I have changed the platform to x64 unsuccesful.

 

The issue is not my app, is between Visual Studio and Civil 3D 2017.

 

Even when Civil 3D is opened from the debugger, the ribbon doesn´t appear (the workspace is also "Civil 3D" but for some reason it can´t show the ribbon).

 

Ribbon command is not recognized.

 

 

I will check other projects.

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
0 Likes
Message 10 of 10

joantopo
Mentor
Mentor
Accepted solution

Solved.

 

I have installed AutoCAD 2017 SP1.

 

This time, I have issue running Civil 3D in debugging mode because it can´t load the Workspace...Ribbon. (it appeared a break aplication window). ** aplication was refered to Civil 3D.

 

 

I opened Civil 3D out of Visual Studio, and I created a new workspace with the same name "Civil 3D" and I replaced it.

 

Now it works fine.

 

Thanks all.

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
0 Likes