Sequentially Numbering PLINES At End Vertex Based On Layer

Sequentially Numbering PLINES At End Vertex Based On Layer

Anonymous
Not applicable
622 Views
1 Reply
Message 1 of 2

Sequentially Numbering PLINES At End Vertex Based On Layer

Anonymous
Not applicable

Here's a tricky one that I'm trying to achieve. I draw wiring schematics with AutoCAD LT and I'm trying to find a way to sequentially number PLINES that represent physical cables. Ideally we would draw the entire schematic before numbering the cable PLINES. Each type of cable is represented by a different layer, linetype and colour. At present I number all of the cable ends manually and it's extremely time consuming.

 

I would like a macro that I would use to do this for me. Ideally it would work as folows.

 

1 - Activate numbering.

2 - Set first number to start the sequence and perhaps prefix & suffix for punctuation and alpha char.

3 - Click on lines one-by-one to apply cable numbers to each end of the PLINES. The very end, not the next vertex.

4 - The position of the numbers at set distances from the end of the line, always the same distances, same size and font etc. Always horizontal.

5 - Deactivate numbering

 

This is my first foray into macros so I'm going to need some assistance. I know how to make one and assign it to a button in the ribbon etc. 

 

Where should I start?

 

Many thanks in advance,

 

Matt.

0 Likes
623 Views
1 Reply
Reply (1)
Message 2 of 2

steven-g
Mentor
Mentor

A similar question came up over here a few weeks ago, yes it's possible, but looking at your image the text is sometimes left and sometimes right of the endpoint, that would be more difficult to set up

0 Likes