Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Programming with Microstation > Re: Global Orig...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 403 of 473
Post > Topic >>

Re: Global Origin

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.
 




 2 Posts in Topic:
Global Origin
"Kenneth.Mills@[EMAI  2006-09-21 09:01:23 
Re: Global Origin
"Jeff Nolan" &l  2006-09-28 20:53:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 2:59:59 CST 2008.