create a sub-assembly with a macro

Jun 19, 2007 2 Replies

Hi, i would like to create a sub-assembly with macro but i can't find the correct function to do this



can you help me ?



Alex



Use the macro recorder, do what you need to do and edit the macro to suit your needs.

hi, i have already uses the macro recorder but anything happend

the macro recorder save :

---------------begin code--------------------

Dim swApp As Object Dim Part As Object Dim SelMgr As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Dim Feature As Object

Sub main()

Set swApp = Application.SldWorks

Set Part = swApp.ActiveDoc Set SelMgr = Part.SelectionManager

End Sub

---------------end code----------------------

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required