Author Topic: Can file be opened, one method  (Read 19216 times)

0 Members and 1 Guest are viewing this topic.

LE

  • Guest
Re: Can file be opened, one method
« Reply #30 on: September 06, 2006, 07:25:54 PM »
...make sense?

Yep....

Claro como el lodo Glenn -  :-)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Can file be opened, one method
« Reply #31 on: September 06, 2006, 07:28:27 PM »
So then if I set it back after the first foreach statement, then it should be all good?  That is how I have it right now.
Tim

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

Please think about donating if this post helped you.

Glenn R

  • Guest
Re: Can file be opened, one method
« Reply #32 on: September 06, 2006, 07:31:44 PM »
BTW, Tony did make SPECIFIC mention, that if you change the owrking database for whatever reason, make VERY sure you reset when you're done or Acad could become unstable at best, crash at worst.

Quote
So then if I set it back after the first foreach statement


I suppose you could, but you would want to make damn sure that any possible error is trapped and if fatal enough, reset the working database back in the catch.

LE, the 'using' statement with the 'new database' makes sure the new database is deleted (C++) / disposed (C#) when the using statement's scope ends.

Cheers,
Glenn.
« Last Edit: September 06, 2006, 07:33:06 PM by Glenn R »

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Can file be opened, one method
« Reply #33 on: September 06, 2006, 07:33:54 PM »
Thanks for keeping an eye on my coding Glenn.  It is very helpful, and I appreciate it.  :-)
Tim

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

Please think about donating if this post helped you.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Can file be opened, one method
« Reply #34 on: September 06, 2006, 07:46:01 PM »
Thanks for keeping an eye on my coding Glenn.  It is very helpful, and I appreciate it.  :-)

... as do we all. Thanks for the illumination Glenn.

//kwb
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.

LE

  • Guest
Re: Can file be opened, one method
« Reply #35 on: September 06, 2006, 07:46:24 PM »
Thank you Glenn.

Quote
Claro como el lodo -> clear as mud....

Tim;

For some reason your code posted has a lot of squares characters and it is somehow confused at least for my eyes.... and yes you have the call of "using" statement.... before opening the new database....

Thanks.

Glenn R

  • Guest
Re: Can file be opened, one method
« Reply #36 on: September 06, 2006, 08:07:26 PM »
The squares are from me - tab characters/spaces that I was trying to remove/got added, to get the formatting right when I pasted in the code.

Yes, Tim does have the 'using' for the new database, however the issue I was referring to was the WorkingDatabase and the changing and resetting of it.

To all, you're welcome.

Cheers,
Glenn.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Can file be opened, one method
« Reply #37 on: September 06, 2006, 09:38:45 PM »
... as do we all. Thanks for the illumination Glenn.

Indeed.

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