FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Assistance FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Assistance FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

How to call Flexpro in visual basic 2013?

Page d'accueil ' Communauté ' Automation et VBA ' Comment appeler Flexpro dans visual basic 2013 ?

  • Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Anonyme, le il y a 10 années et 5 mois.
Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #35191
    Anonyme
    Invité

    I try to call Flexpro in visual basic 2013. Can anyone tell me how to do that? For example, How to make a new database? I have already add the Reference, is there any code like the calling matlab functions from VB.net?
    e.g.
    Dim MatLab As Object
    MatLab = CreateObject(“Matlab.Application”)
    Result = MatLab.Execute(“surf(peaks)”)

    #35193
    Anonyme
    Invité

    I try to call Flexpro in visual basic 2013. Can anyone tell me how to do that? For example, How to make a new database? I have already add the Reference, is there any code like the calling matlab functions from VB.net?
    e.g.
    Dim MatLab As Object
    MatLab = CreateObject(“Matlab.Application”)
    Result = MatLab.Execute(“surf(peaks)”)

    #35192
    Bernhard Kantz
    Participant

    After adding the reference to the FlexPro Object Library (e.g. via the type library flexpro.tlb found in the installation folder) one can access the object model. To get an application pointer, one can use the following code:

    [code]
    Dim app As FlexPro.Application
    Set app = CreateObject(“FlexPro.Application”)
    [/code]
    To attach to a already running instance [b]GetObject(, “FlexPro.Application”)[/b] can be used instead.

    To add a new project database, one can use

    [code]
    Dim oDatabase As FlexPro.Database
    Set oDatabase = app.Databases.Add
    [/code]
    Now one can start adding objects (like folders, formulas, datasets, diagrams, …) to its RootFolder and perform updates (to cause calculations). The database can then be saved and closed with the respective methods.

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.