ProjectItem class/Add Item method

From LabVIEW Wiki
Jump to: navigation, search
VI Server Method Information
Method ID 35B53801
Scope Basic Development Environment
Data Name AddItem
Short Name* AddItem
Long Name* Add Item
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 74
Owning Class Name ProjectItem Class
Return Data Type ProjectItem Refnum data type

ProjectItem Refnum

Invoke Node Add Item
Available in Real-Time Operating SystemNo
Available in Run-Time EngineNo
Loads the block diagram into memoryNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Remote access allowedYes
Settable when the VI is runningNo

Adds a new project item of the specified type to the LabVIEW project with the referenced item as the parent. You also can use the Project Explorer window to add an item to a project.

This method returns an error if the specified type cannot be created under the current item. The method also returns an error when you try to add a shared variable to a library that is not opened in a project.

Note The LabVIEW Datalogging and Supervisory Control Module supports this method in the Run-Time Engine.


Data type Name Required Description
ProjectItem Refnum Add Item Yes. Return value.
String Name Yes Description
Path Path Yes Path to the project item you want to add.
String Type Yes Specifies the project item type.



Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links