Bounding Box (API bugs)

Discussion in 'SolidWorks' started by info.lowyeah, May 12, 2007.

  1. info.lowyeah

    info.lowyeah Guest

    Hi all,

    I tried to write a bounding box to measure the overall body size. But
    I found there are some error on bounding box function in PartDoc
    object or Body2 object.

    Both of them can just measure a part or body which is align the Global
    Coordinate System. If you try to create a Cube , which is not align
    the global X axis , Y or Z, the bounding box will return an incorrect
    values.

    Most of real part design will not use default (Top, Front, Right
    plane) plane, to start the design, some designer will create a rotated
    plane (let's say 30 degree) first, and then based on this plane to
    start the design.
    So, I found there is an incorrect return value in the bounding box
    function.

    Can anybody help me?

    Alan
     
    info.lowyeah, May 12, 2007
    #1
  2. info.lowyeah

    TOP Guest

    I think you are talking about the API call that generates a bounding
    box. It has it's limitations and you have just found them.

    1. The bounding box is about 10% larger than the model/assembly it is
    bounding.
    2. It is aligned with the global coordinate system
    3. It sometimes will bound geometry that is not intended.


    TOP
     
    TOP, May 12, 2007
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.