I have a cylindrical part. I need to find the measurements surrounding it. I will create an order measurement by adding a 5mm margin. When I run the macro on a square prism or cylindrical part, it will give the widest measurement that encompasses the part. I found something similar on a website, but it wasn't in VBA. How can I do this with VBA?
https://www.codestack.net/solidworks-ap ... -cylinder/
I can handle prism shapes. For instance, it finds the measurements 47 x 12 x 480 and gives me an order measurement of 50 x 15 x 485 mm. How can I create an order measurement for parts that will be ordered as shafts? (I don't want it to draw. Just Debug.Print is enough.)
- Board index CAD SolidWorks How To Questions
- Search
-
- It is currently Tue Dec 24, 2024 1:38 pm
- All times are UTC-05:00
Finding The Body Bounding Cylinder Using VBA
Use this space to ask how to do whatever you're trying to use SolidWorks to do.
Finding The Body Bounding Cylinder Using VBA
- Quote
- 0 login to like this post
Unread post by senuba »
Jump to
- Welcome New Members
- ↳ Welcome
- ↳ Forum Rules
- CAD
- ↳ CAD Agnostic
- ↳ SolidWorks
- ↳ How To Questions
- ↳ SW General
- ↳ SolidWorks FAQ
- ↳ API
- ↳ Macro Library
- ↳ SolidWorks PDM
- ↳ 2D Drawings
- ↳ Routing-Electrical-Piping
- ↳ Surfacing
- ↳ Rendering - Visualize - Photoview
- ↳ SW Simulation
- ↳ SW Motion Analysis
- ↳ Enhancement Requests
- ↳ Solid Edge
- ↳ NX
- ↳ Onshape
- ↳ Creo
- ↳ Inventor
- ↳ Fusion 360
- ↳ KeyCreator
- ↳ Catia and 3DX
- ↳ IronCAD (CAXA)
- ↳ Shapr3D
- ↳ CAD Admin (Install, PDM, etc)
- ↳ subD and Mesh
- ↳ Hardware
- ↳ Misc CAD
- ↳ Draftsight
- Other Technology
- ↳ Computer Aided Engineering
- ↳ Rendering and Motion
- ↳ 3D Scan
- ↳ General Engineering and Design
- ↳ AI and Related Tech
- Manufacturing
- ↳ 3D Print
- ↳ CAM
- ↳ PowerMILL
- ↳ Molding, Casting, Powder Metal
- ↳ Robotics
- Board Business
- ↳ General Biz and Announcements
- ↳ Suggestions
- ↳ What's Wrong?
- ↳ What's New
- ↳ Events
- ↳ Media and Advertising
- Off Topic
- ↳ Kitty Dump
- ↳ Job Listings
- ↳ For Sale and Want To Buy