GithubHelp home page GithubHelp logo

solidworksextensions's People

Contributors

alexegorchatov avatar amenjlili avatar

Watchers

 avatar

solidworksextensions's Issues

Issue with creating ref planes around the bounding box

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.

image

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.

ViewZoomtofit3

Create new zoom to fit method that allows the user to maximize window.

SheetMetalOptions_e is not found in the documentation or the swconst ns

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.