Results 1 to 3 of 3

Thread: problem with text box

  1. #1
    Member
    Join Date
    2010-07
    Posts
    29

    Default problem with text box

    i got some lisp to create box in mtext but what is happening after using the lisp the object snap modes in osnap setting become all unchecked...can u help me to repair this 'coz im not good in lisp programming. thanks in advance.
    Attached Files Attached Files

  2. #2
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: problem with text box

    It's setting the OSMODE to 32 (Intersection only) after it's saved OSMODE to a variable. Then after asking for the 2 points it resets OSMODE to the old value. Unfortunately it doesn't cater for the user pressing Esc during one of these getpoint lines. If you press Esc the entire function stops dead, thus the OSMODE is never set back. There are ways of fixing this using what's known as error handling.

    I've made a quick fix in the LSP attached. See if this works.
    Attached Files Attached Files
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  3. #3
    Member
    Join Date
    2010-07
    Posts
    29

    Smile Re: problem with text box

    Quote Originally Posted by irneb View Post
    It's setting the OSMODE to 32 (Intersection only) after it's saved OSMODE to a variable. Then after asking for the 2 points it resets OSMODE to the old value. Unfortunately it doesn't cater for the user pressing Esc during one of these getpoint lines. If you press Esc the entire function stops dead, thus the OSMODE is never set back. There are ways of fixing this using what's known as error handling.

    I've made a quick fix in the LSP attached. See if this works.
    yes! its working fine now...thanks!

Similar Threads

  1. Text Problem
    By john.buckerfield in forum AutoCAD General
    Replies: 1
    Last Post: 2010-03-16, 05:30 AM
  2. Problem Text
    By tsmethurst in forum AutoCAD General
    Replies: 3
    Last Post: 2010-02-26, 01:11 AM
  3. OLE text problem
    By wsittner in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2009-05-01, 03:31 PM
  4. Text Problem
    By jbayne in forum ACA General
    Replies: 2
    Last Post: 2006-09-14, 12:55 PM
  5. Text Problem
    By Scott_Bloss in forum Revit Architecture - General
    Replies: 2
    Last Post: 2004-10-15, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •