Hi,
How I can select element in TopSolid from API ? I can't find any functions, with this method.
Regards
Maciekkk
Select element
Moderators: remi77, jacs, Daniel
-
- Master Corporal
- Posts: 43
- Joined: Fri Apr 29, 2011 7:16 am
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.17
- Location: Hannover
- Contact:
Here
Dim TopApp As TopSolid.Application
Dim TopDoc3D As TopSolid.Document
Dim ker As TopSolid.TopAskAnswer
Dim jelolo As String
Dim val As TopSolid.Element
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TopApp = New TopSolid.Application
TopDoc3D = TopApp.CurrentDocument
TopApp.Asks.Question = "Witch shape do you choose"
ker = TopApp.Asks.AskElement(Val)
If ker = TopSolid.TopAskAnswer.topAskAnswerOK Then
jelolo = Val.NameOrIdentifier
MessageBox.Show("You choose " & jelolo & " this shape ")
Else
End If
End Sub
Dim TopApp As TopSolid.Application
Dim TopDoc3D As TopSolid.Document
Dim ker As TopSolid.TopAskAnswer
Dim jelolo As String
Dim val As TopSolid.Element
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TopApp = New TopSolid.Application
TopDoc3D = TopApp.CurrentDocument
TopApp.Asks.Question = "Witch shape do you choose"
ker = TopApp.Asks.AskElement(Val)
If ker = TopSolid.TopAskAnswer.topAskAnswerOK Then
jelolo = Val.NameOrIdentifier
MessageBox.Show("You choose " & jelolo & " this shape ")
Else
End If
End Sub