TopSolid V6 - PushElementOnStack

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, Daniel, jacs

Fred_44780
Private
Private
Posts: 3
Joined: Sat Mar 16, 2019 1:19 pm
TopSolid Module: TopSolid'SheetMetal
TopSolid Version: 6.19

TopSolid V6 - PushElementOnStack

Unread post by Fred_44780 » Sat Feb 08, 2020 10:57 pm

Hello everyone, I'm looking to "click" (select) the element "@ 2352" which corresponds to a view of a drawn document (.dft).

For example, here is my code:

Code: Select all

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        TopApp = New TopSolid.Application
        TopDoc = TopApp.CurrentDocument
        TopElt = TopDoc.Elements.Item("@2352")

        With TopApp

            .PushElementOnStack(TopElt)
            .ExecuteMacroKeepStack("C:\Missler\V619\d\l\analyse")

        End With

End Sub
The purpose of this is to execute the "analysis" function of TopSolid, and rather than manually clicking on the view ("@ 2352") I would like to do it automatically. I tried to use the "PushElementOnStack" function without success. Anyone have any idea?

Thank you..

Fred_44780
Private
Private
Posts: 3
Joined: Sat Mar 16, 2019 1:19 pm
TopSolid Module: TopSolid'SheetMetal
TopSolid Version: 6.19

Re: TopSolid V6 - PushElementOnStack

Unread post by Fred_44780 » Fri Feb 21, 2020 6:39 pm

Good morning all,

To summarize and relaunch my subject, I would have to modify the .lip file of the analyze function by integrating the element "@ 2352" and therefore withdraw its functioning since the function requires an element to analyze.

Cordially

Post Reply