Category: Autocad .Net API
-
How to insert Reference Models into Tekla
Wouldn’t it be handy if we could pro grammatically insert reference models into Tekla? Well you can now do so quite easily. And if you want to see a video demonstration, here it is: Here is the code which does the hard work. (You will of course add the appropriate references and directives):
-
Stair Outline Routine (AutoCAD .net + Code attached)
We continue delving into our discussion of stairs. The boss hates it when I do things like this – releasing code to the public. But it’s too good not to share. Below is a routine you might find useful. We use it to model stairs – it’s super fast, and efficient. It allows us…
-
Why do we set copy local to false?
When you first get into .net API programming – for AutoCAD plugins, you learn this cardinal rule: make sure the three AutoCAD dlls you refer to have copy local set to false. Why exactly is this the case? I couldn’t find a better answer than the one offered by Fenton Webb. Here it is…
-
Block Definitions and Block References Explained
What is a block? What is a block reference? And what is the difference? Let’s use an analogy to help illustrate the concept. *Birth certificates are like your block table record, photocopies of your certificate are like block references.** (A) Block Definitions Imagine you have a really important document like your GREEN card/birth certificate etc.…
-
Tekla–AutoCAD: Interoperability Tool
Tekla – AutoCAD Interoperability Tool Tekla licenses are pricey. About $30k + maintenance per license. That’s expensive. And if you had 10 licenses, or perhaps even 50 licenses, what if I told you that you needed: 30-50% less licenses than you currently hold? That’s a huge cost saving. If you only need 5 licenses, then…
-
Bubble Deck and Panel Detailing Tooling – AutoDimension Metal Curves
Hi folks Demo of the Auto-dimension metal curve tool Auto Dimensioning Metal Curves from Tek1 on Vimeo. This post is a demonstration of the powerful tooling Tek1 has at its disposal. This will save you, the client: time and incorrect dimensions. This tool dimensions complex metal curves in a fraction of a second.…
-
How to obtain a small offset around a polyline? (AutoCAD .net API)
Offsets from a panel are used extensively in detailing. Here’s how to do it – simple, no? See below: DBObjectCollection _offsetPolylines = polylineInstance.GetOffsetCurves(25); // offsets the polyline by 25 mm // the object collection should really have only one item in it: a polyline offseting the original by 25mm.
-
How to return a selection of Objects to the user (AutoCAD .net)
Here’s the code: And that should select any objects that you want to select. You’ll have to put it in an array though. A handy hint which can save you a bit of grief.
-
The importance of identifying the assumptions Behind Every Problem
My estimable colleague Rafik Ben made a blog post concerning a problem. For reference, here it is: http://routetomastery.com/blog/2017/01/08/has-pair-with-some-problem/ So what’s so good about Rafi’s problem? Well like most things in the world, the problem, is not the actual problem. When it comes to computer science, the *actual* problem lies in identifying or understanding it. And…
