« Back to AAU Project

Objects type and connectors type

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Objects type and connectors type
Answer
7/2/15 11:03 AM
1) Is it possible to know the object type (class) if we know its ID?

2) Is it possible to know the connector type (class) if we know its ID?

RE: Objects type and connectors type
Answer
7/3/15 6:49 AM as a reply to Fadi Al Machot.
Dear Fadi,

Thank you for your question. AdoScript has more than 400 methods distributed in 16 different messageports. You can find an AdoScript online documentation at the following link:

http://www.adoxx.org/live/adoscript-documentation

The search functionality of this documentation can be usefull by working with AdoScript commands. E.g., if you would need a GET method, you can write into the search field: GET and you will receive all the GET methods of AdoSript (See ScreenShot).

For getting object type or relation type you would need in both cases the command GET_CLASS_NAME in the messageport Core. The syntax of this command is as follows:

1CC "Core" GET_CLASS_NAME classid:intValue
2#--> RESULT ecode:intValue classname:strValue isrel:intValue

Parameters: 
classid                   intValue, the ID of the class


Returns:
ecode               intValue, Contains the error code or is 0 in case of success.
classname        strValue, the name of the given class
isrel                  intValue, is set to 1 it the class is a relationclass, to 0 if it is not.
Attachment

Attachments: AdoScriptDocu.png (194.9k)