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 > Global Origin
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 403 of 473
Post > Topic >>

Global Origin

by "Kenneth.Mills@[EMAIL PROTECTED] " <Kenneth.Mills@[EMAIL PROTECTED] > Sep 21, 2006 at 09:01 AM

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 3:21:31 CST 2008.