Author Topic: Random Number of Points  (Read 1206 times)

0 Members and 1 Guest are viewing this topic.

hudster

  • Gator
  • Posts: 2848
Random Number of Points
« on: May 06, 2008, 11:09:34 AM »
I want to create a lisp to draw splines to designate flexible wiring connections.

I can create the lisp so when I click a set number of points, 3 for example, it draws the spline along those points, but I don't have a clue about how to do it for a random number of points.

Can someone give me a pointer please?
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Random Number of Points
« Reply #1 on: May 06, 2008, 11:16:32 AM »
Hi,

Something like this ?

Code: [Select]
(command "_.spline")
(while (/= 0 (getvar "CMDACTIVE"))
(command pause)
)

Or, if you have a point list:

Code: [Select]
(command "_.spline")
(mapcar 'command pt-lst)
(command "" "" "")
Speaking English as a French Frog