Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assembly API, transversal code

Status
Not open for further replies.

earlpatrick

Structural
May 17, 2002
15
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
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor