Message 1 of 11

Not applicable
06-24-2016
09:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello to all,
sorry I couldn't be more specific in the subject - that's why I'll go straight to the point here. I have the following piece of code:
(repeat N_pts (setq current_curve (nth j offset_list)) (setq closestpt_i (vlax-curve-getclosestpointto current_curve pt_i)) (command "circle" closestpt_i "0.25") (princ closestpt_i) (setq j (+ j 1)) )
What is weird about this piece of code is that the command "circle" draws the points in the correct places, but the next command "princ" always
displays the same point. The circle command I actually used for testing and noticed this weird behaviour.
Background: this is a part of a bigger loot, which gives different values of pt_i to this loop. offset_list is a list of curve (polyline) entity names. Of course
there is also a (setq j 0) before the loop, but I omitted this.
Any help is highly appreciated, since I can't explain this problem.
Solved! Go to Solution.