create a sub-assembly with a macro

Discussion in 'SolidWorks' started by alexkickstand, Jun 19, 2007.

  1. 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
     
    alexkickstand, Jun 19, 2007
    #1
  2. alexkickstand

    Dave Guest

    Use the macro recorder, do what you need to do and edit the macro to
    suit your needs.
     
    Dave, Jun 19, 2007
    #2
  3. 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----------------------
     
    alexkickstand, Jun 19, 2007
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.