Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get a point of a polilyne

26 REPLIES 26
SOLVED
Reply
Message 1 of 27
Anonymous
1798 Views, 26 Replies

Get a point of a polilyne

Hi masters!

 

I am working in a new LISP, to change the dimensions of a drawing for an aligned dimension. Dimensions you can see in the drawing are made of simple lines.

 

So, first of all i tried to identify the point nº3 of the triangles. After that i will make a dimensions between those 2.

I am stuck in this point and dont know how to get it. I imagine i need to identify the coordinates of those point. If anyone knows any other way to make it easier i will apreciate it.

 

How i will run the lisp? I will select only the items i need to change, and will run the lisp. I will do the same action again and again until all the dimensions are changed.

 

There is no need to create the dimstyle and layer, because both will be already created in the drawing.

 

 

Thanks in advance!

26 REPLIES 26
Message 21 of 27
devitg
in reply to: Kent1Cooper

Hi @Moshe-A , please clear me how the 

 

(vlax-curve-getEndParam ename)

 can receive a  ename. 

As far I can see at the ACAD help 

 

(vlax-curve-getEndParam curve-obj)
curve-obj
Type: VLA-object

The object to be measured.

It state that it shall be a VLA-obj

 

Thanks in advance 

 

 

Message 22 of 27
Moshe-A
in reply to: devitg

@devitg  hi,

 

Yes years ago i was also amazed to see that on this forum. i think it was Kent Cooper who brought it. apparently it looks like it's undocumented even on new releases 😀

 

let's hope they will not take it out some day 🙏

 

Moshe

 

 

Message 23 of 27
devitg
in reply to: Moshe-A

Thanks . I check it , and of course it works with enames. 

I learn a new one today . 

 

 

Message 24 of 27
Anonymous
in reply to: Moshe-A

Thanks @Kent1Cooper for your update. I will inplement in my lisp.

 

Thanks @Moshe-A for your lisp. Its a bit complex for me as i see some functions i didnt know. Will check it with calm and see if i can update for other projects i have in mind. 

Message 25 of 27
Moshe-A
in reply to: Anonymous

@Anonymous ,

 

No doubt you can use it in this 'project'. here are the issues that you still have to take care:

 

1. set reasonable dimension style.

2. set layer for the dimension.

3. set the appropriate DL_OSET_DIST 

 

these are simple tasks to do and i will be here to help 😀

 

Moshe

Message 26 of 27
devitg
in reply to: Moshe-A

@Moshe-A  hi , maybe I'm wrong , but it seem to be:  a parenthesis is lost at  

 

( t
      (command "._dimaligned" "_None" p0 "_None" p1 "_None"     pos_dimlin p0 p1))
     )

after the last NONE , before pos_dimlin  

Message 27 of 27
Moshe-A
in reply to: devitg

yes thank you. you caught me 😀  my mistake...that's the result of last second change, i added "none" there

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report