How to get SIMILAR_ASSEMBLY's

Hi All

can any one explain me here on how to extract “SIMILAR_ASSEMBLY” data from model ?

Can this be done through grasshopper or requires C# to get that info over to grasshopper.

Please guide me to right direction.

Regards

Hi Any one ??

Hi Darozas, there’s this method:

Tekla.Structures.Model.Operations.Operation.GetSimilarNumberedObjects(selectedObject);

that can be put into a C# component.

Thanks @sebastian.lindholm ,

Got it sorted. Sort off

But results coming in incorrect

Have duplicate entries its pulling not same assembly’s in

private void RunScript(object selectedObject, ref object a)
{
  // Cast the input object to the specific Tekla ModelObject type
  var modelObject = selectedObject as Tekla.Structures.Model.ModelObject;

  // Check if the cast was successful and the object is not null
  if (modelObject != null)
  {
    // Assign the resulting collection to output 'a'
    a = Tekla.Structures.Model.Operations.Operation.GetSimilarNumberedObjects(modelObject);
  }
}

Regards