Creating a component


Your Ad Here


Topsolid online Help Index

This example shows how to create a component.

 

Dim TopDoc As TopSolid.DocumentDesign

 

...

 

    Dim compo As TopSolid.Component

 

    ' create component

    

    Set compo = TopDoc.Components.Add("C:/projects/part1.top", 0.02, 0, 0)

    

    ' add to Assembly

    

    Call TopDoc.Assembly.Elements.Add(compo)

    

    ' release component

    

    Set compo = Nothing

...

 

Topsolid online Help Index

Your Ad Here