Jump to content
Developer Wiki and Function Reference Links ×

GetLine3D not working


Recommended Posts

Isn't GetLine3D suppose to pick points from different Z planes?

I have a Locus on Z+200, Z0, Z-200 & X100,Z0

If I run the following macro then I can pick any locus first but no other if I am in any view other than iso and then only the one on the Z0 plane.

Surely I should be able to pick any loci being this is a 3D tool and set to False.

Can anyone suggest a reason for this or a way around this?

procedure test_this;

var p1X, p1Y, p1Z, p2X, p2Y, p2Z : real;

begin

GetLine3D (p1X, p1Y, p1Z, p2X, p2Y, p2Z, false);

Poly3D (p1X, p1Y, p1Z, p2X, p2Y, p2Z);

end;

run (test_this);

Link to comment

Mr. Do,

   Yes, it is broken, or better yet, never worked. I've been playing with it for a day now (since your previous thread) and from VW 2010, when it was introduced, to VW 2015 it never worked. The Z components are always 0. GetPt3D() seems to be equally afflicted.

   To get 3D points interactively try:

*********

procedure Get3DPt(var P :Vector);

Begin

   CallTool(-316); { 3D Locus tool }

   GetLocus3D(LActLayer, P.x, P.y, P.z);

   DelObject(LActLayer);

End;      { Get3DPt }

...

BEGIN

   Get3DPt(P1);

   Get3DPt(P2);

...

*********

This won't give you the rubberband effect of GetLine3D, but it will work with 2 clicks. You can thank Gerard Jonker for suggesting this method years ago.

Raymond

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...