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.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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;
  • No labels