Jump to content
Developer Wiki and Function Reference Links ×

Get3DCntr - Not true center


rl

Recommended Posts

Get3DCntr takes top height-bottom height and uses the result as center. False. Ex: Draw a wall with 16' top z, 4' bottom z, returns 12' as center. 10' should be center. 10'+6'=16', 10'-6'=4'. Is there a work around? Much to my dismay WallHeight returns top of wall at top left and top right corners. How do you obtain the bottom z of a wall in VS without resorting to object info and manually entering the info?

Help!

rl

Link to comment

To get true center of object, or in my case walls, this is what you do. Draw a wall, set its heights (bot z, top z).

Use Get3DCntr(h,px,py,zvalue);, Use WallHeight(h,startHt,endHt);or Hheight()or Get3DInfo(). Use z value(center)from Get3DCntr - wall height/2 from WallHeight() or others mentioned. That will give you bottom z. Now that you have bottom z of wall, take wall height/2 + bottom z/2 = true center.

rl

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...