Skip to Content
avatar image
Former Member

Diagram - MoveToPackage selected symbols

Hello team,

I would like to know how can I use the function movetopackage in vbscript.

If I do manually, a select a diagram then click on movetopackage and in the next windows I select the objects that I want to move.

The objects, like tables, that are not select it will be created as shortcut.

In vbscript how can i do it? How can I create a selection from diagram?

Any ideias?

Best Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 15, 2016 at 01:49 PM

    Hello,

    Have a look at Customizing and Extending PowerDesigner > Scripting PowerDesigner > Creating an Object Selection (Scripting)
    http://help.sap.com/saphelp_pd1655_customize/helpdata/en/c7/d6b6196e1b10148568c8e11c884185/content.htm

    HTH,

    Arnaud

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Arnaud Laurent,

      In this example, you are selecting the objects from model. In this case the tables that are not select, it will not be created in the package as shortcut.

      If you did the same manually:

      1. Create 2 physical models.
      2. In the first model create 5 tables
      3. Select that diagram in object browser
      4. Right click and choose "Move to package"
      5. Select the second model
      6. Select just 2 tables

      If you check the second model, you will see those two tables and the other tables as shortcuts.

      Do you get it?

      Best Regards