Lisp for connect between attribute definition values (Electrical Lisp)

Lisp for connect between attribute definition values (Electrical Lisp)

jtm2020hyo
Collaborator Collaborator
1,206 Views
3 Replies
Message 1 of 4

Lisp for connect between attribute definition values (Electrical Lisp)

jtm2020hyo
Collaborator
Collaborator

 

TL;DR I need to connect blocks using attribute values.

 

I created multiple blocks and attribute with different properties (Annotative, scaled attribute text to 1:50, Upside down, Backward, Invisible, Constant, Verify, Preset, Multiple lines, Lock position, Visibility parameters)

 

imagen.pngimagen.pngimagen.png

 

Request 1:
I need to request for help to create a lisp for connect with *lines between attribute definition values since their attribute insertion point or block insertion point, ignoring all properties, included caps, but Visibility parameters not should be ignored, all this just of selected blocks (dynamic blocks, regular blocks, nested blocks).

 

(check dwg attached for more details)

 

Request 2:
Add an option for let me choice if I need to ignore just specific attributes tag.

(in the attached drawing I ignored between attributes values “tipo” and “nivel”)

 

Request 2:
Add an option for let me choice if I need connect just specific attributes tag.

 

(in the attached drawing I connected between attributes values “codigo” and “alimentador”)

 

Request 3:
Add an option for let me choice for connect blocks insert point or attribute definitions insert point


(check dwg file and images for more details)

 

imagen.pngimagen.png

 

PD: attached blocks with the name “connect attributes.dwg”

 

PD: if possible use DCL or OpenDCL for the GUI.

0 Likes
1,207 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor

You may have asked for this else where, there was a post about connecting to a point on a block, I know I answered about using a Left Right Top Bottom style answer. as you know the block these points can be worked out, even like text could use 1-9 locations. eg 5 is center, 1 is top left makes dwg much neater.

 

I can supply the choice dcl download "Multi radio buttons.lsp" at Cadtutor Downloads its a library routine so would create a Block / Attribute choice. 

 

The other way to do attribute v's block is by using nentsel and checking if its an attribute.

 

(entget (car (nentsel "\npick block or att"))) have a look at assoc 0.

Message 3 of 4

jtm2020hyo
Collaborator
Collaborator

@Sea-Haven wrote:

You may have asked for this else where, there was a post about connecting to a point on a block, I know I answered about using a Left Right Top Bottom style answer. as you know the block these points can be worked out, even like text could use 1-9 locations. eg 5 is center, 1 is top left makes dwg much neater.

 

I can supply the choice dcl download "Multi radio buttons.lsp" at Cadtutor Downloads its a library routine so would create a Block / Attribute choice. 

 

The other way to do attribute v's block is by using nentsel and checking if its an attribute.

 

(entget (car (nentsel "\npick block or att"))) have a look at assoc 0.


use option 5 (middle center), I need to use this in 99% of cases. And the "Multi radio buttons.lsp" sounds good.

 

0 Likes
Message 4 of 4

jtm2020hyo
Collaborator
Collaborator

@Sea-Haven wrote:

You may have asked for this else where, there was a post about connecting to a point on a block, I know I answered about using a Left Right Top Bottom style answer. as you know the block these points can be worked out, even like text could use 1-9 locations. eg 5 is center, 1 is top left makes dwg much neater.

 

I can supply the choice dcl download "Multi radio buttons.lsp" at Cadtutor Downloads its a library routine so would create a Block / Attribute choice. 

 

The other way to do attribute v's block is by using nentsel and checking if its an attribute.

 

(entget (car (nentsel "\npick block or att"))) have a look at assoc 0.


just curious, is this your otherimagen.png account theswamp forum?

 

 

0 Likes