FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Diagram en VBA

Home page Community Automation and VBA Diagram en VBA

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34947
    latifa khammal
    Participant

    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

    #34949
    latifa khammal
    Participant

    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

    #34948
    Bernhard 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:
    [code]
    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
    [/code]
    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.