To open any link in a new tab, preserving your position in the current article, just hold down the <CTRL> key on your keyboard before clicking the link or click using your mouse wheel.

Procedures - EditScript - FD

Procedures - EditScript

Opens the script property in the script editor. If the property is not of type ptScript this method is ignored.

Syntax:

Procedure: IPropertyObject.EditScript;

API Calls

Delphi

Using IItem Object Model
procedure editScript;
var
  ps: IPlanSwift;
  itm: IItem;
  prop: IPropertyObject;
begin
  //Create the Planswift Interface
  ps := coplanswift.Create;
  //Get the selected Item
  itm := ps.SelectedItem;
  if varisClear(itm) then begin
    ShowMessage('Please Select an Item');
    //Clear Interface
    ps := nil;
    //Exit Procedure
    Exit;
  end;                                     
  //Create new Property with the property type as script
  prop := itm.NewProperty('Example Script','',ptscript);
  //Set the script language to pascal
  prop.ScriptLanguage := slPascal;
  //Open Scripting dialog
  prop.EditScript;
  //Free Planswift Interface
  ps := nil;
end;
Using PlanSwift Object Model
 

C#

Using IItem Object Model
 
Using PlanSwift Object Model
 

VB/VBA (OLE)

Using IItem Object Model
 
Using PlanSwift Object Model
 

Pascal Scripting (OLE)

Item Object Model
 
Root Object Model
 

Pascal Scripting

Item Object Model
 
Using the PlanSwift Object Model
 

Copyright 2023 ConstructConnect