| 207 | destination_zip.writestr(f"{self.topic.guid}/{ref_filename}", self.bim_snippet) |
| 208 | |
| 209 | def _save_reference_files(self, destination_zip: ZipFileInterface) -> None: |
| 210 | if not self.header: |
| 211 | return |
| 212 | if not self.header.files: |
| 213 | return |
| 214 | for ref in self.header.files.file: |
| 215 | if ref.is_external or not ref.reference: |
| 216 | continue |
| 217 | real_path = self._topic_dir |
| 218 | for path_part in ref.reference.split("/"): |
| 219 | real_path = real_path.parent if path_part == ".." else real_path.joinpath(path_part) |
| 220 | destination_zip.writestr(real_path.at, self.reference_files[ref.reference]) |
| 221 | |
| 222 | def add_viewpoint(self, element: entity_instance) -> VisualizationInfoHandler: |
| 223 | """ |