icon

Foro de Soporte Allplan

Create assemblies


Dear all,

I am currently trying to create a set of specifically named assemblies using "AllplanPrecast.AssemblyGroupElement" after selecting multiple components of an imported .ifc model using "MultiElementSelectInteractor()"

Unfortunately, I have not been able to do it. I am currently trying to follow the script example "AssemblyGroupPlacement". Please check the enclosed script . The script runs without throwing an error, but the created assembly is not listed in the objects palette.

Is this achievable with AllplanPrecast.AssemblyGroupElement?
Is the fact that I am working with an ifc model an issue here?

Looking forward to hearing from you

Cheers,

Adjuntos (1)

Type: text/x-script.python
Descargado 930 veces
Size: 5,16 KiB

Show most helpful answer Hide most helpful answer

Hi,

attaching scripts is not allowed, you have to change the extension to .txt for example.

Since I cannot look into the script, IDK what you are trying to put into the assembly. AFAIK, AssemblyGroup requires three lists:

  • one consisting of FixtureElement objects
  • one consisting of ReinforcementElement objects
  • one consisting of LibraryElement objects

What you get from the selection is a BaseElementAdapterList. You would need to extract all these objects from BaseElementAdapterList using GetElements. But:

  • You cannot get a LibraryElement from an BaseElementAdapter. LibraryElements can only be created new based on path to a .sym file
  • I think you can get a FixtureElement, but I am not sure if all the information are read
  • Getting a BarPlacement (which is ReinforcementElement) object is possible but tricky

So please provide more information. Maybe example drawing file would be helpful.

Cheers,
Bart

11 - 12 (12)

Hi Bart,

Happy to know you are working on this already.
I am always happy to help.

Best Regards,
Nery

Cita de: bmarciniec
Hi,
the functionality of creating an element group (which during the export to IFC is converted to an IfcElementAssembly) out of existing elements via Python API is in our backlog. Our plan and goal is to implement it for ALLPLAN 2027.
Please note, that this is currently only the plan, which can change at any time - you should not make any business related decision based on the above statement.
BTW, thanks for your use-case explanation - that helped us a lot to plan and build the right thing!
Best regards,

Bart


Should not, but we can ofcourse. And it happens unfortunately.
11 - 12 (12)