Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to make and numerical array (1 2 3 4...)?

Status
Not open for further replies.

ky2010

Mechanical
May 18, 2005
7
I was wonder if anyone knew of a way to make a numerical array (1 2 3 4 5). I am coverting wiring diagrams to autocad files and it would make it a lot fast if it is possible. Every terminal has a different # so I am having to type them all in manually. I hope someone can help. Any advice is helpful. Thanks in advance.
 
Replies continue below

Recommended for you

Check out AutoCAD electrical. If you're doing a one-off deal, get a demo copy of it from the VAR.

I have an old copy of Via Lite which does precisely that but they were bought out by Autodesk and the Lite package was discontinued.

--------------------
Bring back the HP-15
--------------------
 
Not sure if this helps, but, here is a LISP that inserts a block called IDCIRCLE, incrementing the number inside the block each time. You need a block called IDCIRCLE with a single attribute.

;
(DEFUN C:NUMB ( / N) ; Insert & increment IDCircle block
(setvar "ATTDIA" 0)
(setq N (getint "\nEnter beginning number <1>: "))
(if (= N nil) (setq N 1))
(while N
(progn
(COMMAND "INSERT" "IDCIRCLE" "NEA" PAUSE "1" "1" "0" (itoa N) "" )
(setq N (+ 1 N))
)
) ; end while
(princ)
)
;

 
This block idea sounds like it may work but it is a little over my head. Not really sure how to try it.
 
A block is a drawing saved to disk and inserted into the drawing. Blocks can have text associated with them, called attributes. The IDCircle block can be a circle or ellipse with one text attribute. Use the AttDef command to create a text attribute and Block to create a block that can be inserted many times in your drawing. Use WBlock to write the block to disk so it can be inserted into many drawings.
 
If you have Express Tools, tcount might work for you.
 
You say you are converting from a wiring diagram to an AutoCAD file. What exactly are you starting with? Is it a text file, a picture, a printout, an Excel file. That may help us with other suggestions?

"Everybody is ignorant, only on different subjects." — Will Rogers
 
I will attempt the suggestions to see if they work. Thanks for the replies. I am starting with paper hard copies of the wiring diagrams and a blank autocad file. Not the most fun thing in the world.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor