Skip to content

A "Framed Roof" is simultaneously a beam, a panel and a roof #343

Description

@usai-sylvain

To reproduce :

  1. Create a new Roof/Floor/Multilayer wall, Multilayer Floor, Multilayer Roof

Add / Architecture / Roof/Floor/Multilayer wall, Multilayer Floor, Multilayer Roof

  1. run the following script :
import cadwork
import element_controller as ec
import attribute_controller as ac


def main():
    ids = ec.get_active_identifiable_element_ids()
    for id in ids:
        print (id,"element type:", ec.get_element_type_description(id))
        
        print (id,"beam:", ac.is_beam(id))
        print (id,"panel:", ac.is_panel(id))
        print (id,"wall:", ac.is_wall(id))
        print (id,"floor:", ac.is_floor(id))        
        print (id,"roof:", ac.is_roof(id))

result on a Floor element :

1264585775 element type: Beam
1264585775 beam: True
1264585775 panel: True
1264585775 wall: False
1264585775 floor: False
1264585775 roof: True

Is that a feature ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions