Hi TopSolid Users and Developers
I wrote a application that starts TopSolid, Create a New file and Add some components of my own library in predefined coordinates.
Set TopApp = New TopSolid.Application
Set TopDoc = TopApp.Documents.Add("top")
Dim compo As TopSolid.Component
If Op1v.Value = True Then
Set compo = TopDoc.Components.AddStandard("POLIMOLD 3D", "1- Buchas Quentes", Linha, Linha, "", "", Codigo, x1, 0, 0)
Call TopDoc.Assembly.Elements.Add(compo)
ElseIf Op02v.Value = True Then
Set compo = TopDoc.Components.AddStandard("POLIMOLD 3D", "1- Buchas Quentes", Linha, Linha, "", "", Codigo, x1, 0, 0)
Call TopDoc.Assembly.Elements.Add(compo)
Set compo = TopDoc.Components.AddStandard("POLIMOLD 3D", "1- Buchas Quentes", Linha, Linha, "", "", Codigo, -x1, 0, 0)
Call TopDoc.Assembly.Elements.Add(compo)
End If
I found few problems as listed bellow:
1. These Standard Componet has drivers... Is there a way to change or add some value for these drivers using VB?
2. I tried to change the location of the inserted standard component but I couldn't. It is impossible to dimension the node of positioning... it appears in yellow color.
3. When i Insert these componetes using the menus Assembly include standard I usually put them in a coordinate system and is possible to enter a value of rotation for itself... How can I enable it on the standard component I've inserted using Vb?
4. The color of the components inserted using VB are always White... but my standard library was made using other colors to diferentiate the components (parts and sub components)
5. How could I use these application in the current opened TopSolid file?
I hope somebody could help me or answer something. Any help will be appreciated.
Add Standard Component using VB
Moderators: remi77, jacs, Daniel
- TopSolid2007
- Master Chief
- Posts: 133
- Joined: Thu May 10, 2007 4:28 pm
- Location: São Bernardo do Campo - SP
- Contact:
Add Standard Component using VB
TopSolid Users!!!!
- TopSolid2007
- Master Chief
- Posts: 133
- Joined: Thu May 10, 2007 4:28 pm
- Location: São Bernardo do Campo - SP
- Contact:
- D@vid
- Administator
- Posts: 82
- Joined: Mon Feb 19, 2007 10:29 pm
- TopSolid Version: 7.12
- Location: Nantes, France
- Contact:
I know it can be a bit frustrating, but TS developers has a lot of coding to do (especially now with the coming event of the brand new version), and they do read both languages but sometimes! Please contact your VAR or local support to ensure that your request has been received.
This forum is read by MS but is not a support mean or planing development for MS.
Hope this helps.
This forum is read by MS but is not a support mean or planing development for MS.
Hope this helps.
D@vid
TopSolid'Forum Administrator
TopSolid'Forum Administrator
- TopSolid2007
- Master Chief
- Posts: 133
- Joined: Thu May 10, 2007 4:28 pm
- Location: São Bernardo do Campo - SP
- Contact: