Connector
#292
Replies: 3 comments
|
Hi Holzi, Sylvain |
0 replies
|
Hallo usai-sylvain Attached is the code as I had envisioned it. import element_controller as ec def main(): if name == "main": |
0 replies
|
Hi Holzi, The reference point is the first element's P1 : # [...]
def main():
ab_max = uc.get_user_double("Max Abstand (mm)")
off_vorne = uc.get_user_double("Offset vorne (mm)")
off_hinten = uc.get_user_double("Offset hinten (mm)")
elements = ec.get_active_identifiable_element_ids()
if not elements:
return
# get the reference user point
ref = uc.get_user_point()
if not ref:
ref = gc.get_p1(elements[0])
pts = uc.get_user_points_with_count(2)
if len(pts) != 2:
return
# [...]would that solve your problem ? 251219_Holzi.mp4 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I would like to copy catalog parts, specifically sheet metal parts (e.g., Simpson Strong-Tie), along an edge of a component. It works, but it only takes the part at its center of gravity. How can I set it up so that I can define a reference point of the catalog part as a reference? Best regards
All reactions