×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Insert BOM into Drawing with API???

Insert BOM into Drawing with API???

Insert BOM into Drawing with API???

(OP)
I have written a Small VB App that Creates a drawing From an Open Model and works quite well But I want to create a Bill Of Material And I cannot Find the API hook to do this! I have recorded a macro in SW and looked at the code there and it uses a command - part.InsertBOM ...but nothing like that exists in the VB API and the Macro Code does not work in VB (complains about the InsertBOM command)...Please help!

I also have another problem in connection with getting the PRP value from a drawing but saw a reference in another thread will comment there.

Thanks Guys..

RE: Insert BOM into Drawing with API???

The InsertBomTable method is only accessible from the View object. You can obtain the View object from the DrawingDoc object.

retval = View.InsertBomTable (Template, Xloc, Yloc, Errors)

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.

RE: Insert BOM into Drawing with API???

DohPee,
What version of SW are you running.  I do not beleave that you can insert a BOM through the API in versions prior to 2001+.  I am almost certain you can not in 2000.  

BBJT CSWP

RE: Insert BOM into Drawing with API???

I keep forgetting to ask the version...
BBJT, I believe that you are correct.

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.

RE: Insert BOM into Drawing with API???

(OP)
Thanx Guys .. Im using SW2001 SP14 ..and your right No Insert BOM For Now...
What I want to try is Run a Macro From my VB app and sendkeys is not really an option as there are two many factors that can influence something going wrong (Namely our design team play with to much s*&t they WILL cause an error.) :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources