bluebytesystemsinc / solidworksextensions Goto Github PK
View Code? Open in Web Editor NEWExtensions for SOLIDWORKS API
Extensions for SOLIDWORKS API
In one project, we are using a combination of
var data = ModelDoc2::CreateBoundingBox
and ModelDoc2::CreateRefPlanesAroundBoundingBox(double[] data)
The CreateBoundingBox method returns the width, thickness length of the model in meters. These dimensions are pure distances and do not take into account that the assembly (or part) may or may not be centered at 0,0,0. We observed several edges cases when the planes overlap with the model.
Solution:
Refactor the method CreateRefPlanesAroundBoundingBox to get extreme points of all component bodies and create its planes accordingly.
Macro that uses extreme points on bodies from a part: https://www.codestack.net/solidworks-api/geometry/precise-bounding-box/ - It needs to be extended to use bodies from component.
Create new zoom to fit method that allows the user to maximize window.
SOLIDWORKSManager::GetNewInstance("/r", SOLIDWORKSInstanceManager.Year_e.Year2021,200)
launches SOLIDWORKS and hangs indefinitely.
Create an extension method to unload all addins
The SheetMetalOptions_e is not found in the documentation nor the swconst ns (API call Export2DWG)
Enum SheetMetalOptions_e
ExportFlatPatternGeometry = 1
IncludeHiddenEdges = 2
ExportBendLines = 4
IncludeSketches = 8
MergeCoplanarFaces = 16
ExportLibraryFeatures = 32
ExportFormingTools = 64
ExportBoundingBox = 2048
End Enum
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.