×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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.

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

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
www.hp15c.org
--------------------

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

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)
)
;

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

(OP)
This block idea sounds like it may work but it is a little over my head.  Not really sure how to try it.

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

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.

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

If you have Express Tools, tcount might work for you.

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

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

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

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources