×
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

Assembly API, transversal code

Assembly API, transversal code

Assembly API, transversal code

(OP)
hey all,

i am new to the API world and have a couple of questions.  any help is greatly appreciated.

1.  is there a good book for a beginner to learn some basic API with relation to SW?  (i speak some spanish, but have not been exposed to VB, VBA, C++ etc. . total newbie!)

2.  we use a lot of aluminum extrusions and i've been setting them up using derived parts.  by this i mean i have the basic die shapes in a directory and then insert them as stock lengths into unique parts using the insert/base part command.  if i change a basic die shape and open an assembly which contains parts that use that base shape, the parts don't update because they are out of context.  to update them i have to open each part, edit in context (to get to the base part) and then refresh the unique part and the assembly model.  does anyone know a way to use API to query all the derived parts in an assembly and update them if their base parts have been changed?

thanks very much.  i appreciate any suggestions you all have.

earl patrick
epillsbury@bensonglobal.com
www.bensonglobal.com

RE: Assembly API, transversal code

Hi earl,

In the SolidWorks API Help, you have a great example to raverse the components or features in the FeatureManager. You can use it with the method ModelDoc.EditRebuild

I think it can helps.

Regards,

MHendler

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