Author Topic: document manager  (Read 12512 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: document manager
« Reply #15 on: October 11, 2010, 02:33:15 PM »
You're welcome Bernd, it was just a sketch code of the ideas expressed in the thread, I'm sure it could be greatly improved upon  :-)

stevesfr

  • Newt
  • Posts: 54
Re: document manager
« Reply #16 on: October 11, 2010, 03:26:50 PM »
Lee, my fault somewhere...
copied it again and loaded it into vanilla drawing and presto !!!!!!!!!
sorry, should have investigated further before pulling the panic chain...
Steve
Can't remember what I'm supposed to forget.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: document manager
« Reply #17 on: October 11, 2010, 03:34:57 PM »
No worries Steve  8-)

Amsterdammed

  • Guest
Re: document manager
« Reply #18 on: October 12, 2010, 05:08:28 AM »
Now the next thing would be (but here you need a reactor for and i don't like them) to close the docs once you close the dwg......

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: document manager
« Reply #19 on: October 12, 2010, 11:22:55 AM »
Quote
Now the next thing would be (but here you need a reactor for and i don't like them) to close the docs once you close the dwg......

OpenDCL - Modeless Dialog - OnDocActivated (fires when closing or switching documents)
                                        EnteringNoDocState (just what it says)

Dialog could be used as a GUI or made invisible to just utilize the Events.

just a thought.

jb
James Buzbee
Windows 8

Amsterdammed

  • Guest
Re: document manager
« Reply #20 on: October 12, 2010, 12:27:36 PM »
not just a thought, burt a good one :-)

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: document manager
« Reply #21 on: October 13, 2010, 01:35:28 PM »
OK, so I got sucked into a challenge and now I can't back out!

I haven't done dictionary stuff in a while: I'm attempting to store a list of drawing names but can't seem to figure it out.  (cons 3 dwgList) returns (3 "dwg1" "dwg2") and errors while entmaking. 

Lee, I saw you used ldata: I stay as far away from that as possible.  I don't know if they fixed that but I had a slew of drawings corrupted back in 2004 thanks to Ldata (so did a lot of other people).

So whats the best way to store associated drawings?

Oh, a little teaser:



James Buzbee
Windows 8

T.Willey

  • Needs a day job
  • Posts: 5251
Re: document manager
« Reply #22 on: October 13, 2010, 01:41:26 PM »
You could store them as Xrecords within a custom dictionary within the drawings.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: document manager
« Reply #23 on: October 13, 2010, 01:43:28 PM »
Lee, I saw you used ldata: I stay as far away from that as possible.  I don't know if they fixed that but I had a slew of drawings corrupted back in 2004 thanks to Ldata (so did a lot of other people).

Oh right - that's news to me, thanks James. I see quite a few other guys here use LData, so I thought it might be the way to go  :-)

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: document manager
« Reply #24 on: October 13, 2010, 01:51:24 PM »
Tim, that's what I'm trying to do.  I get caught up with:

(cons 3 dwgList) returns (3 "dwg1" "dwg2") and errors while entmaking. 

Lee, maybe they fixed it - but once burned . . ..

Thanks for any help!
James Buzbee
Windows 8

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: document manager
« Reply #25 on: October 13, 2010, 01:54:44 PM »
I find data dictionaries and XRecords easier to manage through (vla-...), if that helps.  The "collection" nature of the dictionary makes it a little easier to follow than with individual DXF dotted pairs.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

T.Willey

  • Needs a day job
  • Posts: 5251
Re: document manager
« Reply #26 on: October 13, 2010, 01:57:39 PM »
Tim, that's what I'm trying to do.  I get caught up with:

(cons 3 dwgList) returns (3 "dwg1" "dwg2") and errors while entmaking. 

Lee, maybe they fixed it - but once burned . . ..

Thanks for any help!

Maybe this by MP will help.

[ http://www.theswamp.org/index.php?topic=5003.0 ]
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: document manager
« Reply #27 on: October 13, 2010, 02:18:17 PM »
Great thread - thanks Tim for the link (and many thanks to MP for the explanations).

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: document manager
« Reply #28 on: October 13, 2010, 03:12:54 PM »
Ok, I guess I'll punt:

(cons 3 dwglist)

returns

(3 . "Drawing1.dwg;Drawing2.dwg;Drawing3.dwg")<-- note this is one string, the files seperated by a smi-colon.  I'll parse the string that way.

See what I'm getting at?

if dwglist were a list of strings: (setq  dwgList(list "Drawing1.dwg" "Drawing2.dwg" "Drawing3.dwg"))

I am unable to create the proper assosiation with (cons 3 dwgList):

That returns (3 "Drawing1.dwg" "Drawing2.dwg" "Drawing3.dwg")

??
James Buzbee
Windows 8

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: document manager
« Reply #29 on: October 13, 2010, 03:25:43 PM »
What about a list?
eg.
Code: [Select]
(cons 3 (list dwglist))
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox