Git Product home page Git Product logo

grasshopper-tekladrawinglink's Introduction

Grasshopper-Tekla Drawing Link

Set of Grasshopper components for interacting with Tekla drawing area.

Based on great job done by Sebastian Lindholm from Trimble available in Tekla Warehouse.

Originally, drawing part was not under the scope of link. I hope that as a Tekla community we can fill this gap - LetsConstructIT!

Installation

You have to point .gha file with drawing components to Rhino. It can be done in exactly same manner as the Model link. List of available releases of Drawing link can be found at Releases section.

Video instruction can be found on: YouTube

License

Grasshopper-Tekla Drawing Link is provided as-is under the MIT license. For more information see LICENSE.

Available components

  • Params
    • Drawing Object selects drawing object
    • Drawing Part selects drawing part (which can be mapped to model object)
    • Drawing Point selects point in drawing
    • Drawing Colors combobox for Tekla drawing colors
    • Part View Types combobox typical part view types
  • Drawing
    • Create A Drawing creates assembly drawing of model object
    • Create CU Drawing creates cast unit drawing of model object
    • Create GA Drawing creates general arrangement drawings
    • Active Drawing returns currently opened drawing
    • Close Drawing closes active drawing
    • Open Drawing opens pointed drawing
    • Drawing Size returns size of pointed drawing
    • Drawing Source returns model object which is the parent of drawing
    • Views in Drawing Source lists views inside drawing
    • Delete Drawing deletes drawing
  • Drawing List
    • All Drawings lists all drawings in model
    • Selected Drawings lists only selected drawings from drawing list
    • Related Drawings gets drawings related to model object
  • View
    • Model View creates arbitrary model view (2D or 3D)
    • Part View creates part view (Front | Top | Bottom | Back or 3D)
    • Detail View creates detail view
    • Section View creates section view
    • Related Objects gets view childs - drawing objects
    • Related Views returns section/detail views connected to provided view
    • View Frame Geometry returns size and anchor points of view
    • View Properties Geometry returns view properties
    • Move View move view with specified vector
    • Refresh View refresh view (restore Tekla output)
  • Parts
    • Drawing to Model Object converts drawing part to its model counterpart (enables inter Drawing/Model workflows)
    • Father View returns view where provided drawing object resides
    • Select Object selects drawing object, used before running drawing macros
    • Selected Object gets selected drawing objects
    • Delete Objects deletes drawing objects
    • Modify Part modifies drawing part
  • Geometry
    • Transform Point to View transforms point from global coordinate system to pointed view coordinate system
    • Transform Point to Local transforms point from global coordinate system to local coordinate system
    • Transform Point to Global transforms point from local coordinate system to global coordinate system
  • Attributes
    • Line Type Attributes setting line type and color
  • Misc
    • Run Macro runs model or drawing macro already saved to file or created ad-hoc (right click to select mode)
    • Get COG return center of gravity of provided model or drawing part
  • Mark
    • Level Mark inserts level mark
  • UDA
    • Get UDA get user defined attribute for drawing object
    • Get all UDAs get all user defined attributes for drawing object
    • Set UDA set user defined attributes for drawing object
  • Plugin
    • Picker Input Type drawing plugin atomic picker input
    • Picker Input set of atomic picker inputs
    • Plugin creates drawing plugin

grasshopper-tekladrawinglink's People

Contributors

olszewski-grzegorz avatar klausigma avatar

Stargazers

MoEzz91 avatar Lucas Epp avatar  avatar haiziyan avatar  avatar Ted Pringle avatar  avatar Trung VU DUY avatar  avatar  avatar  avatar  avatar  avatar huzi avatar  avatar  avatar  avatar Ahmad Mokhtar avatar  avatar  avatar  avatar  avatar  avatar  avatar Mahesh Ananth Kiron Kannan avatar  avatar  avatar  avatar  avatar Sebastian Lindholm avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Oskar avatar Henri Kiviniemi avatar László Keresztesi avatar  avatar Denis.A.Shmelev avatar  avatar  avatar  avatar  avatar  avatar Tilman Reinhardt avatar

Watchers

 avatar  avatar  avatar Oskar avatar László Keresztesi avatar  avatar  avatar  avatar Henri Kiviniemi avatar

grasshopper-tekladrawinglink's Issues

Feature request: Rebar group dimensioning

Hi Grzegorz, thank you for the great workshop you had :).
Now that the rebar line position feature has been added, I would like to request a function to add rebar dimensioning as well. We need the rebar dimensioning to show the range of the rebar group and other info.
It cannot be done in macro since we have to click to provide the location. This is a lot of manual work since each bar group needs to be click to add its dimension.
image

Orient sections

Hi,

I am having issues getting the correct orient of a section view.

Orientation

I've tried both View CS and Display CS, and I get the same Orient.

I tried all setting I know from Tekla but I get the same issue every time.

The script takes a view created by Tekla and creates a section view.

Section Script

Thanks!

Drawing object parameter bug

Hi,
there is some bug with drawing object parameter. I couldn't select it with multiple selection but right now I can't even select/move or delete this component.

20240426084402.mp4

