Is there a way to connect two lines?

Is there a way to connect two lines?

Anonymous
Not applicable
1,344 Views
1 Reply
Message 1 of 2

Is there a way to connect two lines?

Anonymous
Not applicable

Hello, so I have a question, is there a way to programmatically extend a line sketch?
So, I draw these lines for initial placement, but then later I want to connect some of them.
Right now, I get the two sketches and just draw a new line sketch to connect them, but it doesn't actually connect them, like shown below.
How can I do so in a python script?

Also, how would I be able to do the same thing but using Fusion 360, and not a script. I would assume you would right-click the line and select "Edit Sketch".

fus360.png

0 Likes
Accepted solutions (1)
1,345 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni
Accepted solution

Creating and editing sketches using the API has the same rules as using Fusion 360 interactively.  It seems based on your description that the main issue you're running into is that you have several different sketches but want the geometry in those sketches to interact.  That's not how it works in Fusion 360.  Each sketch is independent of the others and you can't reference other geometry without first copying it into the sketch you're working on.  The copy remains associated to the original geometry but the copy does now exist in the new sketch where it can be used in creating new sketch geometry.  Profiles, which are the areas used when creating an extrusion and other features, must also be defined by sketch geometry within a single sketch.  Profiles are calculated by looking at the geometry in each sketch by itself.

 

I would recommend working more in Fusion 360 interactively to see what workflow you can figure out that works best for your specific case.  Once you've identified that workflow, then it should be possible to write a program to automate the steps.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog