by "Jeff Nolan" <jeff.nolan@[EMAIL PROTECTED]
>
Sep 28, 2006 at 08:53 PM
Maybe this link will help...
http://www.eatyourcad.com/article.php?incat_id=1084
jeff
Kenneth.Mills@[EMAIL PROTECTED]
wrote:
> When using the keyin "go=?" Microstation v8 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 sup****t for V7
> files and design planes.
>
> Thanks.