Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script for generating rotary coded switches. #400

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

MountyRox
Copy link
Contributor

Script for generating rotary coded switches.

Type Nidec series SH-7000

On branch mr_button_switch_nidec
Changes to be committed:

  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/NumberRing10.step
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/README.md
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_base_model.py
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_base_parameters.py
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_model_generator.py
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_nidec_SH70xx_models.py
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_parameters.py
  • new file: cadquery/FCAD_script_generator/Button_Switch_Nidec/main_generator.py

The step file is needed because the current FreeCAD version 0.18 does not support CadQuery 2.x and thus 3D text is not supported.
The numeric marking of the rotary coded switch is done by importing the 3D text as a step file.
As soon CadQuery 2.x is available in FreeCAD i will update the scripts and the step file can be deleted.

For screenshots of the models look at PR: KiCad/kicad-packages3D#734
The scripts were tested to run with FreeDAC 0.18 and 0.17

These are my first scripts for 3D model generation. I uses the files from the 'DIP_Part* folder as a basis. May be this was not the right choice for models with only a few variations. If someone has a better recommendation which source i should use as a basis in future, please let me know.

Type Nidec series SH-7000

On branch mr_button_switch_nidec
Changes to be committed:
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/NumberRing10.step
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/README.md
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_base_model.py
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_base_parameters.py
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_model_generator.py
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_nidec_SH70xx_models.py
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/cq_parameters.py
	new file:   cadquery/FCAD_script_generator/Button_Switch_Nidec/main_generator.py

The *step* file is needed because the current FreeCAD version 0.18 does not support CadQuery 2.x and thus 3D text is not supported.
The numeric marking of the rotary coded switch is done by importing the 3D text as a *step* file.
@easyw easyw merged commit 16ba36c into easyw:master Sep 28, 2020
@MountyRox MountyRox deleted the mr_button_switch_nidec branch September 29, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants