ObjCreateΒΆ
ObjCreate creates a new object.
- handle = ObjCreate(nClass)
- handle = ObjCreate(nClass, dat1, ...)
Return Value
handle is the handle of the object, or 0 if the object could not be created.
Parameters
- nClass
nClass is one of the following values:
Value
Meaning
OBJ_APPLICATIONthere is only one of this objects. It will be automatically created when UniPlot is started.
OBJ_DOCUMENTsee DocCreate.
OBJ_EDITORsee EdCreate.
OBJ_LAYERsee LayerCreate.
OBJ_XYDATASETOBJ_XYZDATASETsee XYZCreate and XYZCreateFromMatrix.
OBJ_TEXTsee TBCreate.
OBJ_RECTsee RBCreate.
OBJ_ELLIPSEsee EBCreate.
OBJ_LINEsee LBCreate.
OBJ_LINKsee CBCreate.
OBJ_PENsee PenCreate.
OBJ_MARKERsee MarkerCreate.
OBJ_FONTsee FontCreate.
OBJ_FILEsee fopen.
OBJ_CONTAINERsee CnCreate.
- dat1
The type and number of the data to create the object depend on the type of the object.
Comment
Normally, the function ObjCreate is not called. Instead, a function
wrapper is called. Example: Call up the function DocCreate instead of
ObjCreate(OBJ_DOCUMENT).
See also
id-148201