getpointAtDist in current UCS

getpointAtDist in current UCS

Anonymous
Not applicable
430 Views
3 Replies
Message 1 of 4

getpointAtDist in current UCS

Anonymous
Not applicable

Hi all is there a visual lisp function like (vlax-curve-getpointAtDist) but which returns the coordinates of the point in the current ucs.

I appreciate any help.

Solomon Tessema

431 Views
3 Replies
Replies (3)
Message 2 of 4

dbroad
Mentor
Mentor

Look into the trans function.  It only works with point lists rather than variants though.  I haven't used the vlax-tmatrix function but you could probably use it in combination with trans to do the transforms.

 

BTW. Thanks for asking a question about how to do something rather than one that just asks for it to be done for you! 

Architect, Registered NC, VA, SC, & GA.
Message 3 of 4

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

Look into the trans function.  It only works with point lists rather than variants though.  .... 


No need to deal with variants.  The (vlax-curve-getPointAtDist) function returns not a variant but an ordinary point list, so applying (trans) to it appropriately is all that's needed.

Kent Cooper, AIA
Message 4 of 4

ВeekeeCZ
Consultant
Consultant

In addition to what has already been said ...

 

You need to think about the source of a point you supply this function.

 

(n/entsel) returns a point in UCS

(getpoint/corner) UCS

 

(assoc 10 en) WCS

(vlax-curve-getStart/EndPoint...) WCS

(ssnamex) WCS