Named Object Library Methods

Cadcorp SIS Desktop methods offer control over the setup of Named Object Libraries (NOLs) within a SIS Desktop application.

Methods are also provided for querying the contents of NOLs and creating new NOL objects.

There are two special NOLs:

  1. "(standard)" which contains all of the built-in NOL objects and is read-only
  2. "(temporary)" which is empty at the start of a session,

Note: The "(temporary)" NOL by default, contains new objects.

NOL objects can be created in other NOLs either by

  • Making the target NOL the default NOL using the Libraries Control Bar or the _DefaultNol$ System Variable.
  • (or)
  • Specifying a "pathname" for the NOL object, e.g. "C:\\Sis\\NOLs\\Brushes.nol\\Red Cross Hatch" or "(temporary)\\Red Cross Hatch".

Note: The default NOL will always be searched first when a NOL object is requested (unless a "pathname" is used). NOL object names cannot contain the Tab or Escape character.

NOL object names can be made hierarchical (like a disk directory structure of folders and files) by using the "." (full stop) character as a separator.

For example the NOL Print Template objects "A4.Landscape", "A4.Portrait", "A3.Landscape", and "A3.Portrait" will appear in two "folders", "A4" and "A3", as "Landscape" and "Portrait".

Named objects without a "." will appear at the "root" of the "directory" tree.

In SIS Desktop applications, all modified NOLs (other than "(temporary)" are saved at the end of the session.

They are also saved when a Project Workspace file is closed.

NOLs can be removed without saving using the NolClose method. In the ActiveX Control , NOLs are not saved, except by the NolSave method.

ChangePrjUnits   Copies a named Transverse Mercator coordinate reference system, changing the units.
CopyNolObject Copies a named object between Named Object Libraries.
Copies an existing feature code into the currently loaded feature table.
Defines a named geodetic datum, using the standard seven Bursa-Wolf parameters to modify WGS 84.
Stores the current open item in a Named Object Library.
Stores a named spatial filter in a Named Object Library as a named item.
Creates a named object from an implicit string.
Defines a named print template from the current window contents.
Creates a named coordinate reference system from an EPSG code.
Defines a named (Latitude,Longitude) coordinate reference system.
Defines a named Symbol from the items in a named list.
Defines a named view from the view in the current window.
Deletes a named object from a Named Object Library.
Exports a named feature table to a comma-separated file.
Gets the feature codes branching from a parent feature code in the currently loaded feature table.
Gets the implicit equivalent of an object in a Named Object Library.
Gets the number of Named Object Libraries in use.
Gets the EPSG code of a named coordinate reference system.
Imports a named feature table from a comma-separated file.
Inserts a new feature code into the currently loaded feature table.
Loads a named feature table for editing.
Lists all of objects of a given class in all of the Named Object Libraries.
Closes a Named Object Library, optionally saving any changes.
Discards all old Named Object Library (NOL) objects and defragments the memory used by a NOL.
Creates an empty Named Object Library file.
Inserts a Named Object Library file.
Sets the ownership of a Named Object Library.
Saves a Named Object Library file.
Creates an item from a Named Object Library item.
Recalls a named view from a Named Object Library.
Removes an existing feature code from the currently loaded feature table.
ShowNolObjectDialog Shows the edit dialog for an object in a Named Object Library.
ShowUI Opens a SIS dialog to acquire user input, e.g. select an overlay or style or edit an expression, etc.
StoreFeatureTable   Stores the currently open feature table.