API issue

Discussion in 'SolidWorks' started by d_mlr, Dec 5, 2007.

  1. d_mlr

    d_mlr Guest

    I'm using SW2007 SP4, VB6 Professional.

    I'm trying to create arcs, circles, and ellipses in a 3d sketch in
    Solidworks via the API in VB6.

    While on the VB Side I am passing numerical arguments (coordinates in
    meters) to the API methods (i.e. swmodel.CreateArc2), the resulting
    artifacts displayed on the solidworks screen are confusing.

    What appears to be happening is that all of the Z value arguments from
    VB are being truncated or reset to zero for solidworks. So an arc
    with a centerpoint of (1,1,1) gets drawing on the Global XY plane as
    having a centerpoint of (1,1,0).

    All of the garbled entities are part of a 3d sketch. But they are all
    planar on the global XY plane, while they should be spatially
    oriented.

    Has anyone else run into this?
     
    d_mlr, Dec 5, 2007
    #1
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.