+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member UMRVJX's Avatar
    Using
    AutoCAD 2008
    Join Date
    Jun 2010
    Posts
    17

    Wink Massage Box show when i open .dwg

    Registered forum members do not see this ad.

    hi...once again i am here with some Q. i have some dwg when i open these dwgs they shown first a massage box with some massage (its not error its custom massage which write by dwg provider) after that dwg open and working normally....any idea how i add my own custom massage in dwg.

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    2,998

    Default

    Just add the line below into your acaddoc.lsp file:

    Code:
    (alert "Your message here!")
    But remember that this will work only on your workstation - there is no way to ship the drawing with that message to someone.

    Regards,

  3. #3
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,718

    Default

    Quote Originally Posted by msasu View Post
    there is no way to ship the drawing with that message to someone.
    Hehe... actually there is, by using a protected namespace and stored the LISP data in the drawing dictionary - but I wouldn't advise it
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    2,998

    Default

    Sound very interesting!!!
    Now, that you opened the subject, how about an example?
    Thanks!

    Regards,

  5. #5
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,718

    Default

    Quote Originally Posted by msasu View Post
    Sound very interesting!!!
    Now, that you opened the subject, how about an example?
    Thanks!

    Regards,
    Certainly, but its a taboo subject due to the obvious ease of implementing self-running malicious code...

    http://www.theswamp.org/index.php?topic=6870.0
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  6. #6
    Super Moderator Cad64's Avatar
    Computer Details
    Cad64's Computer Details
    Operating System:
    Windows 7 Profesional x64
    Computer:
    XI Computers
    Motherboard:
    Asus P8Z77-V Pro
    CPU:
    Intel Core I7 3770K 4.1 Ghz Quad Core 3rd Gen
    RAM:
    8GB DDR3 @ 1333MHz
    Graphics:
    Nvidia GeForce GTX 570 1280MB GDDR5
    Primary Storage:
    SATAII 500GB 7200 RPM
    Secondary Storage:
    Western Digital My Book Studio Edition II - 2TB capacity
    Monitor:
    HPf2105 21" LCD Widescreen & Cintiq 21ux
    Discipline
    Multi-disciplinary
    Cad64's Discipline Details
    Occupation
    Freelance Digital Artist
    Discipline
    Multi-disciplinary
    Details
    In a nutshell, I create 3D models from the client's CAD files or design sketches, which I then use to produce high quality rendered images. Click on the link in my signature to view my portfolio. I'm always looking for work, so let me know if you need any renders. :)
    Using
    3ds Max 2011
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    8,420

    Default

    Great, that's all we need. Another way for these idiots to distribute viruses.

    Would something like this end up infecting other drawings, like the educational plot stamp does? So if you xref this drawing, with this annoying message, into your drawing to use as a base, does your drawing now contain the message too?

    God I hope people don't start doing this.
    "Work Smart, Not Hard"

    Click to View My Portfolio ( Updated 05/21/2013 ) --->
    http://www.rdeweese.com/

  7. #7
    Super Member nukecad's Avatar
    Computer Details
    nukecad's Computer Details
    Operating System:
    XP64
    Computer:
    Various machines.
    Using
    AutoCAD LT 2006
    Join Date
    Apr 2009
    Location
    NW Cumbria (English Lake District)
    Posts
    500

    Default

    Quote Originally Posted by Cad64 View Post
    Great, that's all we need. Another way for these idiots to distribute viruses.

    God I hope people don't start doing this.
    Here, here.
    *** Out of Beer Error ->-> Recovering Memory***

  8. #8
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,718

    Default

    Quote Originally Posted by Cad64 View Post
    Great, that's all we need. Another way for these idiots to distribute viruses.

    Would something like this end up infecting other drawings, like the educational plot stamp does? So if you xref this drawing, with this annoying message, into your drawing to use as a base, does your drawing now contain the message too?

    God I hope people don't start doing this.
    Its not too easy to do to be honest Rod, so I wouldn't get your hopes up - it was just an example of what can be done.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  9. #9
    Senior Member bonehead411's Avatar
    Computer Details
    bonehead411's Computer Details
    Operating System:
    XP Pro 2002 SP3
    Computer:
    HP xw6400 Workstation
    CPU:
    Intel Xeon E5320 @ 1.86 GHz Quad Core
    RAM:
    3 GB RAM
    Graphics:
    NVIDIA Quadro FX 1500
    Monitor:
    HP LP2465
    Using
    AutoCAD LT 2011
    Join Date
    Jan 2007
    Location
    Beverley, East Yorkshire, England
    Posts
    219

    Default

    Open a drawing and get a massage? You can write a LISP for that? That's as good a reason as I've ever found for upgrading from LT!

  10. #10
    Super Member Dana W's Avatar
    Computer Details
    Dana W's Computer Details
    Operating System:
    Windows 8 64 bit
    Computer:
    Dell XPS ONE 2710
    Motherboard:
    Dunno
    CPU:
    Intel I-5 3330S @ 2.7 Ghz
    RAM:
    6 Gb
    Graphics:
    On board barely adequate
    Primary Storage:
    1 Terrabyte
    Secondary Storage:
    1 Terrabyte external
    Monitor:
    All in one 27" touch & pen
    Discipline
    Construction
    Dana W's Discipline Details
    Occupation
    Independent Architectural Draftsman
    Discipline
    Construction
    Details
    Residential Homes, Construction and Renovation
    Using
    AutoCAD LT 2009
    Join Date
    Feb 2010
    Location
    Chuluota, Florida
    Posts
    1,770

    Default

    Registered forum members do not see this ad.

    Massage? (perk) Can they do that with code now? Does the massuese have to be male?


    Oh, wait. ..message... I get it now.
    Yogi Berra: "In theory there is no difference between theory and practice. In practice there is."

Similar Threads

  1. Exception massage error
    By brl2008 in forum AutoCAD Bugs, Error Messages & Quirks
    Replies: 0
    Last Post: 17th Mar 2010, 09:32 pm
  2. Error Massage Another Session
    By ENGOMAR in forum AutoCAD General
    Replies: 1
    Last Post: 3rd Feb 2010, 10:48 pm
  3. Cant open the window for open or save
    By Lucas_ in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 16th May 2008, 10:42 am
  4. 3D modelling - show a door leaf open
    By Geoffers in forum AutoCAD 3D Modelling & Rendering
    Replies: 6
    Last Post: 24th Jan 2008, 02:41 am
  5. LIghts that do not show up
    By ROCKHOPPER1 in forum AutoCAD General
    Replies: 0
    Last Post: 1st Feb 2007, 10:18 pm

Bookmarks

Posting Permissions

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