Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add Assembly

1 REPLY 1
Reply
Message 1 of 2
JEHADESIGN
254 Views, 1 Reply

Add Assembly

Hi

When we use the Productivity/Add Assembly functionality, it produce a Weldment Assembly instead of a Standard Assembly.

How do we change the setup to use a Standard Assembly ?

 

Claus

1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: JEHADESIGN

Hi,

 

Maybe your templates got overwritten?

 

I think the utility you mentioned is using code similar to the one below to create a new assembly, so with this you could check what template is being used to create the assembly.
Then you could open up that assembly directly in Inventor to see what sort of assembly it is.

Public Sub NewAssembly()
    Dim templateDoc As String
    templateDoc = _
        ThisApplication.FileManager.GetTemplateFile( _
            kAssemblyDocumentObject, _
            kDefaultSystemOfMeasure, _
            kDefault_DraftingStandard)
            
    MsgBox (templateDoc)

    Dim doc As Document
    Set doc = ThisApplication.Documents.Add( _
        kAssemblyDocumentObject, _
        templateDoc, _
        True)
End Sub

I hope this helps.

 

Cheers,

 

 



Adam Nagy
Autodesk Platform Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report