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.

ZoomToItem

ZoomToItem



Redisplays the current view to a selected takeoff item on the page. A value can be assigned to allow for user sizeable margins around the viewed object (default = 30).



Syntax:

Procedure: ZoomToItem(sItemPath: string; Marginsize: string); integer;


API Call:

Scripting
var
  sItemPath : string;
  sMargin   : string;
begin
  sItemPath := '\Job\Takeoff\Section1';
  sMargin := '50';

  if(ZoomToItem(sItemPath, sMargin) = 1) then
    begin
      // object found and view is now focused around object...
    end
  else
    begin
      // failed: no viewing will be executed...
    end;
end;

Copyright 2023 ConstructConnect