Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Need Lisp for divide polyline in custom length

  1. #11
    Member
    Join Date
    2013-03
    Posts
    16
    Login to Give a bone
    0

    Default Re: Need Lisp for divide polyline in custom length

    Why I choose <-> value , LSP run MTEXT value wrong between block?
    Capture_zpsghxaevzx.png

    My save as drawing :
    https://drive.google.com/file/d/0B25...ew?usp=sharing
    Last edited by radosak368138; 2015-07-25 at 02:58 AM.

  2. #12
    I could stop if I wanted to
    Join Date
    2002-08
    Posts
    231
    Login to Give a bone
    0

    Default Re: Need Lisp for divide polyline in custom length

    Quote Originally Posted by radosak368138 View Post
    Why I choose <-> value , LSP run MTEXT value wrong between block?
    Oops, the position of text is bad (an offset is occured) when choose negative value? Sorry !

    Try to change
    nw_ptext (vlax-curve-getPointAtDist vla_obj (- ((eval op) dist_ref len_vtx) (* 0.5 (atof value))))
    to
    nw_ptext (vlax-curve-getPointAtDist vla_obj (- ((eval op) dist_ref len_vtx) (* ((eval op) 0.5) (atof value))))
    Last edited by Bruno.Valsecchi; 2015-07-27 at 11:39 PM.

  3. #13
    Member
    Join Date
    2013-03
    Posts
    16
    Login to Give a bone
    0

    Default Re: Need Lisp for divide polyline in custom length

    Thank you very much for your help.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 2015-07-27, 05:10 AM
  2. Replies: 3
    Last Post: 2015-01-23, 12:29 AM
  3. 2014: Custom divide surface pattern?
    By Spork in forum Revit Architecture - General
    Replies: 3
    Last Post: 2013-11-18, 09:18 PM
  4. LISP function that returns the length of a selected Polyline
    By sivampeta_dheeraj in forum AutoLISP
    Replies: 12
    Last Post: 2012-12-13, 10:35 AM
  5. LISP to draw polyline with specified segment length
    By bhughes.211978 in forum AutoLISP
    Replies: 8
    Last Post: 2010-08-31, 09:45 PM

Posting Permissions

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