Author Topic: Question 30 goes here  (Read 36916 times)

0 Members and 1 Guest are viewing this topic.

LE

  • Guest
Re: Question 30 goes here
« Reply #60 on: September 16, 2005, 11:14:28 PM »
I want to thank you Luis, that was a most enjoyable challenge! I think the last time I had that much hacking fun is when I cracked the AutoCAD "student version" flag couple years back.

 :evil:

 :kewl:

The walls can hear...... shhhhhhhhhh   hehe

Yes.... there are some other stuff hidding.... waiting to be exposed....

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question 30 goes here
« Reply #61 on: September 16, 2005, 11:24:02 PM »
I want to thank you Luis, that was a most enjoyable challenge! I think the last time I had that much hacking fun is when I cracked the AutoCAD "student version" flag couple years back.

 :evil:

 :kewl:

The walls can hear...... shhhhhhhhhh hehe

It's a matter of public record (on the desk's news server at one time). I informed Autodesk personal privately how easy it was to crack. I've never shared the info with anyone except Mr. Wengerd, nor have I ever un-edumacated any drawings. I needed to be assured we weren't getting any crap from outside sources that would corrupt our drawings, so I wrote my own utility to detect student drawings before any damage could be done. Necessity being the mother of ...

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #62 on: September 17, 2005, 12:34:22 AM »
Coffee break, so ...

Just testing what NET info I can get ..
 
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Peter Jamtgaard

  • Guest
Re: Question 30 goes here
« Reply #63 on: September 17, 2005, 11:05:51 AM »
LE,

I am writing a course for Autodesk University and I would like to share this code with the attendees.

I will give you and the swamp credit. Can you email me your name and response off line to peter@cordecksales.com

I also have a program that I use to upload complete lisp routines into the dictionaries of a drawing. I used a vba macro to unpack them.

With this workaround I think I can bypass the vba and make it so the routine would run automatically without the user having the option to stop the vba macro. This would give the ability to add functionality (lisp functions) to any drawing seamlessly.

I will share the finished code with who ever wants it.

Two thumbs up !!

Peter Jamtgaard P.E.

Michael,

Very impress of all your effort... all we need to do is to place on top of our lisp file a call like:

Code: [Select]
(vl-load-com)

(vlax-ldata-put "reactorswiz" "stickto_free_version" nil t)

(alert "this is only a test")

(defun C:TST  ()
  (alert
    "I can be self loaded if you save the drawing\nAnd the next time you open it I will be back"))

Then make a protected separate namespace VLX, have our vlx place in the same folder as our drawing, load the vlx and saved the drawing and that's it....

Have fun!
Luis.

Kerry... Beers will wait for tomorrow, we are going for a wedding in Mexicali and the sun there is really something....

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #64 on: September 17, 2005, 06:07:24 PM »
Like I said, entdel inside out: kill the vlo-vl object then its dictionary. Bye!

This seems to do the job ...

(dictremove (namedobjdict) "WhizGigetalsuperduperDict")
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question 30 goes here
« Reply #65 on: September 17, 2005, 06:15:00 PM »
This seems to do the job ...

(dictremove (namedobjdict) "WhizGigetalsuperduperDict")

Actually that's not enough Kerry, you have to delete the the vlo-vl object then its dictionary.

If you merely delete the WhizGigetalsuperduperDict and then save the drawing, the vlo-vl object still persists (and will still function).
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #66 on: September 17, 2005, 06:28:09 PM »
Hi Michael,

Works in my testing.
Run the (dictremove ...
Save ..

ahhh ..
The TST command will continue to be available in the Document untill the drawing is closed ..
but will not persist for the next time the document is Active.

So we may both be correct :)  sort'a
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question 30 goes here
« Reply #67 on: September 17, 2005, 06:30:11 PM »
Hi Michael,

Works in my testing.
Run the (dictremove ...
Save ..

ahhh ..
The TST command will continue to be available in the Document untill the drawing is closed ..
but will not persist for the next time the document is Active.

So we may both be correct :) sort'a

Re-Open that drawing and see what happens.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #68 on: September 17, 2005, 06:31:02 PM »
Command: tst
Unknown command "TST".

and no in-line alert Dialog ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question 30 goes here
« Reply #69 on: September 17, 2005, 06:40:17 PM »
Here's what I did yesterday --

(1) I deleted the dictionary entry, left the vlo-vl object alone, saved the dwg and re-opened it. Vlo-vl object would fire. I did this a couple times to confirm.

(2) I started over and deleted the vlo-vl object, then it's parent dictionary, saved and re-opened - quiet as a door mouse.

Today --

Just performed step (1) again for shyts and gyggles; didn't fire. Did it again, didn't fire.

Damn ghosts in the machine ...
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #70 on: September 17, 2005, 06:44:32 PM »
hehehehe

dangers when working at the bleeding edge ..

some I know would recomend a mature bourbon.

Just a note for Luis.
Thanks. I've learnt more, and had more fun with this than has been the case for a long time ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Question 30 goes here
« Reply #71 on: September 17, 2005, 07:02:11 PM »
hehehehe

dangers when working at the bleeding edge ..

some I know would recomend a mature bourbon.

Yep. Still, I feel more comfortable with total eradication. :pissed:

Just a note for Luis.
Thanks. I've learnt more, and had more fun with this than has been the case for a long time ..

I second that, lotsa fun. :laugh:
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

GDF

  • Water Moccasin
  • Posts: 2081
Re: Question 30 goes here
« Reply #72 on: November 28, 2005, 04:21:59 PM »
AcDbXrecord

;;;Message Service            (c)2001, John R. Fair III;  $50 Bonus Winner

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;    Message.lsp is a program to store and retrieve       
;;; information about a drawing.  Use it to save notes to   
;;; yourself or others, information about "odd" non-standard
;;; things you were asked to do to a drawing.  Saves right in
;;; the drawing, retrieve the message the next day, next week
;;; or next year.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Question 30 goes here
« Reply #73 on: November 29, 2005, 11:01:53 AM »
Please disregard my previous post, I was way off.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

LE

  • Guest
Re: Question 30 goes here
« Reply #74 on: November 29, 2005, 11:15:53 AM »
Please disregard my previous post, I was way off.

 :-)

Still, that routine is a good one, Gary.