Sketcher: Vincolo Punto su oggetto
Punto su oggettto |
Posizione nel menu |
---|
PartDesign → Schizzo → Punto su oggetto |
Ambiente |
Schizzo, PartDesign |
Avvio veloce |
Maiusc+O |
Introdotto nella versione |
- |
Vedere anche |
Coincidenza |
Descrizione
Appone un punto su un altro oggetto, ad esempio, su una linea, un arco o un asse.
Uso
- Selezionare il punto che si desidera apporre su una linea / arco / etc. (il punto selezionato diventa verde).
- Selezionare la linea su cui si desidera apporre il punto appena selezionato (la linea selezionata diventa verde).
- Fare clic sul pulsante del vincolo «Punto su oggetto».
Nota: l'ordine di selezione della linea e del punto non è importante. Il punto viene sempre spostato sulla linea. La linea rimane fissa.
Script
Il vincolo può essere creato con una macro e dalla console Python utilizzando il seguente comando:
Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))
where :
- Sketch is a sketch object
- LineMoving is the number that designates the line, which contains the point that has to be moved onto the LineFixed (The line which is fixed)
- PointOfLineMoving is the number of the vertex of line LineMoving, that has to be moved onto the LineFixed
- LinedFixed is the number of the line to be affixed onto the point PointOfLineMoving
How to indentify the number that designates lines and points ? Please refer to the scripting part of this wiki page.