Author Topic: DBX Testing  (Read 6228 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
DBX Testing
« Reply #15 on: August 16, 2005, 02:59:18 AM »
hehehe
I'd just finished reading Tony's post before I checked in here ... and I thought the same thing ... interesting. Glenn may have tried some DBX stuff in NET, so perhaps he can enlighten us.

 I had a recollection of there being an ARX  distributed that helped with the bitmaps, but thought it may have been through the ADN. Thanks for saving me the search Jeff.

This stuff needs to work in 2002 to 2006.
For some reason, I thought the process would be slower than it is. The speed isn't all that important, but at least we're not left looking at an inactive screen too much.

We'll look at the alternatives next year.
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.

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
DBX Testing
« Reply #16 on: August 16, 2005, 09:03:39 AM »
Quote from: Kerry Brown
...
Seven, I don't understand the comments you are making in the code.
What could possibly be simpler and cleaner than an OR statement, in line. ...


Sorry I wansnt able to get back to you yesterday Kerry. I had a "golf tournament" I had to attend yesterday. (I hate thos darn PR things.) But anyways...

No, 'or' is a very clean way to load up the vars. But whenever loading up global vars on an unknown enviroment I try to test my vars before I load/use them them. (I know your prefixing your vars, and the chance of a user using that exact same var is highly unlikely but you never know.)

I just tend to lean towards something like this setup: (Thats all I was trying to say. ...It was no biggie. I mean, I was by no means trying to point out any mistakes, just personal preferences.)

(if (or a e i o u) "I found a var" "Var's clear")
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
DBX Testing
« Reply #17 on: August 16, 2005, 10:25:24 PM »
Quote from: Jeff_M
!CHIME! :D

...... the fix in R2006+.
... Of course, I cannot yet test this.....but it sounds promising.


That <the ability to test> will probably change shortly ...
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.

MickD

  • King Gator
  • Posts: 3637
  • (x-in)->[process]->(y-out) ... simples!
DBX Testing
« Reply #18 on: August 17, 2005, 12:49:39 AM »
would something like this be any help(C#)?
Code: [Select]

public static Database GetBlockFromFile(string filename)
{
Database dbfile = new Database(false,true);
dbfile.ReadDwgFile(filename,System.IO.FileShare.None,false,null);
return dbfile;
}

it gets a db from file and can be use to insert it as a block but I can't see why you can't read it once you have it in memory(?)
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien