FlexPro Forum – Discuss Your Topic!

Diagram en VBA

Home > Community > Automation and VBA > Diagram en VBA

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12414

    Bonjour,
    Je suis débutante en flexpro7, et je veux savoir comment créer un diagram2D à partir d’un dataset ou bien un datalinkExcel
    Merci

    #8095

    Bonjour,
    Je suis débutante en flexpro7, et je veux savoir comment créer un diagram2D à partir d’un dataset ou bien un datalinkExcel
    Merci

    #8680
    Bernhard KantzBernhard Kantz
    Participant

    Do the following steps:
    – Record a Quick Macro.
    – Select your object.
    – Create interactively a diagram.
    – Stop Macro Recording.
    – Open the VBA editor (ALT+F11; FlexPro Professional)

    You see the code in Template.FPT. Now you can edit this code.

    Example:

    
        Dim NameArray
        NameArray = Array("Signal", "Signal2")
        With ActiveDatabase.RootFolder.Add("2D-Diagram", fpObjectType2DDiagram)
            With .Curves.Add
                .Data.DataSet = NameArray(0)
            End With
            With .Curves.Add
                .Data.DataSet = NameArray(1)
            End With
            .Update
        End With
    

    See also
    FlexPro Online Help
    Creating a Macro

    Support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.