Category: .net (c#)
-
Select Bolts From Tekla Model Based on its Tolerance using WPF (Tekla Open API) + Code Snippets + Video Demo
This is a repost from our sister site – I needn’t repeat it here, but it’s something that I’ve worked on, and which we hope to utilize to a greater degree when working with Tekla. Anyways, you can get the full blog post if you click this link here. Thank you for stopping by. Video…
-
Returning Inside Using Statements (AutoCAD .net API)
While writing the above AutoCAD plug-in, I faced a small conundrum in the below code: The question for you is: will the transaction be disposed of, and committed given I have returned the bool before it reaches the end of the using statement? Will it be disposed? The short answer is yes. The transaction…
-
Finding Blocks “Colliding” with Shear Lig Points (AutoCAD .net, Precast – Bubble Deck)
It’s a common problem apparently. There are far too many block references placed a little too close to those pesky shear lig points. It takes discipline, but when you have 5-10 people all working on the same drawing, with different practices, it’s something that’s really easy to miss, but really expensive to discover. So I…
-
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):
-
Adding a Dimension to a Beam – Drawing – (Tekla Open API Tutorial)
This is an example of a hello world program which dimensions a beam. I found this code in the Tekla Drawing Samples folder. You can see it in action here: Let’s walk through it: We have to get the relevant drawing. Then we have to get the relevant part we want to dimension. Then…
-
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…
-
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…
-
What does GroupBy do – Simple Explanation (Linq)
What is GroupBy meant to do – Simple Explanation As always we will try to formulate a simple explanation of what is really going on. Airport Imagine you are at an airport and (as always) there is a queue and planes are delayed. See below. What you will immediately notice is that all of the…
-
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…