Name Parameter access

Hi All

Thanks for your astonishing work!!! Well done.

Can you access these parameters ?
image

Regards

FindVisibleEdges throws object null exception.

When using this component in Rhino 8, it throws an exception and doesnt work.

I built the project from source and the problem seems to be at line nr. 23 in FindVisibleEdgesComponent.cs.
"curve.Simplify()" method returns null curve, which causes an exception.
If i remove the line the component works fine, but probably more permanent solution is needed.
Maybe something like

Curve tempCurve =  curve.Simplify(CurveSimplifyOptions.All, RhinoDoc.ActiveDoc.ModelAbsoluteTolerance, RhinoDoc.ActiveDoc.ModelAngleToleranceRadians);
if(!tempCurve is null) curve = tempCurve;

View label extract

I was trying to use the view type and view name to extract all the similar views from different drawings. I realized that the name in GH doesn't match with what I have in the drawing space. I think it was the original name from when it was created and became its internal name. It's hard to tell which view is which with this type of name, so I would like to request a way to extract the view label value of the current view.
image
image

Grasshopper Application | Stay on Top

Hello Grzegorz,

One issue I've come upon is just a UI issue. It would be great if your application can - Stay on top. Running the application has not been a problem, but it is hectic trying to always make it come back into the window.

Can't use some components

Hi, I hope this is the right place to post. I'm using Tekla 2021 and 2022 and I've encountered this issue for both versions. The same errors showed up for Arrow/ Font/ Mark/ Text Attributes. Other Attributes definitions work fine. Is this a known problem?
image
image

Issue 1. Objects from view only visible mode missing elements. Issue 2. Rebar attributes use first value by default

I found two issues relating to reinforcement in drawing but maybe they apply for other elements too. I can't post the model so I took some screenshots of the issue. I have this section view.
image

I'm using the Objects from view definition to get the drawing reinforcements in this view.
image

The All objects mode worked as expected and got all the reinforcements (changed to red lines in the pic)
image

And when I used Only Visible mode, it's missing 1 reinforcement element (1 is still green)
image

I've tested with some other similar section views and I got the same issue. One view couldn't find any reinforcement with only visibility mode despite being visible on the view.

Another issue is the rebar attribute use the first value by default if there's no input. I have not locally defined any values. I was expecting the attributes to only change according to the input and any attributes without inputs would remain the same. Is this by design perhaps?
image
image
image
image

Hide objects on View

Hi Greg. Thank you for your work on tekla drawing link. Its amazing.
I want to make scripts that run on selected drawing and hides specified parts from views.
How can i do the function Hide object from View/Drawing.

Different sizes from Tekla

Hi!
This is a very good set of commands for Grasshopper.
Tell me please: do you plan to add a Curved dimension (orthogonal reference lines), Curved dimension (radial reference lines), Radial dimension and others dimensions in the future?

View Attributes Section View

Hi,
My issue apears when I try to create section views using Section View component from Model View (In this case Top View).
When i set view properties input for Attributes Name in Model View (MV) component it overrides my View Attributes (VA) input in Section View* component.

I can't set different Detailed object level settings for my section views becasue View Properties template is taken from my Top View.

image
image

Imperial unit

Hi Grzegorz, amazing work and webinar!

Do you plan to implement imperial unit support?

image

I did few test and it is only working with millimeters.

Thanks!

Rotate view

Hi there. I would like to request a feature for rotating view in drawing. I would like to rotate the view so certain elements in view is horizontal

Modify View

Hi Greg,
Please add component to control and modify View Attributes in Drawing
In your View Tab I see View Properites
How we can get all Tags attributes and can not modify the view attributes
Thanks
image

EXAMPLE FOR DIM NEEDED

Could you provide some examples, such as annotating a steel plate or concrete slab with a special-shaped cross-section?
more .gh files needed
THK!!!

in addition, if your plugin loads with errors, please right-click on the file and view the bottom of the properties menu.
image

Example for Marks

Hi Me again.

Just been through all of your videos and still cant figure out on how to use "Part Mark"

Can you please explain what do i require to input in "Attr"

image

Regards

Curved section view

Hello!
Please tell me, can you add a "Curved section view" component to Grasshopper-TeklaDrawingLink in the future? It is very important for me

Do you think it is possible to create a component that would make a cut along a curve in Tekla? That is, not in an arc, as Curved section view does. I mean a cut along a complex curve, when the curve consists of many arcs and straight sections

Mark creation

Hi

I have created functions that should create marks on reinforcement but it seems to work somewhat irregularly. I have created different pre-defined mark settings, but all markings are created with one marking setting even if I have specifically determined that each marking uses different setting. And sometimes no marks are created even if the input can recognize reinforcements. I think I'am using the tool incorrectly but could you give an example on how this component should be used?

image

Objects from view (all objects) for multiple views

I'm using the Objects from view definition with getting all views in the drawing. The key list and the drawing objects doesn't match with each other. The number of drawings match the tree structure of the keys but not with the tree structure of the drawing objects.
image

The drawing objects seem to be organized by key but is missing a lot of items.
image

DimLine creation

