|
1 | 1 | Events always have a `name` and a `data` attribute. The contents of those attributes depend on the type of the event. |
2 | 2 |
|
| 3 | + |
| 4 | +## DocumentCreateCheckEvent |
| 5 | +`csfunctions.events.DocumentCreateCheckEvent` |
| 6 | + |
| 7 | +This event is fired when a user tries to create or copy a document. Raising an exception will prevent the creation. |
| 8 | +The event is triggered before any field calculations are performed. |
| 9 | + |
| 10 | +**Supported actions:** |
| 11 | + |
| 12 | +- [AbortAndShowErrorAction](actions.md#AbortAndShowErrorAction) |
| 13 | + |
| 14 | +**DocumentCreateCheckEvent.name:** document_create_check |
| 15 | + |
| 16 | +**DocumentCreateCheckEvent.data:** |
| 17 | + |
| 18 | +|Attribute|Type|Description| |
| 19 | +|-|-|-| |
| 20 | +|documents| list[[Document](objects.md#document)]|List of documents that are about to be created.| |
| 21 | +|linked_parts| list[[Part](objects.md#part)]|List of parts that belong to the documents.| |
| 22 | + |
| 23 | +## DocumentModifyCheckEvent |
| 24 | +`csfunctions.events.DocumentModifyCheckEvent` |
| 25 | + |
| 26 | +This event is fired when a user tries to modify a document. Raising an exception will prevent the modification. |
| 27 | +The event is triggered before any field calculations are performed. |
| 28 | + |
| 29 | +**Supported actions:** |
| 30 | + |
| 31 | +- [AbortAndShowErrorAction](actions.md#AbortAndShowErrorAction) |
| 32 | + |
| 33 | +**DocumentModifyCheckEvent.name:** document_modify_check |
| 34 | + |
| 35 | +**DocumentModifyCheckEvent.data:** |
| 36 | + |
| 37 | +|Attribute|Type|Description| |
| 38 | +|-|-|-| |
| 39 | +|documents| list[[Document](objects.md#document)]|List of documents that are about to be modified.| |
| 40 | +|linked_parts| list[[Part](objects.md#part)]|List of parts that belong to the documents.| |
| 41 | + |
| 42 | + |
3 | 43 | ## DocumentReleaseCheckEvent |
4 | 44 | `csfunctions.events.DocumentReleaseCheckEvent` |
5 | 45 |
|
@@ -86,6 +126,43 @@ This event is fired **after** an engineering change has been released. Raising a |
86 | 126 | |documents| list[[Document](objects.md#document)]|List of included documents.| |
87 | 127 | |parts| list[[Part](objects.md#part)]|List of included parts.| |
88 | 128 |
|
| 129 | +## PartCreateCheckEvent |
| 130 | +`csfunctions.events.PartCreateCheckEvent` |
| 131 | + |
| 132 | +This event is fired when a user tries to create or copy a part. Raising an exception will prevent the creation. |
| 133 | +The event is triggered before any field calculations are performed. |
| 134 | + |
| 135 | +**Supported actions:** |
| 136 | + |
| 137 | +- [AbortAndShowErrorAction](actions.md#AbortAndShowErrorAction) |
| 138 | + |
| 139 | +**PartCreateCheckEvent.name:** part_create_check |
| 140 | + |
| 141 | +**PartCreateCheckEvent.data:** |
| 142 | + |
| 143 | +|Attribute|Type|Description| |
| 144 | +|-|-|-| |
| 145 | +|parts| list[[Part](objects.md#part)]|List of parts that are about to be created.| |
| 146 | +|linked_documents| list[[Document](objects.md#document)]|List of documents that are referenced by the parts.| |
| 147 | + |
| 148 | +## PartModifyCheckEvent |
| 149 | +`csfunctions.events.PartModifyCheckEvent` |
| 150 | + |
| 151 | +This event is fired when a user tries to modify a part. Raising an exception will prevent the modification. |
| 152 | +The event is triggered before any field calculations are performed. |
| 153 | + |
| 154 | +**Supported actions:** |
| 155 | + |
| 156 | +- [AbortAndShowErrorAction](actions.md#AbortAndShowErrorAction) |
| 157 | + |
| 158 | +**PartModifyCheckEvent.name:** part_modify_check |
| 159 | + |
| 160 | +**PartModifyCheckEvent.data:** |
| 161 | + |
| 162 | +|Attribute|Type|Description| |
| 163 | +|-|-|-| |
| 164 | +|parts| list[[Part](objects.md#part)]|List of parts that are about to be modified.| |
| 165 | +|linked_documents| list[[Document](objects.md#document)]|List of documents that are referenced by the parts.| |
89 | 166 |
|
90 | 167 | ## PartReleaseCheckEvent |
91 | 168 | `csfunctions.events.PartReleaseCheckEvent` |
|
0 commit comments