Jump to content

VBA UCS problem - draw line / 3dpolyline


Recommended Posts

Posted

Hi,

 

I have a problem because I can not calculate correctly point P2 relative to local coordinate system.

The point is that the user indicates the P1 and P2 from P1 is located about 100 units in the axis X. How to draw a line from P1 to P2 but in a local coordinate system?

 

Please helpexample.png

Posted

ThisDrawing.Utility.TranslateCoordinates is the function for translating from one coordinate system to another. See the information on that method in the ActiveX and VBA Reference.

 

Additional information related to this function can be found at:

AutoLISP Reference Guide – Using AutoLISP to Communicate with AutoCAD – Conversions – Coordinate System Transformations

Posted

Thank you, but not quite what I meant.

 

How can I get secondPoint did not indicate the user, only that:

secondPoint (0) = firstPoint (0) + 100

secondPoint (1) = firstPoint (1)

secondPoint (2) = firstPoint (2)

 

It does not work

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...