We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10cb802 commit 9cbd563Copy full SHA for 9cbd563
declaracad/occ/exporters/step/exporter.py
@@ -103,7 +103,10 @@ def export(self, shapes: list[Shape]):
103
104
if self.description:
105
tp = HeaderSection_FileDescription.get_type_descriptor_()
106
- entity = step_model.HeaderEntity(tp)
+ if step_model.HasHeaderEntity(tp):
107
+ entity = step_model.HeaderEntity(tp)
108
+ else:
109
+ entity = APIHeaderSection_MakeHeader(0)
110
entity.SetDescription(create_hascii_list(self.description.split("\n")))
111
112
tp = HeaderSection_FileName.get_type_descriptor_()
0 commit comments