×
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

AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

(OP)
In R2000, I could use this line of LISP code...

(command "-insert" "bill_note_left" P4 (* (getvar "dimscale") 1) "" "0" AttReq AttRSP JOB+PTSQ2 AttRev AttRelBy AttRelDate AttDesc AttMfg AttMisc AttCode SNStr LN AttIMNO AttIMDESC IN) ;; insert block with attributes

In R2004, once it hits the attribute the code stops...

(command "-insert" "bill_note_left" P4 (* (getvar "dimscale") 1) "" "0" ...

Any remedies to this?

RE: AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

I don't have a clue to your problem, I'm just curious.  Why are you multiplying the DIMSCALE times 1?

RE: AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

(OP)
Great question.  I have no idea.  This program was written three years ago when we upgraded to 2000, and I have no idea why I wrote it this way.  It does however, work in 2000.

RE: AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

Check TEXTEVAL.  I'm assuming you're assigning values to ...

Wait a minute, are you aware that ATTREQ is an AutoCAD system variable?  Are you resetting it to a variable within your lisp function?

... anyway, TEXTEVAL determines how autocad text functions evaluate strings in commands.

RE: AutoCAD 2000 to 2004 - AutoLISP Insert into Dialog Boxes...

(OP)
The attdia variable is a little touchier in 2004 vs 2000!

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