Global Origin

Discussion in 'Microstation' started by Kenneth.Mills, Sep 21, 2006.

  1. When using the keyin "go=?" Microstation gives a value that is
    7045.5494792 larger for the the x, y and z values than if using the mdl
    function mdlModelRef_getGlobalOrigin (which gives the go in units of
    resolution but can easily be converted to master units.)

    Example vba code:

    Dim ModelRef As Long Dim GO As Point3d Dim ret As Long Dim UORPerMaster
    As Double

    UORPerMaster = ActiveDesignFile.Models("Model").UORsPerMasterUnit
    ModelRef = mdlModelRef_getActive

    ret = mdlModelRef_getGlobalOrigin(ModelRef, GO)

    Msgbox "X: " & GO.X / UORPerMaster Msgbox "Y: " & GO.Y / UORPerMaster
    Msgbox "Z: " & GO.Z / UORPerMaster

    Anyone have any idea where the 7045.5494792 value is comming from? I
    suspect that it has something to do with maintaining support for V7
    files and design planes.

    Thanks.
     
    Kenneth.Mills, Sep 21, 2006
    #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.