Skip to main content
Known Participant
February 16, 2022
Question

Making a rectangular line

  • February 16, 2022
  • 3 replies
  • 873 views

Hello,

 

I have a problem like this: how to make a rectangular line to the existing line by script, but always on the right side to the direction of vector line ? Like this on the example ?

 

Thank you,

This topic has been closed for replies.

3 replies

renél80416020
Inspiring
February 17, 2022

Bonjour Belf,

J'ai travaillé sur ce script spécialement pour toi pour des prunes...

La version la plus simple du script:

La couleur par défaut (blue)

Le script vous montre le sens du tracé afin de choisir le coté gauche ou droit.

Pour coef, ce serait trop long à expliquer.

René

PS

La version plus complète.

Ici, si "Applies style" n'est pas coché, le type de trait peut être modifié.
La boîte de dialogue peut être permanente pour le tracé de plusieurs traits.

 

m1b
Community Expert
Community Expert
February 17, 2022

Very cool, @renél80416020! Are you sharing your script?

- Mark

renél80416020
Inspiring
February 17, 2022

Bonjour M1b,

Je regrette, j'ai réalisé ce script à la demande de Beff mais il n'a pas suivi, je voudrais récupérer une rémunération pour le temps passé.

Le script en lui même n'est pas très difficile à faire mais pour Beff, les tracés comportaient souvent de très petits segments de droite aux extrémités. Le script doit dans ces cas là modifier légèrement le tracé (la copie) avant de traiter le but du script (c’est la raison du paramètre coef).

La distance entre les points du segment extrémité doit être supérieure à dec.

Cordialement René

barbara_a7746676
Community Expert
Community Expert
February 17, 2022

Follow Monika's suggestion and create a brush.

It's easy to do.

Draw the two lines.

Select them and drag them into the Brushes panel. Choose Art Brush.

Paint with the Brush tool. Be aware that the direction that you drag the brush can flip the colors in the two lines, so always drag in the same direction or else use the Brushes panel to change the direction of a line you've drawn.

You can draw with any tool, not just the Brush tool, and then click on the brush you want to use in the Brushes panel.

 

Monika Gause
Community Expert
Community Expert
February 16, 2022

I would create a brush.