Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Automatically Connect Blocks with Polyline

daniel.orourkeUWE7W
Contributor

Automatically Connect Blocks with Polyline

daniel.orourkeUWE7W
Contributor
Contributor

I am looking for a Lisp routine that will allow me to insert or at least select a series of blocks and then generate a polyline that connects those blocks at either their base point or a selected point on the block definition using filleted 90-degree angles.

 

The simplest solution would likely just be a one-time thing where all the blocks are placed, they are selected in order, and a single continuous line is generated.

 

The super fancy solution would be more dynamic, acting somewhat like the stretch command. Put simply, it would allow me to move a block and the polyline would regenerate or update automatically maintaining the 90-degree turns.

 

 

danielorourkeUWE7W_0-1736442703444.png

0 Likes
Reply
247 Views
4 Replies
Replies (4)

pkenewell6347
Advocate
Advocate

All of the scenarios in your image have multiple possible ways they could connect. You need to establish rules, such as:

- Minimum segment length before bend.

- Start segment Hor. or Vert.

- 2 or 3 segments.

 

Or - you could prompt for those things.

 

The automatic updates would be MUCH more complicated. Reactor functions and retaining data in the lines to keep the rules in tact. Also it would make the feature dependant on the AutoLISP to work.

 

Alternatively, you could just make a few dynamic blocks that could be easily updated to match changes.

 

P.S. - Maybe try this?

https://apps.autodesk.com/ACD/en/Detail/Index?id=2255635199830962353&appLang=en&os=Win32_64

 

0 Likes

daniel.orourkeUWE7W
Contributor
Contributor
I tried using the accepted solution and can't get it to work properly. The command always seems to return an error.
0 Likes

daniel.orourkeUWE7W
Contributor
Contributor
I see what you are saying, but do not necessarily have a preference in those parameters. The minimum segment length before bend would simply be equal to the fillet radius. Would it be possible to input the other two suggested parameters on a point-by-point basis?

As for the app, I will need to look into it later. My work PC requires admin privileges to install it but the images seem promising.
0 Likes