keeping the modeless box working in other dwgs

Started by andrew, December 09, 2009, 10:28:28 AM

Previous topic - Next topic

andrew

my project is a modeless box, i have a button that opens other dwgs.
is there another/better way to keep the box "working" or "loaded"  in other dwgs when they are opened via my project box, other then placing the lisp file call in my acaddoc.lsp

BazzaCAD

I think Kerry might be working on a tutorial on this topic.. (Kerry?)
In the meantime have a look at (vl-load-all) in the VLIDE help
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

andrew


Kerry

#3
I'm working on it when I have time ... burning candles both ends at the moment ..

but, I'm nibling away at it.
Perfection is not optional.
My other home is TheSwamp

Fred Tomke

Shall I do it? I'd use (vl-load-all ...), too.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Kerry


Fred,
If you have or can make time, it would be great if you do it. :)

I'm learning palettes as I go 'because I've not programmed then before, so your first hand experience will help.

It's a big topic .... and bigger if we start looking at Seperate-Namespace VLX options ( which should be seperate tutorial )

I had thought that several small demo/tutorials would be best .. but your thoughts may differ.

Thanks
Kerry



Perfection is not optional.
My other home is TheSwamp

Fred Tomke

Quote from: Kerry Brown on December 10, 2009, 01:08:19 AM
If you have or can make time, it would be great if you do it. :)

Can you keep a secret with you? I'm going to invent the 48-hours-day. I'm so close, but I afraid that I cannot make it!  :D

Seriously, because of the fact that I already use this I can easily copy and document it next night. I think it should be a easy solution just for understandig. The way the functionality is needed in each product is so specific, I'd prefer a simple solution - just like I would understand it.

I'm going to convert many old forms and even newer OpenDCL forms into palettes cause it's a great technology.
The start of the tutorial will be a ready palette which already works in the current drawing. I believe it would be the start of every palette form: make it happen in the current drawing and then manage it for the others.

I'd be glad to give the part of namespacing to anybody else because I do not understand this (yet). So I have the chance to extend my knowledge, too.

I think, andrew will sleep fitfully next night awaiting the tutorial  ;)

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

andrew

Quote from: Fred Tomke on December 10, 2009, 01:26:00 AM


I think, andrew will sleep fitfully next night awaiting the tutorial  ;)

Fred

hehe

anything to help the beginner odcl programer learn :)

Fred Tomke

Hi, Kerry and andrew, it took me a while. Please have a look here and - please - improve my English!

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

Quote from: Fred Tomke on December 11, 2009, 06:03:15 AM
Hi, Kerry and andrew, it took me a while. Please have a look here and - please - improve my English!

Fred

Amazing job Fred. Now I have to spend the next 2 hours reading this. :)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Kerry


Thanks Fred .. I have it bookmarked for reading too. :)
Perfection is not optional.
My other home is TheSwamp

andrew

Thanks Fred,
I also have it bookmarked for reading.


andrew

Fred,
nice work on the write up for the modeless form aside from not being able to get the nodocstate function not working everything else works nicely

would you happen to have a trick to get a dwg that was opened via odcl to be the active document?

BazzaCAD

Quote from: andrew on December 18, 2009, 11:51:52 AM
would you happen to have a trick to get a dwg that was opened via odcl to be the active document?

Try something like this...
Code (autolisp) Select
(vla-Activate (vla-item (vla-get-documents (vlax-get-acad-object)) "MyDWG.dwg"))
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

andrew

Thanks Bazza for the reply

but i get an error with this
; error: Automation Error. Description was not provided.

i dont know what that means
do you know?


have a good holiday