Hi

I was following your youtube tutorial Dimensioning part I. I inserted all the three needed inputs but my component keeps adding two dimension lines for some reason. I had to add python command to delete the second one. The Dim component seems very simple as it self but I don't understand why it keeps adding the duplicate dimension line.

Does anyone happen to understand the reasoning behind this.

The component receives 1 view, 2 points and 1 line.

image

Thanks for the updates by the way. Great work and amazing tool that I have already made great progress with in my project.

Rebar group visible line and location

Hi amazing updates so far. I have a request to extract rebar group visible lines from drawing and then be able to modify its location if the visibility mode is customized. It's very time-consuming move the line for each group.
image

Loop example

Hello. Could you shed more light on the loop component and how it could be used?

Again, thanks for the continuous updates on this tool! Very much appreciated!

image

Single-part drawings creation

Hi Grzegorz!

Is there any way to create single-part drawings using your Drawing Link? I cannot find such component. If there's any walkaround that problem, please let me know, if not - that would be useful to implement in the future :)

Best regards,
Adam Bednarek

SelectedDrawingsOnList Component

I've created a script that creates dimensions for a simple single-part drawing, but one that Tekla itself cannot handle properly. When I use "Active drawing" component as a component that indicates which drawing is to be edited, everything works as intended. However, due to the fact that I've got hundreds of drawings to edit, I've tried using "Selected Drawings on List" component to speed things up. It does create some dimensions to correct points, however their location is all over the place. The location of dimension line is define relative to the part - for example: horizontal dimension is located at an extreme y coordinate of a part + some fixed value (let's say 200). As far as dimensions create, the script gives an error on the output - dimension line component - "Object reference not set to an instance of an object", while not printing any error "in the middle". If it's helpful for you to have a .gh file, hit me up and I'll share it.

Text Alignment

Hi,
first of all, amazing job with this TeklaDrawing Link! This is an absolute game changer.
I have an issue with text right alignment. I can't find any way to input this kind of parameter, but in the output there is a default value Alignment: Left. Is is possible to change alignment with your plugin?
image

multidrawing is needed

i hava more then100 drawings,which maybe have the same section but have different length or cut 45°。
i wanna to sort them by uda,creat a multi drawing,so that, i can sort them by move the different in to a different distance。

Grasshopper Application testing

Hi Greg,

Grasshopper Application testing, observations:

  1. File path input not showing up in UI in Tekla (comparing to Tekla Component from Seb)
  2. Text from textboxes not wrapping in UI in Tekla (comparing to Tekla Component from Seb)
  3. No Apply button so apply current settings, if you accidently close application you have start over from scratch unless you saved
  4. No "Properties" on right click.. not sure if it matter, just adding it as an observation, might just be a Tekla thing anyway.
  5. Dropdown lists are longer than they need to be? (comparing to Tekla Component from Seb)
  6. Application hides behind the Tekla main window when selecting or making the Tekla main window active. Should probably stay on top of Tekla window.

image
image
image

Installation does not work

Hello!

I have Rhino 7 and Tekla 2021. When I try to install any of the releases and drag them on the grasshopper canvas, then nothing happens. Nothing shows up in the libraries folder either.

Rebar dimension mark

Hi grzegorz! First of all I want to thank you for the extraordinary work you are doing. Then I would like to ask you if there is a way to insert dimension marks for reinforcement bars in the drawings or if you plan to implement this functionality. I would also like to ask you if there is a way to filter the reinforcement bars by position number. For example, if I had several groups of reinforcement bars and wanted to create a dimension mark only for reinforcement bars with position numbers starting with "V", is it possible to do this?
Thank you!

CU View attributes not recognized

Thanks Greg for your work and great plugins
New work era have began :)

image
I am testing generating CU view with preset settings, but grasshopper anyway return view with wrong settings.
Preset settings in green and how the view should look if I generate it in Tekla drawing mode.
Can you check please what could be an issue?

Feature request: Moving existing drawing object

Hi, I was looking for a way to move a lot of marks in view but I couldn't find a way. Will there be a feature to edit the placing location of existing drawing objects like marks, dimensions, text symbols?

Only Rhino 8

I'm not sure if this is a bug or an issue with the company PC, but the application doesn't work with only Rhino 8 installed. After installing Rhino 7, everything works fine, and I can then switch to Rhino 8 from the drop-down menu without any issues.

About bake to tekla

the official version, bake to tekla by right click。

i found your new version used this

if it's possible to create the single Battery

,so that we can create the conpenment automatic by change value。

without right click

No Issues - Looking for an Update!

Just wanted to commend you for the hard work in putting these GH components together for the community. I've personally, made great use of them to automate many of my tasks.

Thank you for the hard work! Is there anything in store for this work? I know that you've been working with Trimble Connect's API.

Wrong view frame rotation in different drawings

I'm filtering all the views from different drawings of the same view type (for example TopView) and the view and drawings frame geometries are extracted. However, the orientation of the view frame looks wrong. The definition use the same rotation as that of the current drawing (see pictures). I've tried it for different view types and models and still the same behavior so I think this is a bug
image
image
image
image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.