- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on looking at my scratch database and then inserting blocks into my layout based on what it finds. These are the steps that i have taken so far:
(setq fnam (c:wd_mdb_get_proj_scratch_dbnam nil))
(setq hdl (wd_mdb_GetHandle 1))
(wd_mdb_Open hdl fnam)
(setq lst (wd_mdb_GetRecs hdl "COMP" "TAGNAME,MFG,CAT,RATING1" "" "TAGNAME"))
At this point i get a list of lists of in this format:
(("TAGNAME" . "SU1005") ("MFG" . "PHOENIX CONTACT") ("CAT" . "2856812") ("RATING1" . "")))
Knowing this information i can go to our access database to get the block information using this API command
(setq filename (c:ace_get_footprint_fnam (list "MFG" "CAT" "ASSYCODE" "FLAG")))
And then insert the part using this API command
(c:wd_insymp filename (list 0.0 0.0) 0.0 1.0 nil)
Everything works. . . sort of. The part is inserted, it has the proper information attached to it. But when i run a bom report, it won't link to the right description found in our parts database. So it's not linking right. I see in the access database it carries a RECNUM for every part. Is there a way to attach that number so it carries through?
Thanks,
Solved! Go to Solution.