Nuget package with extension methods to the Tekla Structures Open Api assemblies i.e methods ModelObjectEnumerator.ToList()
Package install itself as source codes so there are no problem with cross dependencies.
https://www.nuget.org/packages/TeklaOpenApiExtensionMethods/
PM> Install-Package TeklaOpenApiExtensionMethods
var model = new Tekla.Structures.Model.Model();
var allObjects = model.GetModelObjectSelector().GetAllObjects().ToList();
var model = new Tekla.Structures.Model.Model();
var beams = model.GetModelObjectSelector().GetAllObjects().ToList<Tekla.Structures.Model.Beam>();
var selector = new Tekla.Structures.Model.UI.ModelObjectSelector();
var selectedObjects = selector.GetSelectedObjects().ToList<>();
var selector = new Tekla.Structures.Model.UI.ModelObjectSelector();
var selectedAssemblies = selector.GetSelectedObjects().ToList<TSM.Assembly>();
var dh = new Tekla.Structures.Drawing.DrawingHandler();
var currentDrawing = dh.GetActiveDrawing();
var views = currentDrawing.GetSheet().GetViews().ToList<Tekla.Structures.Drawing.View>();
Tekla.Structures.Drawing.View view;
(...)
var sectionMarks = view.GetObjects<TSD.SectionMark>();
-
Fork this repository
-
Create new branch
-
Add your code
-
Make pull request to the branch "master"