Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

SW API set configuration

Status
Not open for further replies.

jtarter

Mechanical
Jan 2, 2004
5
0
0
US
Does anyone know how to set the active configuration? I can set the configuration in my VB form to the current but then after the user enters in a value in the combo box I want it to change the current configuration to reflect that value.

Thanks.
 
Replies continue below

Recommended for you

Try the following:

Set Model = swApp.ActiveDoc
.....
Model.ShowConfiguration2 ("Config name")

for earlier API versions it should be:
Model.ShowConfiguration ("Config name")

Regards
 
Does anyone now how to change the active configuration of a part in an assembly? I know to chage a configuration in an active part you use:


Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Part.ShowConfiguration "configuration name"
End Sub

My problem is I want to change the configuration while in an assembly.
 
Status
Not open for further replies.
Back
Top