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.

GetPropertyResultAsInteger (1)


Attempts to return the property value as an Integer. If the calculated value cannot be converted to an integer, the value given in Default is returned.


Procedure: GetPropertyResultAsInteger(ItemPath, PropertyName: String; Default: Integer = 0): Integer;

Code Reference:

    1. Navigate to Plugin Store->Tool Manager and create a new Plugin
    2. Set the plugin type to Script Code and open the Editor
    3. Copy Code into the editor
    4. Press run

API Calls


Using PlanSwift Object Model
// PlanSwift Code:
Result := PlanSwift.GetPropertyResultAsInteger(ItemPath, 'Name', 10);

//FreshDesk Code:
procedure TForm1.GetSetPoint(sender: TObject);
  ps: IPlanSwift;
  area,sect: IItem;
  xs,cx,cy: Extended;
  pgw,pgh,p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y: Extended;
//Create the planswift interface
  ps := coPlanswift.Create;
//Create a new Area Item
  area := ps.GetItem('Job\Takeoff');
  area := area.NewItem('Area','SetPointArea');
//Add a Section to the new Area
  sect := area.NewSection('SetPoint Area Section');
//Get the page width and height
  pgw := ps.GetPropertyResultAsInteger(ps.Selectedpage.guid,'PageWidth',0);
  pgh := ps.GetPropertyResultAsInteger(ps.SelectedPage.guid,'PageHeight',0);
//Get the scale of the page... needed to draw area to scale
  xs := ps.GetPropertyResultAsFloat(ps.SelectedPage.guid,'ScaleX',0);
  //Get the Center X and Y pos of the page
  cx := pgw /2;
  cy := pgh /2;
  //Set First point of area of Square
  p1x := cx - 20 * xs;
  p1y := cy - 10 * xs;
  // Add Second Point
  p2x := cx + 10 * XS;
  p2y := p1y;
  //Add Third Point
  p3x := p2x;
  p3y := cy + 10 * xs;
  //Add Fourth Point
  p4x := cx - 10 * xs;
  p4y := p3y;
  //Show Message to fix first point to create a true square box
  ShowMessage('Now will fix the first point by using set point');
  //Set the proper position of the first point
  p1x := cx - 10 * XS;
  // pass that point to planswift using setpoint
  //Free Planswift
  ps := nil;


Using IItem Object Model
public class PlanswiftApi
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
        Planswift = new PlanSwift();
Using PlanSwift Object Model
Coming soon


Using IItem Object Model
Coming soon
Using PlanSwift Object Model
Coming soon

Copyright 2023 ConstructConnect