Category: Autocad .Net API
-
c# .Net Autocad plugin – “Hello world” Walk through
There’s not much out there in the way of introductions. You’d have to wade through some manuals and it can be tedious. A simple walk through of how to get started. You would do well to record it at 1.5-x2 playback speed. Autocad .net c# Plug in – Hello World Example from Tek1 on…
-
Checking the type of an Entity? (AutoCAD .net)
Ok, so you’ve got a bunch of entities in a collection. You only want to deal with circles. You need to iterate through the collection and consider only the circles. But how will you identify the circles from the other objects. Casting. You can cast Entity en = en as Circle And then you…
-
Get SelectionFilter by block Name
It is very common that you will need to create selection filters for different types of blocks. Why repeat yourself? There is a very simple utility that I wrote that is amazingly handy for solving this very issue. Best part is that it accepts wildcards, so you can search for block references which, for…
-
Convert ObjectID[] to ObjectIDCollections!
When dealing with selection sets we can obtain the object ids of the objects contained within. The method though, returns an array. But what if we want an ObjectIDCollection? We can simply pass the ObjectID[] array into the ObjectIDCollection constructor. Simple. The last thing you want to do is iterate through the…
-
Batch Processing AutoCAD drawings using AcCoreConsole and Script Pro 2.0
Batch Processing Using AcCoreConsole is now here. What is AcCoreConsole? It is a command line version of AutoCAD without a user interface. It allows us to batch process AutoCAD drawings super fast. Example: Let’s say I have 500 drawings. (This is a prime candidate for batch processing). Now let’s say I have to apply a…
-
Introducing AcCoreConsole
AcCoreConsole is AutoDesk’s brand new toy. It is basically a command line version of AutoCAD. It has no “User Interface”. That means that if you are a user, there are no menus to click on. No buttons. Nothing. You have to do everything via text. Via command line, like it was in the very beginning.…
-
Autocad Plug-in: Creating Order Forms Automatically
Normally creating order forms are a nightmare. How does everyone else create order forms? I have no idea how people do it. They would have to manually count/iterate through every single block which exists in the model space and simultaneously note down the parts’ associated panel number(s). They could do it on their PC, or…
-
Getting a Selection Set
This is a code block from my award winning BlockUtility static class.. But you would want to create the selectionFilter according to your own requirements – hence I have not used a static class for getting the selection filter. Apologies for the lack of readability in my code. The blog just kills the formatting. What…