How to add Tekla Wall Position to Brep?

I am creating a script to re-create my wall geometry for several different analyses. I have working on the script to get the geometry from a Brep. I would like to include the wall position from the model. I am using the “Convert to Brep” tool to get the geometry. To find the wall position I can to use the “Convert to Beam” tool. To add the wall position to the Brep data tree seems to be difficult since the selection of the Brep will need to match the wall positions. In my simple case (2 panels) that is not complicated, but it will be common to select 20 or more wall segments for any analysis. Is there a way to get the wall position and Brep information in a single operation?

Thank you

No code and geometry posted :question: :man_facepalming:

1 Like

Please elaborate. Probably there is a nice way to do that but it is unclear what you mean. Also note the point of @Joseph_Oster about sharing the relevant GH code and some screenshots of the subject.

1 Like

I did not include the code as I think this is for Sebastian. It is more to do with the Tekla Live link. I prefer to select only the parts once, but I cannot see a method to get the part position given walls are modelled as beam elements in Tekla. The beam element does not have any of the opening geometry.

Brad, first of all, the above comments are correct. If you wish to get assistance from people freely volunteering their time it’s probably best to add as much information as you can (script etc),

I don’t think this has anything to do with Sebastian or the link. I’m going to take a stab at what I think your are after here and then you can correct me if I’m wrong.

It seems that you want to get the original BREP of the wall panel without the cuts, if that is the case I could do it by selecting RAW in the BREP conversion to exclude cuts etc. I would also use the Get Property component to retrieve the cast_unit number.

image

I do not see an option to internalize the Tekla data, and when I posted with Tekla commands others could not open open the file. It is a tekla question.

The cuts are the most important part. The Brep routine is working very well, and Joesph has helped get the script organized how I need. A little more work and that part of the GH script will be complete. The data I would like to add is available when I use the “deconstruct beam.” “Deconstruct Beam” shows the profile to be a simple rectangular profile and the cuts are not included, so I cannot start with that to get all the panel data I need downstream. I can select the walls as Breps and then select as beams to get the part position, but the pick order will be important then. That is something I could do, but others that I want to use this will get it wrong.

I don’t think there is a solution to this. Worst case I will add a wall number with a simple counter and include an option in the python script to allow the user to change numbers manually.

Hi Brad,

If this is just about matching the data trees you should use a single Model Object (or Beam) param to do your selection from the Tekla model, as Oskar did in his example. Then feed that data to the deconstruct and convert components.

Now the two streams are in sync. The output from the Convert to Brep component is a tree, since you might get more than one brep out of a single model object e.g. if it’s been cut into two pieces. But if you’re positive you’ll only have one brep per model object you can use the Trim Tree component (or just flatten the data) and then the items in the two lists will match up in the end.

Cheers,

-b

That is exactly what I wanted. I will have up to 40 panels in an elevation that I want to send to an analysis, so this is very helpful to maintain their correct assembly marks. By adding this step our report titles will match the wall marks assigned by others.

What is the correct method to post gh code with tekla objects if the question is related to tekla? Joesph explained the correct method to filter out the unimportant part of an earlier question, but I did not see how to do that here so I did not include any code.

Do you have a training suggestion for this type of work? I am waiting for Kris’s training, but I was looking for others. I have found many that focus on ridiculously complicated things that are not practical to build except for a very small number of clients. I am not interested in wasting time on that. Maybe it is a case of working thru each dialog to understand what each do?

Thank you.

1 Like

Good to hear!

If your example relies on extracting (non-geometric) data from specific Tekla objects from the model, and those have not been generated by Grasshopper, the only way is to include a (preferably small) Tekla model that contains those input objects. A copy of the .db1 file is enough.

You know Tekla already, so I would really focus on just some Grasshopper tutorials and tips and tricks. There’s plenty online including Kris’ free starters. E.g. data trees is a topic that’s tricky to wrap your head around initially but oh-so essential.

For the GH-Tekla link this FAQ is worth taking a look at if you haven’t done so already:

Cheers,

-b

1 Like

Thank you. I have worked thru your examples and created my own fully parametric buildings. That aspect is not all that different from creating CC’s, which I do frequently. At this point the struggle is working with the data streams to test variables and get the data organized how I need. I will keep working away. AI works well for coding, but is quite poor for GH.