Arrange existing dynamic blocks with attributes in an array

Arrange existing dynamic blocks with attributes in an array

ionita_traian81
Participant Participant
854 Views
5 Replies
Message 1 of 6

Arrange existing dynamic blocks with attributes in an array

ionita_traian81
Participant
Participant

In a drawing I have thousands of dynamic blocks that represent the optical fiber connections. Each connection has attributes and values for the attributes. Certain addresses have multiple connections, and the connection blocks are placed in a row.
I'd like to be able to arrange those exact blocks (because they have attributes and assigned values) in an array - like place them equally spaced on a line or spline, similarly to how array or arraypolar would arrange them but without inserting new blocks and losing the attribute values.

 

How do I do that?

0 Likes
Accepted solutions (1)
855 Views
5 Replies
Replies (5)
Message 2 of 6

O_Eckmann
Mentor
Mentor

Hi @ionita_traian81 ,

 

A little screenshot of what you have actually, and what you want to obtain, could certainly clarify your demand.

 

 

Olivier Eckmann

EESignature

0 Likes
Message 3 of 6

ionita_traian81
Participant
Participant

Sure, check the attachments. The two pictures show what I'd like to achieve and there's an example DWG attached too.

Please note in the first picture that the blocks have attributes and values so I don't simply want to DIV and insert new blocks with blank attributes, I want to take the existing blocks and place them on a line, a spline, or in arraypolar while retaining the attribute values.

0 Likes
Message 4 of 6

O_Eckmann
Mentor
Mentor
Accepted solution

Hi @ionita_traian81 ,

 

Here a little solution with joined lisp, and video for explanation.

 

Once you've loaded lisp file, enter command ALIGNBLOCKWITHCURVE

It isn't very nice but it should work.

 

Olivier Eckmann

EESignature

Message 5 of 6

АлексЮстасу
Advisor
Advisor

Might be interesting. And even practically applicable.
We are doing experimental projects: XDPoint for point objects, XDLabel for inscriptions. We want to explore object linking in basic AutoCAD. And wanted to test how it could be used.
We used XData because we were aiming for versatility - XData is available in any AutoCAD. And we wanted to avoid creating special objects - like Annotations or the like in vertical applications.
(For Map 3D, all of this can be done on Object Data as well).

 

For example, can use XDPoint to solve the problem of this topic too:
Link blocks and linear objects along which want to arrange these blocks - XDPOINT_LINK.
The blocks will have XData with link parameters. Among these parameters there are dx, dy, dz and distance of blocks relative to linear objects. Replace these numbers with the required identical ones - XDTOOLS_VEDIT.
Execute XDPOINT_UPDATE - the blocks will be projected along the linked linear objects.

 

This is certainly more complicated than Olivier's program.

 

The XDPoint commands were not created for the task of this topic. But it turns out that they are applicable in this case as well.
Having objects linked allows you to solve very many problems with just three to five commands and allows to exchange data between objects.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 6 of 6

ionita_traian81
Participant
Participant

Yes, it's good, very versatile, have used XDLabel to get attribute values for the blocks. The script provided above by @O_Eckmann does exactly what I need at this point, quick and easy.

0 Likes