Orcad import .bom file into database
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Orcad import .bom file into database

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Dan
Guest





Posted: Tue Dec 21, 2004 4:36 pm    Post subject: Orcad import .bom file into database Reply with quote

I have a design in Orcad. I generated the Annotate..., then Bil of
Materials...

I need to make a microsoft Acces database with components for my
design. I make a Databse.mdb database for my project with Contol
Panel/ODBC settings...

In Orcad: Option/Cis Configuration... when I chose new and then I
put my Database.mdb it says I have no tables in my database.

When I should make tables and how I import .bom file in my database
acces?

(In Orcad book after generate .bom file says :

"You can directly import this file into your database."
BUT HOW???)

..what I understand...
- make .bom file for design
- set database type
- create configuration file
(when I make the tables and how I import my .bom file in database???)

Thanks,
Back to top
Steve at fivetrees
Guest





Posted: Tue Dec 21, 2004 5:00 pm    Post subject: Re: Orcad import .bom file into database Reply with quote

"Dan" <dan.costin@gmail.com> wrote in message
news:f4e089e0.0412210336.5b1f9123@posting.google.com...
Quote:
I have a design in Orcad. I generated the Annotate..., then Bil of
Materials...

I need to make a microsoft Acces database with components for my
design. I make a Databse.mdb database for my project with Contol
Panel/ODBC settings...

I do exactly this (albeit with MySQL, rather than [spit] Access) - however I
do it manually. The Orcad .bom file format is not easily parsed - it's
columnar with line-breaks in strange (to a parser) places. It'll also depend
on the structure of your database, which Orcad has no knowledge of. I use
the manual database entry phase as a sanity check. Even with complex boards,
it doesn't take long (assuming a decent database entry system).

My structure is:
- part type (resistor, capacitor, IC etc)
- part (keyed to part type: e.g. 10k resistor)
- assembly (i.e. the board the parts are used in)
- part instance (keyed to part and assembly: e.g. R1)
- part source (keyed to part: supplier and price)

A tip: within the part instance record, allow yourself a part ID (e.g. R43)
and an old part ID. This comes in handy at back-annotation time. Copy all
the part IDs to the old part ID fields, and then use the old part IDs to
assign the new reference to the new part ID. If it all goes pear-shaped, you
can back out by copying all the old part IDs back to the part ID fields.
(I've automated the back-annotation phase with a PHP script which reads the
diff file.)

HTH,

Steve
http://www.fivetrees.com
Back to top
Nicholas O. Lindan
Guest





Posted: Tue Dec 21, 2004 7:16 pm    Post subject: Re: Orcad import .bom file into database Reply with quote

"Steve at fivetrees" <steve@NOSPAMTAfivetrees.com> wrote

Quote:
The Orcad .bom file format is not easily parsed -
it's columnar with line-breaks in strange (to a parser) places.

If it is the same as I remember (a DOS version) it was
bad, but not that bad. I remember doing it in AWK in not
too much time, hour or two, and most of that was figuring
out AWK - there isn't much to figure out.

Will the version of Orcad the OP is using send the BOM
out in csv form? Naw, probably not, or the question wouldn't
be asked.

--
Nicholas O. Lindan, Cleveland, Ohio
Consulting Engineer: Electronics; Informatics; Photonics.
Remove spaces etc. to reply: n o lindan at net com dot com
psst.. want to buy an f-stop timer? nolindan.com/da/fstop/
Back to top
Steve at fivetrees
Guest





Posted: Tue Dec 21, 2004 7:53 pm    Post subject: Re: Orcad import .bom file into database Reply with quote

"Nicholas O. Lindan" <see@sig.com> wrote in message
news:EeWxd.7607$yK.872@newsread3.news.atl.earthlink.net...
Quote:
"Steve at fivetrees" <steve@NOSPAMTAfivetrees.com> wrote

The Orcad .bom file format is not easily parsed -
it's columnar with line-breaks in strange (to a parser) places.

If it is the same as I remember (a DOS version) it was
bad, but not that bad. I remember doing it in AWK in not
too much time, hour or two, and most of that was figuring
out AWK - there isn't much to figure out.

Agreed. (The current version writes the .bom file in essentially the same
format as the old DOS version.) It can be scripted, for sure. I consciously
chose to go the manual route.

Quote:
Will the version of Orcad the OP is using send the BOM
out in csv form? Naw, probably not, or the question wouldn't
be asked.

Not as such - but I've just checked and there are "Place each part entry on
a separate line" and "Open in Excel" options. These surely simplify the
task.

Steve
http://www.fivetrees.com
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB