PLMResourceTypePackage Types

This page discusses:

Object Function: new

The new function is used to create objects based upon the object's type name.

The following resource objects can be created:

  • Logical Organizational
  • Organizational
  • Robot
  • Worker
  • NCMachine
  • Inspect
  • ToolDevice
  • Storage
  • Transport
  • Conveyor
  • ControlDevice
  • UserDefined
  • LogicController
  • Sensor
  • IndustrialMachine
  • Area

For more information, see Object Functions: new.

new
Returns the created resource object which can be a standalone reference, a reference that is aggregated under another reference by automatic creation of an instance, or an instance directly under a reference.
  • Input:
    • Arg 1: name of the PLM Type (as string)
    • Arg 2: name of the PLM Entity once created (as string). It can be null.
    • Arg 3: father PLM entity that aggregates this created object (as ObjectType) It can be null.
    • Arg 4: reference to instantiate under the father (as ObjectType). It can be null.
  • Output: created object (can be null if the creation has failed)

Example

Let FatherResourceReference (VPMReference) 
Let Reference (VPMReference)
Let Instance (VPMInstance)

/* Creation of Robot Reference */
Reference = new ("Robot", "MyRobot", NULL)

/* Insertion of an existing robot Reference under */ 
/* a father resource reference as VPMReference */
Instance = new ("VPMInstance", "MyRobotInstance1", RootReference , Reference)
 
/*  Creation of a robot Reference and insertion */
/* under a father resource reference as VPMReference */
Instance = new ("Robot", "MyRobotInstance2", FatherResourceReference)

ResourceOccurrence

Represents the occurrence of a resource in Manufacturing Planning applications.

Inheritance Path

ObjectType
Feature
ResourceOccurrence

Attributes

Name Type Comment
AssignedOperations List Returns the list of operations (ProdSystemOccurrence) assigned to this resource occurrence.
Instance VPMInstance Returns the resource instance related to this resource occurrence.
Reference VPMReference Returns the resource reference related to this resource occurrence.
SystemOfEachScope List Returns the list of system references (PLMSystem) having a scope link with this resource occurrence.

Methods

The following methods are associated with this type: