Skip to content
Discussion options

You must be logged in to vote

You could do this

if __name__ == '__main__':
    active_element_ids = ec.get_active_identifiable_element_ids()
    if len(active_element_ids) == 0:
        logging.info("No active elements found")
        sys.exit(1)

    reference_element_id = active_element_ids[0]
    
    # you can do this 
    # ec.add_modified_elements_to_undo(active_element_ids)
    # or this - cmd argument => 2 = modify
    ec.add_elements_to_undo(active_element_ids, 2)

    ec.apply_transformation_coordinate(active_element_ids, gc.get_p1(reference_element_id),
                                       gc.get_xl(reference_element_id), 
                                       gc.get_yl(reference_element_id), 
          …

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@ancelin-charpentier
Comment options

Comment options

You must be logged in to vote
4 replies
@Antoine-S-C
Comment options

@ancelin-charpentier
Comment options

@Brunner246
Comment options

Answer selected by ancelin-charpentier
@ancelin-charpentier
Comment options

Comment options

You must be logged in to vote
2 replies
@ancelin-charpentier
Comment options

@Brunner246
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants