0% found this document useful (0 votes)
49 views

All API

1. Creates a new Item with the given attributes and returns a tag. 2. Searches the database for Items matching a given ID or revision. 3. Saves an object without executing extensions, used to check in or out.

Uploaded by

ajay ware
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

All API

1. Creates a new Item with the given attributes and returns a tag. 2. Searches the database for Items matching a given ID or revision. 3. Saves an object without executing extensions, used to check in or out.

Uploaded by

ajay ware
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

( const char * item_id, const char* item_name,

const char * item_type,Const char* rev_id,tag_t * itemtag_t * rev )


Creates a new Item with the given name and identification string.

Uses: To Create Item


(const char * item_id,const char * item_name,const char * item_type,const
char * rev_id,tag_t * item,tag_t * rev )
Searches the database for all Items with IDs that match the given string.
Use: To Find Item and Revision for taking futher actions.
Saves the object and will not execute the PreCondition, PreAction and PostAction extensions
even if TC_save_msg is implemented on the type of the object
Restrictions: Before calling save, the object must first be loaded or refreshed for modify
•Use: AOM_save used To Save the object
•AOM_refresh Used to Check in or Checkout
1. AE_find_datasettype :(const char * datasettype_name, tag_t * scscdatasettype )
2. AE_create_dataset: (tag_t dataset_type,const char * dataset_name,const char
* dataset_description,const char * dataset_id,const char
* dataset_revision,tag_t * new_dataset )
3. (tag_t dataset)

1. Retrieves the Dataset tag, type, id, and rev that matches the specified id and rev.
2. Creates a Dataset by specified type, name, description, id, and rev.
3. Deletes all unreferenced dataset revisions except the latest revision.
Above Example:
1. (tag_t * window)
2. (tag_t window,tag_t item,tag_t item_revision,tag_t bv,tag_t * top_bom_line )

1. Creates a new BOM window and returns the tag of the newly created window.

2. Sets the top line of the BOM window to contain the specified Item.
If Item is NULLTAG, then it will use item_revision instead
If bom_view is NULLTAG, then it will take the default.
Any existing BOM in this window is lost.

Use: When working with Structure Manager, we need to use this API
Above Example
1. (tag_t bom_line,int * count,tag_t ** children )

Lists the visible ImanItemLines below the specified parent line. The first time this function is called
it will load the components from the database.
Use the ITK BOM_line_ask_all_child_lines to retrieve all children including GDELines
Uses: we use this API When we want to get count of all child of parent
1. ( tag_t rev,const char * new_rev_id,tag_t * new_rev_tag )
2. ( tag_t rev,const char * new_rev_id,tag_t * new_rev_tag )
3. ( tag_t object,const char * prop_name,char ** value )

1. Produces a new revision based on a specified revision of the same Item. This is the same
operation as that invoked by the SaveAs->Item Revision action in Workspace.
2. Retrieves the latest revision of an Item, as determined by the creation date.
3. Asks value of a single-valued property.
Uses:
1. To copy Item.
2. To get latest revision of Item.
Above Example
1. char ** user_id_string)
2. char ** user_id_string)
3. (tag_t primary_object,tag_t relation_type,int * count,GRM_relation_t ** secondary_list )

1. Gets the user ID (the unique ID string for a user) for the currently logged in user
2. Adds the specified error code to the top of the error store.
3. Returns a list and count of all secondary objects with a specified relation type to the
specified primary object.

Uses:
1. To get user id
2. Use for the throw error
3. To get count of Secondary Objects
Above Example:
1. (tag_t object,const char * prop_name,const char * value )
1. Sets one or more values of a property using a display value as input. This function will work
for any property type, accepts string values as input
Uses:
1. To get tag of latest revision.
1. (METHOD_id_t method_id,METHOD_action_type_t action_type,METHOD_function_t action_handler,
TC_argument_list_t * user_args )
2. (const char * type_name,const char * msg_name,METHOD_id_t * method_id )

3. (METHOD_id_t method_id,METHOD_function_t pre_condition_handler,TC_argument_list_t * user_ar


gs )

1. Registers the given function as a pre-condition handler for this method. This function should check entry
conditions for the method, returning ITK_ok if it is OK to proceed and execute the actions.
2. Looks for the registered method used to implement the specified type/message combination. This is
useful for registering pre- or post-actions or a pre-condition for a method created elsewhere in the
system.
3. Adds a pre- or post- action to an existing method. These will be executed before and after the base
action, respectively.
Above Example:
1. (tag_t wso,char ** object_type )
Retrieves the object type of the specified Workspace Object.
Uses:
1. To get type of Workspace Object.

You might also like