1 / 12
Resistor Storage drawers 10mm x 15mm x 70mm — zdjęcie 1
1 / 12

Resistor Storage drawers 10mm x 15mm x 70mm

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

Very small and compact flat print resistor storage drawers for resistors and similar electronic components.

Ocena
0 / 5
Polubienia
2
Pobrania
29
Wydruki
1
Wyświetlenia
143
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Organizers
Licencja
GNU General Public License v3.0

I designed my own box because I could not find what I was looking for:

  • There should be 12 columns for E12 series

  • The drawers should be as small as possible, I don't want to take up a lot of space.

  • The resistors should fit in full length, at least 65mm deep.

It is a tedious process to print and assemble, because each drawer has 3 parts, so flat print was a requirement, but the end result is very satisfying, I know exactly where to find the resistor I am looking for. 

See the plate layout folder for dual colour print options already set up for Bambu studio and Orca Slicer.

I hate repetitive steps so the tiles are generated with a python scrip in fusion 360 from a list of values in a csv file. It generates all  97 drawer fronts with various resistor values in 2 minutes. The color selection once on the build plate is then done by hand, I bit tedious but achievable. See the tree sets generated in the plate layouts folder.

The python script goes in the scripts folder. If you want help setting this up I'll write it up in a wiki, please reach out of you do. 

import adsk.core, adsk.fusion, adsk.cam, traceback
import csv, os

--- CONFIG ---

CSV_PATH = r"C:\Users\Jattie\Documents\E12_series.csv" TEXT_PARAMETER = "resistor_value_name" EXPORT_FOLDER = r"C:\Users\Jattie\Documents\print" USE_PARAMETER = True EXPORT_FORMAT = "step" # "step" or "3mf" SKETCH_NAME = "TextSketch" TEXT_NAME = "MainText"

--- END CONFIG ---

def run(context): ui = None try: app = adsk.core.Application.get() ui = app.userInterface design = app.activeProduct

    if not os.path.exists(EXPORT_FOLDER):
        os.makedirs(EXPORT_FOLDER)

    with open(CSV_PATH, newline='', encoding='utf-8-sig') as csvfile:
        reader = csv.DictReader(csvfile)
        rows = list(reader)

    for row in rows:
        normalized = {k.strip().lower().lstrip('\ufeff'): v for k, v in row.items()}
        value = normalized["label"]

        safe_value = value.strip().replace("'", "").replace('\n', '').replace('\r', '')

        if USE_PARAMETER:
            param = design.userParameters.itemByName(TEXT_PARAMETER)
            if not param:
                raise RuntimeError(f"Parameter '{TEXT_PARAMETER}' not found.")
            param.expression = "'" + safe_value + "'"
        else:
            sketch = design.rootComponent.sketches.itemByName(SKETCH_NAME)
            text_obj = sketch.sketchTexts.itemByName(TEXT_NAME)
            text_obj.text = safe_value

        adsk.doEvents()
        design.computeAll()

        exportMgr = design.exportManager
        filename_step = os.path.join(EXPORT_FOLDER, f"{safe_value}.step")
        filename_3mf = os.path.join(EXPORT_FOLDER, f"{safe_value}.3mf")

        if EXPORT_FORMAT.lower() == "step":
            options = exportMgr.createSTEPExportOptions(filename_step)
        elif EXPORT_FORMAT.lower() == "3mf":
            # 3MF needs the entity (root component) + filename
            root_comp = design.rootComponent
            options = exportMgr.createC3MFExportOptions(root_comp, filename_3mf)
        else:
            raise RuntimeError("EXPORT_FORMAT must be 'step' or '3mf'.")

        exportMgr.execute(options)

    ui.messageBox("Batch export complete.")

except:
    if ui:
        ui.messageBox("Failed:\n{}".format(traceback.format_exc()))</code></pre><p></p><pre><code>The CSV File is:</code></pre><pre><code>label

1R 1R2 1R5 1R8 2R2 2R7 3R3 3R9 4R7 5R6 6R8 8R2 10R 12R 15R 18R 22R 27R 33R 39R 47R 56R 68R 82R 100R 120R 150R 180R 220R 270R 330R 390R 470R 560R 680R 820R 1K 1K2 1K5 1K8 2K2 2K7 3K3 3K9 4K7 5K6 6K8 8K2 10K 12K 15K 18K 22K 27K 33K 39K 47K 56K 68K 82K 100K 120K 150K 180K 220K 270K 330K 390K 470K 560K 680K 820K 1M 1M2 1M5 1M8 2M2 2M7 3M3 3M9 4M7 5M6 6M8 8M2 10M 12M 15M 18M 22M 27M 33M 39M 47M 56M 68M 82M

Tagi