Assign load to structure [SOLVED]

Hi Marco

I’m wondering if there’s a way to assign loads to a specific element in Grasshopper:

Hi @AndreiM !

In a coding environment, you can get the geometry information using someof the data from the elements their self.

Can something like the following work for your case?

Hi Marco

I understand what you are saying, but what I would like to do is the following:

  1. I have some walls and a cover used for the vertical load distribution:


    Therefore I would like to make sure that my vertical loads are on the cover:

  2. In the same model I would like to have a fictitious shell used only for the horizontal load distribution:


    For this I would like to make sure that the loads are applied to the shell and not cover:

Withouth doing this I cannot make sure that the loads are acting on the cover or the plate:

Let me know if it makes sense :smiley:

Hi @MarcoPelle

I have a follow-up question regarding the assigned loads topic we discussed earlier.

In the .struxml file generated by FEM-Design, I noticed that when a load is assigned to a structure, there is an option available.

However, when I attempt to modify this property using Python, I receive an error stating that the line_load does not have this attribute.

You can easly change a load and add a comment or such:

But I cannot find the Assign structure attribute (print(dir(load)):

[‘Action’, ‘CaselessUniformForce’, ‘Comment’, ‘ConstantLoadDirection’, ‘Direction’, ‘Edge’, ‘EndForce’, ‘EndLoad’, ‘EntityCreated’, ‘EntityModified’, ‘Guid’, ‘IsCaseless’, ‘LastChange’, ‘Load’, ‘LoadCase’, ‘LoadCaseGuid’, ‘LoadProjection’, ‘LoadType’, ‘Normal’, ‘StartForce’, ‘StartLoad’, ‘ToString’, ‘UniformForce’, ‘UniformMoment’, ‘VariableForce’, ‘VariableMoment’, ‘class’, ‘delattr’, ‘doc’, ‘format’, ‘getattribute’, ‘hash’, ‘init’, ‘new’, ‘reduce’, ‘reduce_ex’, ‘repr’, ‘setattr’, ‘sizeof’, ‘str’, ‘subclasshook’, ‘_constantLoadDirection’, ‘_lastChange’, ‘_loadCase’]

I would really appreciate your insights on whether there is a way to apply this property to a load with python/C#.

Looking forward to your thoughts!

1 Like

Hi @AndreiM

Working on it :slight_smile:

We can hopefully fix the issue for next release which is expected end of March.

1 Like

@AndreiM
24.1.0 will give you access to the property “assigned_structure” through python/c#

We can also consider extending the Grasshopper component at some point if needed :slight_smile:

1 Like