Skip to content

GET_VIS_ATTR_BOUNDS ​

GET_VIS_ATTR_BOUNDS returns the bounding box parameters of a visible attribute of a modeling object or connector.

Syntax ​

leo-grammar
CC "Modeling" GET_VIS_ATTR_BOUNDS modelid:idValue objid:idValue index:intValue .


# --> RESULT x:measureValue y:measureValue w:measureValue h:measureValue .
CC "Modeling" GET_VIS_ATTR_BOUNDS modelid:idValue objid:idValue index:intValue .


# --> RESULT x:measureValue y:measureValue w:measureValue h:measureValue .

Parameters ​

  • modelid (idValue) -
  • objid (idValue) -
  • index (intValue) - the index is between 0 and (count - 1), where count has been returned by GET_VIS_ATTR_COUNT.

Returns ​

  • x (measureValue)
  • y (measureValue)
  • w (measureValue)
  • h (measureValue)

Details ​

See Also ​

Examples ​

asc
CC "Modeling" GET_SELECTED
IF (ecode = 0) {
  SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:mid
  SET modelid:(VAL mid)
  FOR objid in:(objids) {
    CC "Modeling" debug GET_VIS_ATTR_COUNT modelid:(modelid) objid:(VAL objid)
    FOR index from:0 to:(count - 1) {
      CC "Modeling" debug GET_VIS_ATTR_ID modelid:(modelid) objid:(VAL objid) index:(index)
      CC "Modeling" debug GET_VIS_ATTR_BOUNDS modelid:(modelid) objid:(VAL objid) index:(index)
    }
  }
}
CC "Modeling" GET_SELECTED
IF (ecode = 0) {
  SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:mid
  SET modelid:(VAL mid)
  FOR objid in:(objids) {
    CC "Modeling" debug GET_VIS_ATTR_COUNT modelid:(modelid) objid:(VAL objid)
    FOR index from:0 to:(count - 1) {
      CC "Modeling" debug GET_VIS_ATTR_ID modelid:(modelid) objid:(VAL objid) index:(index)
      CC "Modeling" debug GET_VIS_ATTR_BOUNDS modelid:(modelid) objid:(VAL objid) index:(index)
    }
  }
}

Versions and Changes ​

Available since ADOxx 1.3