Sepcifing different version of the same Nuget package in one CSPROJ file

If you are developing AutoCAD plugins, you may need to build different versions of your project for different AutoCAD versions. In this blog post, we will explore how to design a csproj file that allows building different versions of an AutoCAD plugin for different AutoCAD versions from one csproj file (or vbproj file, respectively).

Continue reading
Advertisement

LINQ and the AutoCAD .NET API (Part 9)

This is the ninth in a series of posts on LINQ an the AutoCAD .NET API. Here’s a complete list of posts in this series.

This is part 9 of LINQ and the AutoCAD .NET API. Today we want to do some refactoring to get a nicer API.

At the moment our main entry point to our API is the GeneralHelper class. GeneralHelper is not really a good name for an API class. The purpose of the GeneralHelper class is to provide access to the database of the current document, so maybe something like Database would be a better name. Continue reading

LINQ and the AutoCAD .NET API (Part 7)

This is the seventh in a series of posts on LINQ an the AutoCAD .NET API. Here’s a complete list of posts in this series.

Welcome to part 7 of LINQ and the AutoCAD .NET API. It’s been a while since my last post. From now on I try to write new posts on this series every two weeks, but don’t pin me down on this…^^

In the last post we extended the GeneralHelper class to support write operations. In today’s post we have a look on how we can add a convenient way to create new AutoCAD objects and add them to the database. And be prepared, there’s a lot of code in this post. Continue reading

LINQ and the AutoCAD .NET API (Part 6)

This is the sixth in a series of posts on LINQ an the AutoCAD .NET API. Here’s a complete list of posts in this series.

This is part 6 of our series on LINQ and the AutoCAD .NET API. Currently the GeneralHelper class only support read operations. If we perform a write operation on one of the objects we pulled out of the database, we get an exception. In this blog post we want to correct this behaviour. Continue reading

LINQ and the AutoCAD .NET API (Part 5)

This is the fifth in a series of posts on LINQ an the AutoCAD .NET API. Here’s a complete list of posts in this series.

In today’s post we want to have a look at some further objects that easily can be made queryable. The model space is probably the first of such objects that comes to mind. So what’s the standard way to access the model space? Continue reading