Skip to content
Discussion options

You must be logged in to vote

you could do something like this

from typing import List

import cadwork
import element_controller as ec
import geometry_controller as gc


def get_element_orientation_and_position(element_id: int):
    point1 = gc.get_p1(element_id)
    x_direction = gc.get_xl(element_id)
    y_direction = gc.get_yl(element_id)
    return point1, x_direction, y_direction


def transform_element(element_id: int, point1_new: cadwork.point_3d, x_direction_new: cadwork.point_3d,
                      y_direction_new: cadwork.point_3d):
    point1_old, x_direction_old, y_direction_old = get_element_orientation_and_position(element_id)
    ec.apply_transformation_coordinate([element_id],
                      …

Replies: 2 comments 18 replies

Comment options

You must be logged in to vote
8 replies
@Brunner246
Comment options

@roehligas
Comment options

@Brunner246
Comment options

@Brunner246
Comment options

@roehligas
Comment options

Answer selected by lucas-ita
Comment options

You must be logged in to vote
10 replies
@lucas-ita
Comment options

@roehligas
Comment options

@roehligas
Comment options

@lucas-ita
Comment options

@Brunner246
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #128 on February 29, 2024 15:55.