We want to:
- select an object,
- and we need the user to understand that it has been selected.
This is done through: (i) highlighting it, and (ii) via a display prompt.
Don Norman elaborates on the need to alert users
We want to:
This is done through: (i) highlighting it, and (ii) via a display prompt.
Don Norman elaborates on the need to alert users
Please review the MatrixFactory.ByCoordinateSystems Method in order to get the most out of this post. Particularly:
Returns a coordinate transformation matrix defined by two coordinate systems. With the returned matrix points can be transformed from the first coordinate system to the second coordinate system. The ByCoordinateSystems method is meant for transforming points between coordinate systems asked in the same work plane.
//
Here is the problem: we want to filter all parts which have the part position (or "part mark") of "p/2".
How can we do this programmatically?
Check out this code snippet - it assumes you have set up your references and are ready to go!
this.model = new Model();
if (model.GetConnectionStatus())
Source: https://paulbourke.net/geometry/pointlineplane/
[CommandMethod("TestCoordinates2")]
public void TestCoordinates2()
{
Point3d p0 = new Point3d(0, 2, 0); // plane points
Point3d p1 = new Point3d(0, 2, 1); // plane points
Post build plugin in visual studio.
Watch out - change the version ID to suit your Tekla version!
set envDir=2022.0\Environments\common\extensions\TestWPFBeamPlugin
set pluginsDir=2022.0\nt\bin\plugins\TestWPFBeamPlugin
set tsDirA=D:\Program Files\Tekla Structures\
#!/bin/bash
echo 1 > /proc/sys/net/ipv4/ip_forward # must be enabled for the forwarding to work
iptables -F
iptables -t nat -F # flush the nat table
iptables -t mangle -F
iptables -X
The Tekla API is not very open - one of my peeves is that you cannot access a drawing's revision number, because it is not exposed. Not to worry, you can access it with a hack:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
This is a console application.
You will need to install the approriate dlls from Tekla. This can now be down via a Nuget package:
We want to select a single object in the model using a picker. Here is some sample code. You can of course, configure this to select model objects if you wish.
using System;
using System.Collections.Generic;