• Explore
      Highlights
    • Popular
    • Staff picks
    • Downloadable
    • Collections
    • Blog
    • Community members
    • Sketchfab Masters
    Browse by category
    • Animals & Pets
    • Architecture
    • Art & Abstract
    • Cars & Vehicles
    • Characters & Creatures
    • Cultural Heritage & History
    • Electronics & Gadgets
    • Fashion & Style
    • Food & Drink
    • Furniture & Home
    • Music
    • Nature & Plants
    • News & Politics
    • People
    • Places & Travel
    • Science & Technology
    • Sports & Fitness
    • Weapons & Military
  • For business
    Sketchfab for Teams
    Augmented Reality
    3D Viewer
    3D eCommerce
    3D Configurators
    Find a Partner
    Pricing
    Customer Stories
  • Buy 3D Models
      Highlights
    • Best selling
    • Animated
    • PBR
    • Low poly
    • High poly
    • 3D Printable
    • 3D Scan
    Browse by category
    • Animals & Pets
    • Architecture
    • Art & Abstract
    • Cars & Vehicles
    • Characters & Creatures
    • Cultural Heritage & History
    • Electronics & Gadgets
    • Fashion & Style
    • Food & Drink
    • Furniture & Home
    • Music
    • Nature & Plants
    • News & Politics
    • People
    • Places & Travel
    • Science & Technology
    • Sports & Fitness
    • Weapons & Military
/
Cancel
loginSign UpUpload

Script_part_design
3D Model

Avatar of shivraj8615
shivraj8615
27
27 Downloads
51
51 Views
1Like
Report
Triangles: 5.1k
Vertices: 2.5k
More model information

This is my first part design i created using python script. This part is a basic design but uses cadquery library to create 3d model. This is solely script based model. Below is the code you can use after installing python. !pip install cadquery import cadquery as cq height = 60.0 width = 80.0 thickness = 10.0 diameter = 22.0 padding = 12.0

# make the base result = ( cq.Workplane(“XY”) .box(height, width, thickness) .faces(“>Z”) .workplane() .hole(diameter) .faces(“>Z”) .workplane() .rect(height - padding, width - padding, forConstruction=True) .vertices() .cboreHole(2.4, 4.4, 2.1) .edges(“|Z”) .fillet(2.0)) # Render the solid

show_object(result)

# Export cq.exporters.export(result, “result_part.stl”) cq.exporters.export(result.section(), “result_part.dxf”) cq.exporters.export(result, “result_part.step”)

License:

CC AttributionCreative Commons Attribution

Learn more
Published 2 years ago
Aug 5th 2023
  • Electronics & gadgets 3D Models
  • Science & technology 3D Models
  • python
  • created

Comments

You must log in to comment.
enterprise
  • Enterprise Solutions
  • 3D Configurators
  • 3D eCommerce
  • 3D Viewer
  • 3D Advertising
  • Sketchfab for Teams
  • Customer Stories
  • Pricing
ecosystem
  • Exporters
  • Importers
  • Developers & API
  • Augmented Reality
  • Virtual Reality
store
  • Buy 3D models
  • Become a Seller on Fab
  • Free 3D Models
community
  • Explore
  • Help Center
  • Education
  • Museums
  • Blog
  • Sketchfab Masters
about
  • Company
  • Careers
  • Press Kit
  • Features
  • Contact us
© 2025, Sketchfab, Inc. All rights reserved.
Terms of usePrivacy policySitemap