| 1 |
@context |
| 2 |
Feature: Context |
| 3 |
Manages geometric representation contexts and subcontexts |
| 4 |
|
| 5 |
Scenario: Add context |
| 6 |
Given an empty IFC project |
| 7 |
When I press "bim.add_context(context_type='Model', context_identifier='', target_view='', parent=0)" |
| 8 |
Then nothing happens |
| 9 |
|
| 10 |
Scenario: Add a subcontext |
| 11 |
Given an empty IFC project |
| 12 |
When the variable "parent" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext', include_subtypes=False)[0].id()" |
| 13 |
When I press "bim.add_context(context_type='Model', context_identifier='Body', target_view='MODEL_VIEW', parent={parent})" |
| 14 |
Then nothing happens |
| 15 |
|
| 16 |
Scenario: Remove context |
| 17 |
Given an empty IFC project |
| 18 |
When the variable "context" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext')[0].id()" |
| 19 |
And I press "bim.remove_context(context={context})" |
| 20 |
Then nothing happens |
| 21 |
|
| 22 |
Scenario: Enable editing context |
| 23 |
Given an empty IFC project |
| 24 |
When I press "bim.add_context(context_type='Model', context_identifier='', target_view='', parent=0)" |
| 25 |
And the variable "context" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext')[0].id()" |
| 26 |
And I press "bim.enable_editing_context(context={context})" |
| 27 |
Then nothing happens |
| 28 |
|
| 29 |
Scenario: Disable editing context |
| 30 |
Given an empty IFC project |
| 31 |
When I press "bim.add_context(context_type='Model', context_identifier='', target_view='', parent=0)" |
| 32 |
And the variable "context" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext')[0].id()" |
| 33 |
And I press "bim.enable_editing_context(context={context})" |
| 34 |
And I press "bim.disable_editing_context()" |
| 35 |
Then nothing happens |
| 36 |
|
| 37 |
Scenario: Edit context |
| 38 |
Given an empty IFC project |
| 39 |
When I press "bim.add_context(context_type='Model', context_identifier='', target_view='', parent=0)" |
| 40 |
And the variable "context" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext')[0].id()" |
| 41 |
And I press "bim.enable_editing_context(context={context})" |
| 42 |
And I press "bim.edit_context" |
| 43 |
Then nothing happens |