Author Topic: Creating a polyline without clicks  (Read 1903 times)

0 Members and 1 Guest are viewing this topic.

fabcad

  • Newt
  • Posts: 43
Creating a polyline without clicks
« on: October 25, 2014, 04:53:38 PM »
Good evening everyone,

I found this great program that allows you to create multiple perpendicular relative to the polyline while dragging the mouse over this pline is what amazing , so I thought taking this concept to create a polyline without click the polyline end points it would end.

Here is the algorithm of perfect function:

Algorithm:
- Selecting a "curve" and a starting point.
- As long as the click point did not "forced" (nearest point) on the segment while taking vertex as the mouse over the object.
- If an intersection is found, continue if the object being permitted or ask the user to choose another object curve.
- And so on until the pressure of a stop under the program.


Thank you in advance, it will allow creation of polylines surfaces very quickly to the user.

Quote
Bonsoir à tous,
J'ai trouvé ce génial programme qui permet de créer plusieurs perpendiculaires par rapport à la polyligne tout en faisant glisser la souris sur cette polyligne, c'est ce qui m'épate et donc j'ai imaginé prendre ce concept pour créer une polyligne sans cliquer les points des extrémités de polylignes dont elle serait issue.
Voici l’algorithme de la fonction rêvée :
Algorithme :
- Sélection d'une "curve" et d'un point de départ.
- Tant que le clic n'a pas pris de point "forcé" (accroche proche) sur le segment alors prise des sommets au fur et à mesure du passage de la souris sur l'objet en cours.
- Si une intersection est trouvée, continuer si l'objet en cours le permet ou demander à l'utilisateur de choisir un autre objet curve.
- Et ainsi de suite jusqu'à la pression d'une d’arrêt prévue par le programme.
Merci d'avance, elle permettra des créations de polylignes de surfaces très rapidement pour l'utilisateur.


ribarm

  • Gator
  • Posts: 3257
  • Marko Ribar, architect
Re: Creating a polyline without clicks
« Reply #1 on: October 25, 2014, 06:57:08 PM »
If you mean on "plpath.lsp", have a look at this video if you haven't already watched it...

http://www.youtube.com/watch?v=cMFI0KwPmU0&list=UUuaTEGtZpLRrdKlhAceZkVw
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

fabcad

  • Newt
  • Posts: 43
Re: Creating a polyline without clicks
« Reply #2 on: October 27, 2014, 05:17:11 PM »
Hi everyone,

Thank you for the reply, but I was thinking about creating a dynamic tool that would draw future segments of the pline. Here is a result of code produced by a member of CADxp: Bonuscad. It works well but it can be improved I think by the excellent programmers of this site. Thank you in advance.

Fabrice

Original message :
Quote
Bonsoir à tous,
Merci pour la réponse, mais je pensais plutôt à un outil de création dynamique qui dessinerait les futurs segments de la polyligne. Voici un résultat de code réalisé par un membre de Cadxp : Bonuscad. Il fonctionne bien mais il peut-être amélioré je pense par les excellents programmeurs de ce site. Merci d'avance.
Fabrice