+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20
  1. #11
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Registered forum members do not see this ad.

    I just pointed to you that the answer was in my previous message. Sorry if you understood me wrong.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  2. #12
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    Quote Originally Posted by MSasu View Post
    I just pointed to you that the answer was in my previous message. Sorry if you understood me wrong.
    It is ok ,

    I know what you were referring to , i just added the entmakex and retrieved the needed dxf information just the same way that OP intended to do when they posted the command call of line entity , and i just replaced it with entmakex to guarantee that the last entity is in hand which is better that the use of the function entlast .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  3. #13
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Again, your solution is impeccable if is used to just demonstrate a principle – coordinates extraction from a line entity. From a practical point of view, please imagine how OP’s code will look if he/she need to draw a contour made of ~100 lines and retain the points for further processing. This is why I believe that this approach is counter-productive.
    My opinion is that a less experienced user should be adviced to switch to effective solutions instead of encouraging him to persist to not required work-arounds that will overcomplicate his code. I may be wrong, but this is what I fell.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  4. #14
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    One more time ,

    You have an idea in mind and built your thoughts on it , my example was to give a better way than the use of enlast function and command call is well .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  5. #15
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,743

    Default

    Tharwat,

    The point that I believe Mircea is making is that in your code you have already calculated the line endpoint in order to construct the line, and are then querying the DXF data of the line to retrieve the endpoint that you already have.

    The OP was using the method of constructing the line to obtain the endpoint since evidently he/she was unaware of the polar function (even though this was suggested in a previous thread, by Mircea no less).
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  6. #16
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    I do agree , and to go further in explanations won't hurt at all , IMO at least .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  7. #17
    Forum Newbie
    Using
    AutoCAD 2012
    Join Date
    Sep 2011
    Posts
    9

    Default

    Guys... I don't think its really appropriate to fill two pages of a public thread with a personal discussion, especially between senior members of the forum, who should set a good example.

    I would really appreciate if you didn't do it in my posts, at any rate.

    Thank you to everyone who posted constructive, helpful posts, and I appologise for not posting code in the code tags. I have gone and changed this in all my previous posts.
    Last edited by bpdav1; 16th Aug 2012 at 12:56 am.

  8. #18
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,743

    Default

    Quote Originally Posted by bpdav1 View Post
    Guys... I don't think its really appropriate to fill two pages of a public thread with a personal discussion, especially between senior members of the forum, who should set a good example.

    I would really appreciate if you didn't do it in my posts, at any rate.

    Thank you to everyone who posted constructive, helpful posts, and I appologise for not posting code in the code tags. I have gone and changed this in all my previous posts.
    If you hadn't realised, the 'personal discussion' was actually for your benefit, to explain why one particular method is more effective than another. But since you had clearly ignored the previous advice given in your last thread, we are evidently wasting our time in trying to help you.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  9. #19
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    Nice reply Lee .

    @Mircea , if you took the discussion as a personal attack or so as the following guy says , i have to apologize from you .

    And for you bb , if you didn't get the benefit of that constructive discussion , it really means that we are wasting our time with you and with your unaccepted way of talking .

    Quote Originally Posted by bpdav1 View Post
    Guys... I don't think its really appropriate to fill two pages of a public thread with a personal discussion, especially between senior members of the forum, who should set a good example.

    I would really appreciate if you didn't do it in my posts, at any rate.

    Thank you to everyone who posted constructive, helpful posts, and I appologise for not posting code in the code tags. I have gone and changed this in all my previous posts.
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  10. #20
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Registered forum members do not see this ad.

    @Lee Mac: Thank you for your intervention.

    @Tharwat: Please don't be afraid, I really didn't considered any of your posts in such way. If you have felt that on mines, then I have to apologize too.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

Similar Threads

  1. AutoCAD 2D with third dimension values for objects ?
    By micheldenis in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 11th Aug 2012, 05:36 pm
  2. 2D objects with z-values
    By senthil in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 6th Apr 2012, 05:07 pm
  3. Replies: 4
    Last Post: 22nd Mar 2011, 02:11 pm
  4. how to grab values from different objects?
    By gilsoto13 in forum AutoLISP, Visual LISP & DCL
    Replies: 18
    Last Post: 26th Mar 2010, 12:10 am
  5. Need help extracting attribute values in Lisp
    By Archiman86 in forum AutoLISP, Visual LISP & DCL
    Replies: 30
    Last Post: 18th Feb 2010, 01:27 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts