Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Jan 2, 2004
Messages
5
Location
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.
 
Try the following:

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

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

Regards
 
Thanks, for the tip. Though I figured it out. Also figured out how to attach and detach the design table.
 
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.

Part and Inventory Search

Sponsor

Back
Top