Skip to content

Commit

Permalink
Implement GenCAD import
Browse files Browse the repository at this point in the history
  • Loading branch information
martonmiklos committed Jul 30, 2023
1 parent a31399a commit 4b930ac
Show file tree
Hide file tree
Showing 2 changed files with 591 additions and 0 deletions.
7 changes: 7 additions & 0 deletions InteractiveHtmlBom/ecad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def get_parser_by_extension(file_name, config, logger):
return get_easyeda_parser(file_name, config, logger)
elif ext in ['.fbrd', '.brd']:
return get_fusion_eagle_parser(file_name, config, logger)
elif ext in ['.cad']:
return get_gencad_parser(file_name, config, logger)
else:
return None

Expand All @@ -39,3 +41,8 @@ def get_generic_json_parser(file_name, config, logger):
def get_fusion_eagle_parser(file_name, config, logger):
from .fusion_eagle import FusionEagleParser
return FusionEagleParser(file_name, config, logger)


def get_gencad_parser(file_name, config, logger):
from .gencad import GenCadParser
return GenCadParser(file_name, config, logger)
Loading

0 comments on commit 4b930ac

Please sign in to comment.