×
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

Automate Export & some commands

Automate Export & some commands

Automate Export & some commands

(OP)
Hi Guys,

I'd like to create a Macro or a script (i don't know which would be easier) to automate some actions.

We need to export drawings to Cadence on a routine basis.

But we need to explode tables & some text first.

So I want use a macro/script to automate this preperation so doesn't get forgotten.

Has anyone one done anything like this?

Which is better a Macro or a script?

Any advice appreciated!

Thanks J.  

RE: Automate Export & some commands

I believe you have about the same tools available with a script or button macro. A script file is easier to read & edit.  A macro allows a pause of commands for user input.  I think with either a script or macro you'd need to include some lisp that will allow you to select only tables.

By exploding text do you mean exploding mtext to text?

RE: Automate Export & some commands

(OP)
Hi CarlB,

Thanks for your reply.

Yes, MText to Text. A little thing but gets overlooked creating import errors.

To show my ignorance what do you mean by "lisp"?

Regards

J

RE: Automate Export & some commands


A programming language built-in to AutoCAD;Lisp stands for "lost in stupid parentheses" :)
Is not avaliable in LT version.
Is covered in AutoCAd "help"  Customization Guide.

You can type lisp statements on the command line (enclosed in parentheses), and can include in scripts & macros. More powerful use is in stand-alone routines.

For example, type the following on the command line (or copy/paste) to select all tables, which is then the "previous" selection set:

(ssget "x" '((0 . "ACAD_TABLE")))

 

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