FUNCTION get_instance_id

(* SCHEMA STRUCTURAL_FRAME_SCHEMA; *)

(* New for LPM/6 *)
FUNCTION get_instance_id 
  (obj : select_data_item) : globally_unique_id;
  LOCAL
    id_bag : BAG OF managed_data_item :=
               (USEDIN (obj,
               'STRUCTURAL_FRAME_SCHEMA.' +
               'MANAGED_DATA_ITEM.' +
               'DATA_ITEM'));
     n : INTEGER;          
  END_LOCAL;
  
  n := SIZEOF(id_bag);
 
  CASE n OF
	0 : RETURN ('UNMANAGED');
	1 : RETURN (id_bag[1].instance_id);
	OTHERWISE : RETURN (?);
  END_CASE;
  
END_FUNCTION; (* created for LPM/6 based in STEP Part 41 function get_name_value *)

Referenced By

Defintion get_instance_id is references by the following definitions:
DefinitionType
 structural_frame_item ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2023-03-25T00:11:39-04:00