@@ -311,7 +311,7 @@ def __build_export_file_location(self, location: Path | str | None, ext: str) ->
311
311
"""
312
312
return (Path (location ) if location else Path .cwd ()) / f"{ self .name } .{ ext } "
313
313
314
- def export_to_scdocx (self , location : Path | str | None = None ) -> str :
314
+ def export_to_scdocx (self , location : Path | str | None = None ) -> Path :
315
315
"""Export the design to an scdocx file.
316
316
317
317
Parameters
@@ -322,7 +322,7 @@ def export_to_scdocx(self, location: Path | str | None = None) -> str:
322
322
323
323
Returns
324
324
-------
325
- str
325
+ ~pathlib.Path
326
326
The path to the saved file.
327
327
"""
328
328
# Define the file location
@@ -334,7 +334,7 @@ def export_to_scdocx(self, location: Path | str | None = None) -> str:
334
334
# Return the file location
335
335
return file_location
336
336
337
- def export_to_parasolid_text (self , location : Path | str | None = None ) -> str :
337
+ def export_to_parasolid_text (self , location : Path | str | None = None ) -> Path :
338
338
"""Export the design to a Parasolid text file.
339
339
340
340
Parameters
@@ -345,7 +345,7 @@ def export_to_parasolid_text(self, location: Path | str | None = None) -> str:
345
345
346
346
Returns
347
347
-------
348
- str
348
+ ~pathlib.Path
349
349
The path to the saved file.
350
350
"""
351
351
# Determine the extension based on the backend type
@@ -360,7 +360,7 @@ def export_to_parasolid_text(self, location: Path | str | None = None) -> str:
360
360
# Return the file location
361
361
return file_location
362
362
363
- def export_to_parasolid_bin (self , location : Path | str | None = None ) -> str :
363
+ def export_to_parasolid_bin (self , location : Path | str | None = None ) -> Path :
364
364
"""Export the design to a Parasolid binary file.
365
365
366
366
Parameters
@@ -371,7 +371,7 @@ def export_to_parasolid_bin(self, location: Path | str | None = None) -> str:
371
371
372
372
Returns
373
373
-------
374
- str
374
+ ~pathlib.Path
375
375
The path to the saved file.
376
376
"""
377
377
# Determine the extension based on the backend type
@@ -386,7 +386,7 @@ def export_to_parasolid_bin(self, location: Path | str | None = None) -> str:
386
386
# Return the file location
387
387
return file_location
388
388
389
- def export_to_fmd (self , location : Path | str | None = None ) -> str :
389
+ def export_to_fmd (self , location : Path | str | None = None ) -> Path :
390
390
"""Export the design to an FMD file.
391
391
392
392
Parameters
@@ -397,7 +397,7 @@ def export_to_fmd(self, location: Path | str | None = None) -> str:
397
397
398
398
Returns
399
399
-------
400
- str
400
+ ~pathlib.Path
401
401
The path to the saved file.
402
402
"""
403
403
# Define the file location
@@ -409,7 +409,7 @@ def export_to_fmd(self, location: Path | str | None = None) -> str:
409
409
# Return the file location
410
410
return file_location
411
411
412
- def export_to_step (self , location : Path | str | None = None ) -> str :
412
+ def export_to_step (self , location : Path | str | None = None ) -> Path :
413
413
"""Export the design to a STEP file.
414
414
415
415
Parameters
@@ -420,7 +420,7 @@ def export_to_step(self, location: Path | str | None = None) -> str:
420
420
421
421
Returns
422
422
-------
423
- str
423
+ ~pathlib.Path
424
424
The path to the saved file.
425
425
"""
426
426
# Define the file location
@@ -432,7 +432,7 @@ def export_to_step(self, location: Path | str | None = None) -> str:
432
432
# Return the file location
433
433
return file_location
434
434
435
- def export_to_iges (self , location : Path | str = None ) -> str :
435
+ def export_to_iges (self , location : Path | str = None ) -> Path :
436
436
"""Export the design to an IGES file.
437
437
438
438
Parameters
@@ -443,7 +443,7 @@ def export_to_iges(self, location: Path | str = None) -> str:
443
443
444
444
Returns
445
445
-------
446
- str
446
+ ~pathlib.Path
447
447
The path to the saved file.
448
448
"""
449
449
# Define the file location
@@ -455,7 +455,7 @@ def export_to_iges(self, location: Path | str = None) -> str:
455
455
# Return the file location
456
456
return file_location
457
457
458
- def export_to_pmdb (self , location : Path | str | None = None ) -> str :
458
+ def export_to_pmdb (self , location : Path | str | None = None ) -> Path :
459
459
"""Export the design to a PMDB file.
460
460
461
461
Parameters
@@ -466,7 +466,7 @@ def export_to_pmdb(self, location: Path | str | None = None) -> str:
466
466
467
467
Returns
468
468
-------
469
- str
469
+ ~pathlib.Path
470
470
The path to the saved file.
471
471
"""
472
472
# Define the file location
0 commit comments