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

Objekte erzeugen

Home page Community Automation and VBA Create objects

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35109
    Karim El Mazouar
    Participant

    Hallo zusammen,
    wie kann ich eine [b]Collection[/b] von dirgam.2D Objekte erzeugen?
    und wie kann ich vom [b]Visual Basic[/b] aus die Datensätze vom [b]Flexpro-Projektdatenbank[/b] ansprechen und auf ihre Inhalt zugreifen?
    Ich möchte eine For-Schleife durchlaufenlassen, bei jedm Schritt soll ein 2D-Diagramm objekt erzeugt werden und zwei signale zugeordent werden. Die Signal liegen als Datensätze im Projektdatenbank

    vielen Dank im Voraus

    Gruß K

    #35111
    Karim El Mazouar
    Participant

    Hallo zusammen,
    wie kann ich eine [b]Collection[/b] von dirgam.2D Objekte erzeugen?
    und wie kann ich vom [b]Visual Basic[/b] aus die Datensätze vom [b]Flexpro-Projektdatenbank[/b] ansprechen und auf ihre Inhalt zugreifen?
    Ich möchte eine For-Schleife durchlaufenlassen, bei jedm Schritt soll ein 2D-Diagramm objekt erzeugt werden und zwei signale zugeordent werden. Die Signal liegen als Datensätze im Projektdatenbank

    vielen Dank im Voraus

    Gruß K

    #35110
    Bernhard Kantz
    Participant

    You can access an object with the [b]object[/b]-method and create an object with the [b]add[/b]-method.

    Example1:
    [color=blue]
    Dim oDataset As DataSet
    Set oDataset = ThisDatabase.RootFolder.Object(“DataSet”, fpObjectTypeDataSet)[/color]

    Example2:
    [color=blue]
    Dim oDiag As Diagram2D
    Set oDiag = ThisDatabase.RootFolder.Add(“2D”, fpObjectType2DDiagram)
    With oDiag
    .Curves.Add
    .Curves(1).Data.DataSet = “DataSet”
    End With
    [/color]
    support@weisang.com

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