Luastick default module
Converts the class-object to lightuserdata. In C++, it converts the class-object to void pointer.
Lua
lightuserdata return_value = STICK.ObjectToUserdata(class-object object)
C++
Not Provided
Parameters
Tests the object is null or not.
Lua
boolean return_value = STICK.IsNullObject(class-object object)
C++
Not Provided
Parameters
Return the document object.
Lua
DynamicDrawDoc return_value = Doc()
C++
::CFCFoundDoc* ::FFDoc()
Parameters
Return the environment object.
Lua
DynamicDrawEnv return_value = Env()
C++
::FCEnv* ::FFEnv()
Parameters
Return the link manager object.
Lua
LinkManager return_value = Link()
C++
::FCLinkManager* ::FFLinkManager()
Parameters
Return the Windows registry object.
Lua
RegData return_value = Reg()
C++
::FCRegData* ::FFReg()
Parameters
Return the view object.
Lua
DynamicDrawView return_value = View()
C++
::CFCDynamicDrawView* ::FFView()
Parameters
Type of brush.
Undefined/Unsipecify
Lua
integer BrushType.NONE
C++
enum class ::FTBrushType { NONE }
Vertical linear gradient
Lua
integer BrushType.VERT_LINEAR_GRADIENT
C++
enum class ::FTBrushType { VERT_LINEAR_GRADIENT }
Solid
Lua
integer BrushType.SOLID
C++
enum class ::FTBrushType { SOLID }
Pattern
Lua
integer BrushType.PATTERN
C++
enum class ::FTBrushType { PATTERN }
Horizontal linear gradient
Lua
integer BrushType.HORZ_LINEAR_GRADIENT
C++
enum class ::FTBrushType { HORZ_LINEAR_GRADIENT }
Registered
Lua
integer BrushType.REGISTERED
C++
enum class ::FTBrushType { REGISTERED }
Types how hit to the MOLIP when mouse button clicked.
Undefined.
Lua
integer MolipHitType.NONE
C++
enum class ::MolipHitType { NONE }
Don't hit to any MOLIP.
Lua
integer MolipHitType.NOT_MOLIP
C++
enum class ::MolipHitType { NOT_MOLIP }
Hit to a point MOLIP.
Lua
integer MolipHitType.POINT
C++
enum class ::MolipHitType { POINT }
Hit to the center point of a line MOLIP.
Lua
integer MolipHitType.LINE_CENTER
C++
enum class ::MolipHitType { LINE_CENTER }
Hit to a line MOLIP.
Lua
integer MolipHitType.LINE
C++
enum class ::MolipHitType { LINE }
Anchor point for object resizing.
Right center.
Lua
integer ObjectAnchor.RIGHT_CENTER
C++
enum class ::ObjectAnchor { RIGHT_CENTER }
Undefined.
Lua
integer ObjectAnchor.NONE
C++
enum class ::ObjectAnchor { NONE }
Center.
Lua
integer ObjectAnchor.CENTER
C++
enum class ::ObjectAnchor { CENTER }
Left center.
Lua
integer ObjectAnchor.LEFT_CENTER
C++
enum class ::ObjectAnchor { LEFT_CENTER }
Top left.
Lua
integer ObjectAnchor.TOP_LEFT
C++
enum class ::ObjectAnchor { TOP_LEFT }
Top center.
Lua
integer ObjectAnchor.TOP_CENTER
C++
enum class ::ObjectAnchor { TOP_CENTER }
Top right.
Lua
integer ObjectAnchor.TOP_RIGHT
C++
enum class ::ObjectAnchor { TOP_RIGHT }
Bottom left.
Lua
integer ObjectAnchor.BOTTOM_LEFT
C++
enum class ::ObjectAnchor { BOTTOM_LEFT }
Bottom center.
Lua
integer ObjectAnchor.BOTTOM_CENTER
C++
enum class ::ObjectAnchor { BOTTOM_CENTER }
Bottom right.
Lua
integer ObjectAnchor.BOTTOM_RIGHT
C++
enum class ::ObjectAnchor { BOTTOM_RIGHT }
Type of objects. Do not change the order of the types because their values are saved in the document file.
Arc object
Lua
integer ObjectType.ARC
C++
enum class ::FTObjectType { ARC }
Undefined
Lua
integer ObjectType.NONE
C++
enum class ::FTObjectType { NONE }
Rounded rectangle object
Lua
integer ObjectType.ROUND_RECT
C++
enum class ::FTObjectType { ROUND_RECT }
Base object
Lua
integer ObjectType.OBJECT
C++
enum class ::FTObjectType { OBJECT }
Figure object
Lua
integer ObjectType.FIGURE
C++
enum class ::FTObjectType { FIGURE }
OLE object
Lua
integer ObjectType.OLE
C++
enum class ::FTObjectType { OLE }
Polyline object
Lua
integer ObjectType.POLY
C++
enum class ::FTObjectType { POLY }
Rectangle object
Lua
integer ObjectType.RECT
C++
enum class ::FTObjectType { RECT }
Line object
Lua
integer ObjectType.LINE
C++
enum class ::FTObjectType { LINE }
Group object
Lua
integer ObjectType.GROUP
C++
enum class ::FTObjectType { GROUP }
Wide polyline object
Lua
integer ObjectType.WIDE_POLY
C++
enum class ::FTObjectType { WIDE_POLY }
Chip object
Lua
integer ObjectType.CHIP
C++
enum class ::FTObjectType { CHIP }
Point object
Lua
integer ObjectType.POINT
C++
enum class ::FTObjectType { POINT }
Picture arrow object
Lua
integer ObjectType.PICT_ARROW
C++
enum class ::FTObjectType { PICT_ARROW }
Label object
Lua
integer ObjectType.LABEL
C++
enum class ::FTObjectType { LABEL }
Table object
Lua
integer ObjectType.TABLE
C++
enum class ::FTObjectType { TABLE }
Text rectangle object
Lua
integer ObjectType.TEXT_RECT
C++
enum class ::FTObjectType { TEXT_RECT }
Type of pen.
Undefined/Unsipecify
Lua
integer PenType.NONE
C++
enum class ::FTPenType { NONE }
Solid
Lua
integer PenType.SOLID
C++
enum class ::FTPenType { SOLID }
Dashed
Lua
integer PenType.DASHED
C++
enum class ::FTPenType { DASHED }
Registered
Lua
integer PenType.REGISTERED
C++
enum class ::FTPenType { REGISTERED }
Functions about the application.
Output a text message in the message window.
Lua
IApp.OutputMessage(string message)
C++
void ::IApp::OutputMessage(const wchar_t* message)
Parameters
Specify the visible state of the message window. The message window is used to display the debug information from Lua script.
Lua
IApp.ShowMessageWindow(boolean show)
C++
void ::IApp::ShowMessageWindow(bool show)
Parameters
View.
Change the current tool.
Lua
[DynamicDrawView class-object]:SwitchCurrentTool(integer lToolId, boolean bDoImmediate)
C++
void ::CFCDynamicDrawView::SwitchCurrentTool(long lToolId, BOOL bDoImmediate)
Parameters
Document class.
Save the document.
Lua
boolean return_value = [DynamicDrawDoc class-object]:DoSave(string lpszPathName, boolean bReplace)
C++
BOOL ::CFCFoundDoc::DoSave(LPCTSTR lpszPathName, BOOL bReplace)
Parameters
Get the object pointer by object-ID.
Lua
ObjDynabase return_value = [DynamicDrawDoc class-object]:ObjectIdToObject(integer dwID)
C++
::FCObjDynabase* ::CFCFoundDoc::ObjID2Object(DWORD dwID)
Parameters
It manages to save and load the registry.
Return an anchor point for object resizing : ObjectAnchor type.
Lua
integer return_value = [RegData class-object]:GetResizeAnchor()
C++
WORD ::FCRegData::GetResizeFixPosition()
Parameters
Black
Lua
integer SColor.BLACK
C++
constexpr SColorID ::SColor::BLACK
Transparent
Lua
integer SColor.TRANSPARENT
C++
constexpr SColorID ::SColor::TRANSP
White
Lua
integer SColor.WHITE
C++
constexpr SColorID ::SColor::WHITE
Structure consist of object id and MOLIP id
Member variables
Lua
table value = {
molipId = [integer value],
objectId = [integer value],
}
C++
::FCMolipRec {
long lMolipId;
DWORD dwObjID;
}
Lua
table value = {
{ [MolipRec table} },
{ [MolipRec table} },
:
}
C++
std::vector<::FCMolipRec>
Lua
table value = {
{ [number] = [MolipRec table} },
{ [number] = [MolipRec table} },
:
}
C++
std::unordered_map<double,::FCMolipRec>
Lua
table value = {
{ [string] = [MolipRec table} },
{ [string] = [MolipRec table} },
:
}
C++
std::unordered_map<std::string,::FCMolipRec>
Lua
table value = {
{ [boolean] = [MolipRec table} },
:
}
C++
std::unordered_map<bool,::FCMolipRec>
Most-base object class. It's a base of the all kind of objects.
Cast as an arc object class instance.
Lua
ObjArc return_value = [ObjDynabase class-object]:AsObjArc()
C++
::FCObjArc* ::FCObjDynabase::AsObjArc()
Parameters
Cast as a chip object class instance.
Lua
ObjChip return_value = [ObjDynabase class-object]:AsObjChip()
C++
::FCObjChipMaster* ::FCObjDynabase::AsObjChip()
Parameters
Cast as a most-base object class instance.
Lua
ObjFigure return_value = [ObjDynabase class-object]:AsObjFigure()
C++
::FCObjFigure* ::FCObjDynabase::AsObjFigure()
Parameters
Cast as a group object class instance.
Lua
ObjGroup return_value = [ObjDynabase class-object]:AsObjGroup()
C++
::FCObjGroup* ::FCObjDynabase::AsObjGroup()
Parameters
Cast as a label object class instance.
Lua
ObjLabel return_value = [ObjDynabase class-object]:AsObjLabel()
C++
::FCObjLabel* ::FCObjDynabase::AsObjLabel()
Parameters
Cast as a line object class instance.
Lua
ObjLine return_value = [ObjDynabase class-object]:AsObjLine()
C++
::FCObjLine* ::FCObjDynabase::AsObjLine()
Parameters
Cast as an OLE object class instance.
Lua
ObjOle return_value = [ObjDynabase class-object]:AsObjOle()
C++
::FCObjOle* ::FCObjDynabase::AsObjOle()
Parameters
Cast as a picture arrow object class instance.
Lua
ObjPictArrow return_value = [ObjDynabase class-object]:AsObjPictArrow()
C++
::FCObjPictArrow* ::FCObjDynabase::AsObjPictArrow()
Parameters
Cast as a link point object class instance.
Lua
ObjPoint return_value = [ObjDynabase class-object]:AsObjPoint()
C++
::FCObjPoint* ::FCObjDynabase::AsObjPoint()
Parameters
Cast as a polyline object class instance.
Lua
ObjPoly return_value = [ObjDynabase class-object]:AsObjPoly()
C++
::FCObjPoly* ::FCObjDynabase::AsObjPoly()
Parameters
Cast as a rectangle object class instance.
Lua
ObjRect return_value = [ObjDynabase class-object]:AsObjRect()
C++
::FCObjRect* ::FCObjDynabase::AsObjRect()
Parameters
Cast as a rounded rectangle object class instance.
Lua
ObjRoundRect return_value = [ObjDynabase class-object]:AsObjRoundRect()
C++
::FCObjRoundRect* ::FCObjDynabase::AsObjRoundRect()
Parameters
Cast as a table object class instance.
Lua
ObjTable return_value = [ObjDynabase class-object]:AsObjTable()
C++
::FCObjTable* ::FCObjDynabase::AsObjTable()
Parameters
Cast as a text rectangle object class instance.
Lua
ObjTextRect return_value = [ObjDynabase class-object]:AsObjTextRect()
C++
::FCObjTextRect* ::FCObjDynabase::AsObjTextRect()
Parameters
Cast as a wide polyline object class instance.
Lua
ObjWidePoly return_value = [ObjDynabase class-object]:AsObjWidePoly()
C++
::FCObjWidePoly* ::FCObjDynabase::AsObjWidePoly()
Parameters
Delete a value of the double type dictionary.
Lua
[ObjDynabase class-object]:DeleteDoubleDictionary(integer dictionaryId)
C++
void ::FCObjDynabase::DeleteDoubleDictionary(WORD dictionaryId)
Parameters
Delete a value of the string type dictionary.
Lua
[ObjDynabase class-object]:DeleteStringDictionary(integer dictionaryId)
C++
void ::FCObjDynabase::DeleteStringDictionary(WORD dictionaryId)
Parameters
Get angle of this object.
Lua
number return_value = [ObjDynabase class-object]:GetAngle()
C++
angle ::FCObjDynabase::GetAngle()
Parameters
Get the array of bezier point for the shape of this object.
Lua
array<DblPoint> bezier = [ObjDynabase class-object]:GetBezier()
C++
void ::FCObjDynabase::GetBezier(std::vector<::DblPoint>& bezier)
Parameters
Return the center point of the figure.
Usually it returns the center point of the circumscribed rectangle. But some kind of objects return another point.
e.g. The arc object having following shape returns X as a center point.
__
│ \
│ \
│ │
X・ │
│ │
│ /
│ /
 ̄ ̄
Lua
DblPoint return_value = [ObjDynabase class-object]:GetCenter()
C++
::DblPoint ::FCObjDynabase::GetCenter()
Parameters
Return a number of the double type dictionary.
Lua
number return_value = [ObjDynabase class-object]:GetDoubleDictionary(integer dictionaryId)
C++
double ::FCObjDynabase::GetDoubleDictionary(WORD dictionaryId)
Parameters
Get the array of member's id.
Lua
array<integer> members = [ObjDynabase class-object]:GetMemberIdArray()
C++
void ::FCObjDynabase::GetMemberIdArray(std::vector<DWORD>& members)
Parameters
Get the position of the specified molip.
Lua
DblPoint return_value = [ObjDynabase class-object]:GetMolipPoint(integer lMolipId)
C++
::DblPoint ::FCObjDynabase::GetMolipPos(long lMolipId)
Parameters
Get the position array of all molips. It includes the center molip.
Lua
array<DblPoint> pointArray = [ObjDynabase class-object]:GetMolipPointArray()
C++
void ::FCObjDynabase::GetMolipPosArray(std::vector<::DblPoint>& pointArray)
Parameters
Return object-ID.
Lua
integer return_value = [ObjDynabase class-object]:GetObjectId()
C++
DWORD ::FCObjDynabase::GetObjID()
Parameters
Get the array of polygon point for the shape of this object.
Lua
array<DblPoint> polygon = [ObjDynabase class-object]:GetPolygon()
C++
void ::FCObjDynabase::GetPolygon(std::vector<::DblPoint>& polygon)
Parameters
Return the radius of angle 0.
____________________
/ /
/ /
/ + /
/ /
/___________________/ |
| |
|---------|
radius0
Lua
number return_value = [ObjDynabase class-object]:GetRadius0()
C++
mmetol ::FCObjDynabase::GetRadius0()
Parameters
Return the radius of angle 90.
____________________
/ /
/ /
/ + /----
/ / |radius90
/___________________/ |
~~~~~~
Lua
number return_value = [ObjDynabase class-object]:GetRadius90()
C++
mmetol ::FCObjDynabase::GetRadius90()
Parameters
Return the circumscribed rectangle of the object.
Lua
DblRect return_value = [ObjDynabase class-object]:GetResizeFrame()
C++
::DblRect ::FCObjDynabase::GetResizeFrame()
Parameters
Return the skew. 'skew' in the figure below. Negative value in this case.
____________________
/ /
/ /
/ _ _ _ _ _ _ _ _ _ /
/ /
/ / |
/___________________/ |
| |
|--|
skew
Lua
number return_value = [ObjDynabase class-object]:GetSkew()
C++
mmetol ::FCObjDynabase::GetSkew()
Parameters
Return a string of the double type dictionary.
Lua
string return_value = [ObjDynabase class-object]:GetStringDictionary(integer dictionaryId)
C++
astring ::FCObjDynabase::GetStringDictionary(WORD dictionaryId)
Parameters
Check that this object belongs to the specified type or not.
Lua
boolean return_value = [ObjDynabase class-object]:IsKindOf(integer type)
C++
BOOL ::FCObjDynabase::IsKindOf(::FTObjectType type)
Parameters
Move the object.
Lua
[ObjDynabase class-object]:Move(DblPoint distance)
C++
void ::FCObjDynabase::Move(const ::DblPoint& distance)
Parameters
Resize this object.
Lua
[ObjDynabase class-object]:Resize(boolean isPositiveX, boolean isPositiveY, DblRect newRect)
C++
void ::FCObjDynabase::Resize(BOOL isPositiveX, BOOL isPositiveY, const ::DblRect& newRect)
Parameters
Set angle of this object.
Lua
[ObjDynabase class-object]:SetAngle(number r, DblPoint centerPosition)
C++
void ::FCObjDynabase::SetAngle(angle r, const ::DblPoint& centerPosition)
Parameters
Set center coordinates of this figure.
Lua
[ObjDynabase class-object]:SetCenter(DblPoint centerPosition)
C++
void ::FCObjDynabase::SetCenter(const ::DblPoint& centerPosition)
Parameters
Set a number of the double type dictionary.
Lua
[ObjDynabase class-object]:SetDoubleDictionary(integer dictionaryId, number value)
C++
void ::FCObjDynabase::SetDoubleDictionary(WORD dictionaryId, const double& value)
Parameters
Set a string of the double type dictionary.
Lua
[ObjDynabase class-object]:SetStringDictionary(integer dictionaryId, string value)
C++
void ::FCObjDynabase::SetStringDictionary(WORD dictionaryId, const char* value)
Parameters
Get the type of the object.
Lua
integer return_value = [ObjDynabase class-object]:Type()
C++
::FTObjectType ::FCObjDynabase::Type()
Parameters
Base-figure object class. Base class whose subclass has shape, outline and fill-color.
Get the attributes of the brush.
Lua
integer return_value, integer regBrushId, integer backSColorId, integer foreSColorId, integer patternId = [ObjFigure class-object]:GetBrush()
C++
::FTBrushType ::FCObjFigure::GetBrush(RegBrushID& regBrushId, SColorID& backSColorId, SColorID& foreSColorId, PatternID& patternId)
Parameters
Get the attributes of the pen.
Lua
integer return_value, integer regPenId, integer lineSColorId, number weight, integer styleId = [ObjFigure class-object]:GetPen()
C++
::FTPenType ::FCObjFigure::GetPen(RegPenID& regPenId, SColorID& lineSColorId, mmetol& weight, PenStyleID& styleId)
Parameters
Set the attributes of the brush.
Lua
[ObjFigure class-object]:SetBrush(integer brushType, integer regBrushId, integer backSColorId, integer foreSColorId, integer patternId)
C++
void ::FCObjFigure::SetBrush(::FTBrushType brushType, RegBrushID regBrushId, SColorID backSColorId, SColorID foreSColorId, PatternID patternId)
Parameters
Set the attributes of the pen.
Lua
[ObjFigure class-object]:SetPen(integer penType, integer regPenId, integer lineSColorId, number weight, integer styleId)
C++
void ::FCObjFigure::SetPen(::FTPenType penType, RegPenID regPenId, SColorID lineSColorId, mmetol weight, PenStyleID styleId)
Parameters
Polyline object class.
Convert the index of the joint to the molip-id.
Lua
integer return_value = ObjPoly.JointIndexToMolipId(integer jointIndex)
C++
long ::FCObjPoly::JointIndexToMolipId(long jointIndex)
Parameters
Convert molip-id to joint-id.
Lua
integer return_value = ObjPoly.MolipIdToJointIndex(integer molipID)
C++
long ::FCObjPoly::MolipIdToJointIndex(long molipID)
Parameters
Polyline object class.
Gets the joint record.
Lua
PolyJoint return_value = [ObjPoly class-object]:GetJoint(integer index)
C++
::FCPolyJoint& ::FCObjPoly::GetJoint(long index)
Parameters
Get joints.
Lua
array<PolyJoint> jointArray = [ObjPoly class-object]:GetJointArray()
C++
void ::FCObjPoly::GetJointArray(std::vector<::FCPolyJoint>& jointArray)
Parameters
Gets the number of joints.
Lua
integer return_value = [ObjPoly class-object]:GetJointSize()
C++
long ::FCObjPoly::GetJointSize()
Parameters
Sets a joint.
Lua
[ObjPoly class-object]:SetJoint(integer index, PolyJoint polyJoint)
C++
void ::FCObjPoly::SetJoint(long index, const ::FCPolyJoint& polyJoint)
Parameters
Set joints.
Lua
[ObjPoly class-object]:SetJointArray(array<PolyJoint> jointArray)
C++
void ::FCObjPoly::SetJointArray(const std::vector<::FCPolyJoint>& jointArray)
Parameters
Methods of joints placing, according to the moving of MOLIP by inter-MOLIP link. It will be the value of m_byLinkMoveType.
Do not move any joints according to the moving of MOLIP.
Lua
integer ObjPoly.LinkFormation.NONE
C++
enum class ::FCObjPoly::LinkFormation { NONE }
Move joints keeping the distance from the axis line between the starting and ending points.
Lua
integer ObjPoly.LinkFormation.AXIS
C++
enum class ::FCObjPoly::LinkFormation { AXIS }
Move joints keeping lines being horizontal or vertical.
Lua
integer ObjPoly.LinkFormation.SAMEHV
C++
enum class ::FCObjPoly::LinkFormation { SAMEHV }
Synchronization to next joint when starting point or ending point is moved by link.
Do not move the next joint.
Lua
integer ObjPoly.LinkInterlocking.NONE
C++
enum class ::FCObjPoly::LinkInterlocking { NONE }
Move the next joint horizontally a distance same with the moving of starting or ending point.
Lua
integer ObjPoly.LinkInterlocking.MOVE_HORZ
C++
enum class ::FCObjPoly::LinkInterlocking { MOVE_HORZ }
Move the next joint vertically a distance same with the moving of starting or ending point.
Lua
integer ObjPoly.LinkInterlocking.MOVE_VERT
C++
enum class ::FCObjPoly::LinkInterlocking { MOVE_VERT }
Rectangle class.
Set the rotation angle.
Lua
boolean return_value = [ObjRect class-object]:SetAngle(number rot)
C++
BOOL ::FCObjRect::SetAngle(angle rot)
Parameters
Set the radius of angle 0.
Lua
boolean return_value = [ObjRect class-object]:SetRadius0(number radius)
C++
BOOL ::FCObjRect::SetRadius0(mmetol radius)
Parameters
Set the radius of angle 90.
Lua
boolean return_value = [ObjRect class-object]:SetRadius90(number radius)
C++
BOOL ::FCObjRect::SetRadius90(mmetol radius)
Parameters
Set the skew.
Lua
boolean return_value = [ObjRect class-object]:SetSkew(number skew)
C++
BOOL ::FCObjRect::SetSkew(mmetol skew)
Parameters
Script editing tool class
Add a control handle.
Lua
[ToolScriptEdit class-object]:AddHandle(integer handleId, boolean isSnapToMolip, DblPoint mmpt)
C++
void ::FCToolScriptEdit::AddHandle(__int32 handleId, bool isSnapToMolip, const ::DblPoint& mmpt)
Parameters
Add the restriction of the control handle's moving. The control handle becomes to move only at the points specified by 'mmptArray'.
Lua
[ToolScriptEdit class-object]:AddPointHandleRestriction(integer handleId, array<DblPoint> mmptArray)
C++
void ::FCToolScriptEdit::AddPointHandleRestriction(__int32 handleId, const std::vector<::DblPoint>& mmptArray)
Parameters
Add the restriction of the control handle's moving. The control handle becomes to move only inside of the polygon specified by 'mmptArray'.
Lua
[ToolScriptEdit class-object]:AddPolygonHandleRestriction(integer handleId, array<DblPoint> mmptArray)
C++
void ::FCToolScriptEdit::AddPolygonHandleRestriction(__int32 handleId, const std::vector<::DblPoint>& mmptArray)
Parameters
Add the restriction of the control handle's moving. The control handle becomes to move only on the polyline specified by 'mmptArray'.
Lua
[ToolScriptEdit class-object]:AddPolylineHandleRestriction(integer handleId, array<DblPoint> mmptArray)
C++
void ::FCToolScriptEdit::AddPolylineHandleRestriction(__int32 handleId, const std::vector<::DblPoint>& mmptArray)
Parameters
Delete all of the handles.
Lua
[ToolScriptEdit class-object]:ClearHandle()
C++
void ::FCToolScriptEdit::ClearHandle()
Delete the restriction of the control handle's moving. The control handle becomes to move anyplace.
Lua
[ToolScriptEdit class-object]:ClearHandleRestriction(integer handleId)
C++
void ::FCToolScriptEdit::ClearHandleRestriction(__int32 handleId)
Parameters
Get the information of the control handle.
Lua
boolean isSnapToMolip, DblPoint mmpt = [ToolScriptEdit class-object]:GetHandle(integer handleId)
C++
void ::FCToolScriptEdit::GetHandle(__int32 handleId, bool& isSnapToMolip, ::DblPoint& mmpt)
Parameters
Get the point of the control handle.
Lua
DblPoint return_value = [ToolScriptEdit class-object]:GetHandlePoint(integer handleId)
C++
const ::DblPoint& ::FCToolScriptEdit::GetHandlePoint(__int32 handleId)
Parameters
Get a hooked object specified with the hookId.
Lua
ObjDynabase return_value = [ToolScriptEdit class-object]:GetHookedObject(integer hookId)
C++
::FCObjDynabase* ::FCToolScriptEdit::GetHookedObject(__int32 hookId)
Parameters
Get the selected object. When this tool is activated, only one object can be selected.
Lua
ObjDynabase return_value = [ToolScriptEdit class-object]:GetSelectedObject()
C++
::FCObjDynabase* ::FCToolScriptEdit::GetSelectedObject()
Parameters
Hook the specified object to this tool. The object must be a copy of standard object. The hooked object is used to draw editting-line.
Lua
[ToolScriptEdit class-object]:HookObject(integer hookId, ObjDynabase obj)
C++
void ::FCToolScriptEdit::HookObject(__int32 hookId, ::FCObjDynabase* obj)
Parameters
Delete the specified handle.
Lua
[ToolScriptEdit class-object]:RemoveHandle(integer handleId)
C++
void ::FCToolScriptEdit::RemoveHandle(__int32 handleId)
Parameters
Update the control handle.
Lua
[ToolScriptEdit class-object]:SetHandle(integer handleId, boolean isSnapToMolip, DblPoint mmpt)
C++
void ::FCToolScriptEdit::SetHandle(__int32 handleId, bool isSnapToMolip, const ::DblPoint& mmpt)
Parameters
Update the coordinates of the handle.
Lua
[ToolScriptEdit class-object]:SetHandlePoint(integer handleId, DblPoint mmpt)
C++
void ::FCToolScriptEdit::SetHandlePoint(__int32 handleId, const ::DblPoint& mmpt)
Parameters
It's a point which is constituted of 8 bytes floating-point numbers.
Member variables
Lua
table value = {
x = [number value],
y = [number value],
}
C++
::DblPoint {
double x;
double y;
}
Lua
table value = {
{ [DblPoint table} },
{ [DblPoint table} },
:
}
C++
std::vector<::DblPoint>
Lua
table value = {
{ [number] = [DblPoint table} },
{ [number] = [DblPoint table} },
:
}
C++
std::unordered_map<double,::DblPoint>
Lua
table value = {
{ [string] = [DblPoint table} },
{ [string] = [DblPoint table} },
:
}
C++
std::unordered_map<std::string,::DblPoint>
Lua
table value = {
{ [boolean] = [DblPoint table} },
:
}
C++
std::unordered_map<bool,::DblPoint>
It's a point which is constituted of 8 bytes floating-point numbers.
Check p1 is zero.
Lua
boolean return_value = DblPoint.About0(DblPoint p1)
C++
BOOL ::DblPoint::About0(const ::DblPoint& p1)
Parameters
Compare p1 and p2.
Lua
boolean return_value = DblPoint.AboutEqual(DblPoint p1, DblPoint p2)
C++
BOOL ::DblPoint::AboutEqual(const ::DblPoint& p1, const ::DblPoint& p2)
Parameters
Add v1 and v2.
Lua
DblPoint return_value = DblPoint.Add(DblPoint v1, DblPoint v2)
C++
::DblPoint ::DblPoint::Add(const ::DblPoint& v1, const ::DblPoint& v2)
Parameters
Check p1 is zero.
Lua
boolean return_value = DblPoint.Almost0(DblPoint p1)
C++
BOOL ::DblPoint::Almost0(const ::DblPoint& p1)
Parameters
Compare p1 and p2.
Lua
boolean return_value = DblPoint.AlmostEqual(DblPoint p1, DblPoint p2)
C++
BOOL ::DblPoint::AlmostEqual(const ::DblPoint& p1, const ::DblPoint& p2)
Parameters
Compare y coordinate of p1 and p2. If they are almost same, compare y coordinate.
Lua
boolean return_value = DblPoint.AlmostLess(DblPoint p1, DblPoint p2)
C++
BOOL ::DblPoint::AlmostLess(const ::DblPoint& p1, const ::DblPoint& p2)
Parameters
Check p1 is zero.
Lua
boolean return_value = DblPoint.Rough0(DblPoint p1)
C++
BOOL ::DblPoint::Rough0(const ::DblPoint& p1)
Parameters
Compare p1 and p2.
Lua
boolean return_value = DblPoint.RoughEqual(DblPoint p1, DblPoint p2)
C++
BOOL ::DblPoint::RoughEqual(const ::DblPoint& p1, const ::DblPoint& p2)
Parameters
Subtract v2 from v1.
Lua
DblPoint return_value = DblPoint.Subtract(DblPoint v1, DblPoint v2)
C++
::DblPoint ::DblPoint::Subtract(const ::DblPoint& v1, const ::DblPoint& v2)
Parameters
It's a rectangle which is constituted of 8 bytes floating-point numbers.
Member variables
Lua
table value = {
bottom = [number value],
left = [number value],
right = [number value],
top = [number value],
}
C++
::DBLRECT {
double bottom;
double left;
double right;
double top;
}
Lua
table value = {
{ [DBLRECT table} },
{ [DBLRECT table} },
:
}
C++
std::vector<::DBLRECT>
Lua
table value = {
{ [number] = [DBLRECT table} },
{ [number] = [DBLRECT table} },
:
}
C++
std::unordered_map<double,::DBLRECT>
Lua
table value = {
{ [string] = [DBLRECT table} },
{ [string] = [DBLRECT table} },
:
}
C++
std::unordered_map<std::string,::DBLRECT>
Lua
table value = {
{ [boolean] = [DBLRECT table} },
:
}
C++
std::unordered_map<bool,::DBLRECT>
It's a rectangle which is constituted of 8 bytes floating-point numbers. Subclass of DBLRECT.
Member variables
Lua
table value = {
bottom = [number value],
left = [number value],
right = [number value],
top = [number value],
}
C++
::DblRect : public ::DBLRECT {
}
Lua
table value = {
{ [DblRect table} },
{ [DblRect table} },
:
}
C++
std::vector<::DblRect>
Lua
table value = {
{ [number] = [DblRect table} },
{ [number] = [DblRect table} },
:
}
C++
std::unordered_map<double,::DblRect>
Lua
table value = {
{ [string] = [DblRect table} },
{ [string] = [DblRect table} },
:
}
C++
std::unordered_map<std::string,::DblRect>
Lua
table value = {
{ [boolean] = [DblRect table} },
:
}
C++
std::unordered_map<bool,::DblRect>
It's a rectangle which is constituted of 8 bytes floating-point numbers. Subclass of DBLRECT.
Get the center point of the specified rectangle.
Lua
DblPoint return_value = DblRect.CenterPoint(DBLRECT rt)
C++
::DblPoint ::DblRect::CenterPoint(const ::DBLRECT& rt)
Parameters
B-control has 0 length.
Lua
integer JointType.BACK_NONE
C++
constexpr short ::JointType::BACK_NONE
F-control and B-control have 0 length both.
Lua
integer JointType.BOTH_NONE
C++
constexpr short ::JointType::BOTH_NONE
F-control has 0 length.
Lua
integer JointType.FRONT_NONE
C++
constexpr short ::JointType::FRONT_NONE
Undefined.
Lua
integer JointType.NONE
C++
constexpr short ::JointType::NONE
F-control and B-control have length. And joint is round edge.
Lua
integer JointType.ROUND
C++
constexpr short ::JointType::ROUND
F-control and B-control have length. And joint is sharp edge.
Lua
integer JointType.SHARP
C++
constexpr short ::JointType::SHARP
Represents a joint for bezier curve.
Member variables
Lua
table value = {
back = {
x = [number value],
y = [number value],
}
center = {
x = [number value],
y = [number value],
}
front = {
x = [number value],
y = [number value],
}
type = [integer value],
}
C++
::FCPolyJoint {
::DblPoint m_mmptNext;
::DblPoint m_mmptPivot;
::DblPoint m_mmptPrev;
short m_nType;
}
Lua
table value = {
{ [PolyJoint table} },
{ [PolyJoint table} },
:
}
C++
std::vector<::FCPolyJoint>
Lua
table value = {
{ [number] = [PolyJoint table} },
{ [number] = [PolyJoint table} },
:
}
C++
std::unordered_map<double,::FCPolyJoint>
Lua
table value = {
{ [string] = [PolyJoint table} },
{ [string] = [PolyJoint table} },
:
}
C++
std::unordered_map<std::string,::FCPolyJoint>
Lua
table value = {
{ [boolean] = [PolyJoint table} },
:
}
C++
std::unordered_map<bool,::FCPolyJoint>
Functions about mathematics.
Compare a values and 0 then determine it is about equal to 0 or not.
Lua
boolean return_value = IMath.About0(number v1)
C++
BOOL ::IMath::About0(double v1)
Parameters
Compare two double values and determine they are almost equal or not.
Lua
boolean return_value = IMath.AboutEqual(number v1, number v2)
C++
BOOL ::IMath::AboutEqual(double v1, double v2)
Parameters
Compare a values and 0 then determine it is almost equal to 0 or not.
Lua
boolean return_value = IMath.Almost0(number v1)
C++
BOOL ::IMath::Almost0(double v1)
Parameters
Compare two double values and determine they are almost equal or not.
Lua
boolean return_value = IMath.AlmostEqual(number v1, number v2)
C++
BOOL ::IMath::AlmostEqual(double v1, double v2)
Parameters
Returns the principal value of the arc tangent of the origin->mmptL. The returned value is expressed in [0.0, 2.0). 2.0 means 360 degrees.
Lua
number return_value = IMath.ArcTan(DblPoint mmptL)
C++
double ::IMath::ArcTan(const ::DblPoint& mmptL)
Parameters
Returns the principal value of the arc tangent of the mmptA->mmptB. The returned value is expressed in [0.0, 2.0). 2.0 means 360 degrees.
Lua
number return_value = IMath.ArcTan(DblPoint mmptA, DblPoint mmptB)
C++
double ::IMath::ArcTan(const ::DblPoint& mmptA, const ::DblPoint& mmptB)
Parameters
Returns the cosine of an angle of r, expressed in [0.0, 2.0). 2.0 means 360 degrees.
Lua
number return_value = IMath.Cos(number r)
C++
double ::IMath::Cos(double r)
Parameters
Move the array of points specified distance.
Lua
array<DblPoint> return_value = IMath.MovePointArray(array<DblPoint> pointArray, number moveX, number moveY)
C++
std::vector<::DblPoint>& ::IMath::MovePointArray(std::vector<::DblPoint>& pointArray, double moveX, double moveY)
Parameters
Normalize an angle of r to [0.0, 2.0). r:2.0 means 360 degrees.
Lua
number return_value = IMath.RegulateAngle0_2(number r)
C++
double ::IMath::RegulateAngle0_2(double r)
Parameters
Rotate the specified joint around the center point.
Lua
PolyJoint return_value = IMath.RotateJoint(PolyJoint polyJoint, number sinValue, number cosValue, DblPoint center)
C++
::FCPolyJoint& ::IMath::RotateJoint(::FCPolyJoint& polyJoint, double sinValue, double cosValue, const ::DblPoint& center)
Parameters
Rotate the specified joint array around the center point.
Lua
array<PolyJoint> return_value = IMath.RotateJointArray(array<PolyJoint> jointArray, number sinValue, number cosValue, DblPoint center)
C++
std::vector<::FCPolyJoint>& ::IMath::RotateJointArray(std::vector<::FCPolyJoint>& jointArray, double sinValue, double cosValue, const ::DblPoint& center)
Parameters
Rotate a point around the center point.
Lua
DblPoint return_value = IMath.RotatePoint(DblPoint point, number sinValue, number cosValue, DblPoint center)
C++
::DblPoint& ::IMath::RotatePoint(::DblPoint& point, double sinValue, double cosValue, const ::DblPoint& center)
Parameters
Rotate the point array around the center point.
Lua
array<DblPoint> return_value = IMath.RotatePointArray(array<DblPoint> pointArray, number sinValue, number cosValue, DblPoint center)
C++
std::vector<::DblPoint>& ::IMath::RotatePointArray(std::vector<::DblPoint>& pointArray, double sinValue, double cosValue, const ::DblPoint& center)
Parameters
Returns the sine of an angle of r, expressed in [0.0, 2.0). 2.0 means 360 degrees.
Lua
number return_value = IMath.Sin(number r)
C++
double ::IMath::Sin(double r)
Parameters
Skew a point.
Lua
DblPoint return_value = IMath.SkewPoint(DblPoint point, number skew, number baseY)
C++
::DblPoint& ::IMath::SkewPoint(::DblPoint& point, double skew, double baseY)
Parameters
Skew a point.
┌─────────┐─┬
│ │ │RadiusY
│ │ │
│ ┼ │─┴─ CenterY
│ │
│ │
└─────────┘
ShiftX
├─-┤
│ _________ ___
│ / / │
│/ / │RadiusY
/ ┼ / ────┴
/ /
/ /
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
Lua
DblPoint return_value = IMath.SkewPoint(DblPoint point, number distanceY, number moveX, number baseY)
C++
::DblPoint& ::IMath::SkewPoint(::DblPoint& point, double distanceY, double moveX, double baseY)
Parameters
Skew the array of points.
Lua
array<DblPoint> return_value = IMath.SkewPointArray(array<DblPoint> pointArray, number skew, number baseY)
C++
std::vector<::DblPoint>& ::IMath::SkewPointArray(std::vector<::DblPoint>& pointArray, double skew, double baseY)
Parameters
Skew the array of points.
Lua
array<DblPoint> return_value = IMath.SkewPointArray(array<DblPoint> pointArray, number distanceY, number moveX, number baseY)
C++
std::vector<::DblPoint>& ::IMath::SkewPointArray(std::vector<::DblPoint>& pointArray, double distanceY, double moveX, double baseY)
Parameters
Maximum value of double.
Lua
IMath.MAX_DOUBLE
C++
constexpr const double ::IMath::MAX_DOUBLE
The distance of two MOLIPs is calculated by the angle and distance of two MOLIPs. Combination of ANGLE_X and ANGLE_Y.
Lua
integer LinkAttitude.ANGLE
C++
constexpr WORD ::LinkAttitude::ANGLE
The horizontal distance of two MOLIPs is calculated by the angle and distance of two MOLIPs.
Lua
integer LinkAttitude.ANGLE_X
C++
constexpr WORD ::LinkAttitude::ANGLE_X
The vertical distance of two MOLIPs is calculated by the angle and distance of two MOLIPs.
Lua
integer LinkAttitude.ANGLE_Y
C++
constexpr WORD ::LinkAttitude::ANGLE_Y
Keep the distance between two MOLIPs. Combination of COORD_X and COORD_Y.
Lua
integer LinkAttitude.COORD
C++
constexpr WORD ::LinkAttitude::COORD
Keep the horizontal distance between two MOLIPs.
Lua
integer LinkAttitude.COORD_X
C++
constexpr WORD ::LinkAttitude::COORD_X
Keep the vertical distance between two MOLIPs.
Lua
integer LinkAttitude.COORD_Y
C++
constexpr WORD ::LinkAttitude::COORD_Y
Do not interlock between two MOLIPs. Combination of NONE_X and NONE_Y.
Lua
integer LinkAttitude.NONE
C++
constexpr WORD ::LinkAttitude::NONE
Do not interlock horizontal direction.
Lua
integer LinkAttitude.NONE_X
C++
constexpr WORD ::LinkAttitude::NONE_X
Do not interlock vertical direction.
Lua
integer LinkAttitude.NONE_Y
C++
constexpr WORD ::LinkAttitude::NONE_Y
The distance of two MOLIPs is directly proportional to the size of the source object. Combination of RATIO_X and RATIO_Y.
Lua
integer LinkAttitude.RATIO
C++
constexpr WORD ::LinkAttitude::RATIO
The horizontal distance of two MOLIPs is directly proportional to the width of the source object.
Lua
integer LinkAttitude.RATIO_X
C++
constexpr WORD ::LinkAttitude::RATIO_X
The vertical distance of two MOLIPs is directly proportional to the height of the source object.
Lua
integer LinkAttitude.RATIO_Y
C++
constexpr WORD ::LinkAttitude::RATIO_Y
Link information.
Member variables
Lua
table value = {
attribute = [integer value],
linkFrom = {
molipId = [integer value],
objectId = [integer value],
}
linkTo = {
molipId = [integer value],
objectId = [integer value],
}
offset = {
x = [number value],
y = [number value],
}
}
C++
::FCLinkRec {
WORD m_wLinkKind;
::FCMolipRec m_mlpFrom;
::FCMolipRec m_mlpTo;
::DblPoint m_mmptOffset;
}
Lua
table value = {
{ [LinkRec table} },
{ [LinkRec table} },
:
}
C++
std::vector<::FCLinkRec>
Lua
table value = {
{ [number] = [LinkRec table} },
{ [number] = [LinkRec table} },
:
}
C++
std::unordered_map<double,::FCLinkRec>
Lua
table value = {
{ [string] = [LinkRec table} },
{ [string] = [LinkRec table} },
:
}
C++
std::unordered_map<std::string,::FCLinkRec>
Lua
table value = {
{ [boolean] = [LinkRec table} },
:
}
C++
std::unordered_map<bool,::FCLinkRec>
Manage link information between objects.
+---+---+
| D |
+-------+
A A A
| | |
+-------+ | +-------+
| | |
| | |
+---+---+ +---+---+ +---+---+
| A | | B | | C |
+-------+ +-------+ +-------+
Get IDs of links that connet two MOLIPs and its destination is MOLIP-D.If MOLIP-ID in the parameter 'destination' is -1, then this function gets links that includes every MOLIP in the object D as a destination.
Lua
integer return_value, array<integer> linkIdArray = [LinkManager class-object]:GetLinkInto(MolipRec destination)
C++
size_t ::FCLinkManager::GetAffectedByTo(DWORDSet& linkIdArray, const ::FCMolipRec& destination)
Parameters
+---+---+
| S |
+-------+
| | |
| | |
+-------+ | +-------+
| | |
V V V
+---+---+ +---+---+ +---+---+
| A | | B | | C |
+-------+ +-------+ +-------+
Get IDs of links that connet two MOLIPs and its source is MOLIP-S.If MOLIP-ID in the parameter 'source' is -1, then this function gets links that includes every MOLIP in the object S as a source.
Lua
integer return_value, array<integer> linkIdArray = [LinkManager class-object]:GetLinkOut(MolipRec source)
C++
size_t ::FCLinkManager::GetAffectedByFrom(DWORDSet& linkIdArray, const ::FCMolipRec& source)
Parameters
Get the link record specified by linkID.
Lua
LinkRec return_value = [LinkManager class-object]:GetLinkRec(integer linkID)
C++
const ::FCLinkRec* ::FCLinkManager::LinkIDtoLinkRec(DWORD linkID)
Parameters
- - -----+
|
|
Del |
+- - - - - - - - - ->* Make
: +- - - - ->*<- - -+
: : Del A :
: : :
+---+---+ +---+---+ +---+---+
| X | | Y | | B |
+-------+ +-------+ +-------+
Delete the every link that connects from any MOLIP to MOLIP-A, then connect from MOLIP-B to MOLIP-A with a link.Lua
[LinkManager class-object]:ReLinkIn(MolipRec molipA, MolipRec molipB, integer linkAttitude)
C++
void ::FCLinkManager::ReLinkIn(const ::FCMolipRec& molipA, const ::FCMolipRec& molipB, WORD linkAttitude)
Parameters
- - ----+
|
|
Del |
+- - - - - - - - - -* Make
: +- - - - -*- - - -+
: : Del A :
V V V
+---+---+ +---+---+ +---+---+
| X | | Y | | B |
+-------+ +-------+ +-------+
Delete the every link that connects from MOLIP-A to any MOLIP, then connet from MOLIP-A to MOLIP-B with a link.Lua
[LinkManager class-object]:ReLinkOut(MolipRec molipA, MolipRec molipB, integer linkAttitude)
C++
void ::FCLinkManager::ReLinkOut(const ::FCMolipRec& molipA, const ::FCMolipRec& molipB, WORD linkAttitude)
Parameters
Functions about graphics.
Calculate the beginning and ending points, attributes of ObjPoly object and type of link when connecting two objects with ObjPoly object.
Lua
array<PolyJoint> polyJointArray, integer linkMoveType, integer bgnLinkMoveStyle, integer bgnLinkAttitude, integer endLinkMoveStyle, integer endLinkAttitude = IGraph.CalcEdgeLayout(array<PolyJoint> polyJointArray, boolean isCurvedShape, boolean isBgnShift, integer bgnHitType, MolipRec bgnHitMolip, number bgnGap, boolean isEndShift, integer endHitType, MolipRec endHitMolip, number endGap)
C++
void ::IGraph::CalcEdgeLayout(std::vector<::FCPolyJoint>& polyJointArray, ::FCObjPoly::LinkFormation& linkMoveType, ::FCObjPoly::LinkInterlocking& bgnLinkMoveStyle, WORD& bgnLinkAttitude, ::FCObjPoly::LinkInterlocking& endLinkMoveStyle, WORD& endLinkAttitude, BOOL isCurvedShape, BOOL isBgnShift, ::MolipHitType bgnHitType, const ::FCMolipRec& bgnHitMolip, mmetol bgnGap, BOOL isEndShift, ::MolipHitType endHitType, const ::FCMolipRec& endHitMolip, mmetol endGap)
Parameters
Session class for Lua script. Session means the term from the beginning of object editing until the end.Session instance will be kept while the session.Session instance provides some functions for session, keeps objects and numeric values.
Apply attributes of keeped object to the original object. Some command will be executed for the applying.
Lua
boolean return_value = [Session class-object]:ApplyKeepedObject(integer keepId)
C++
BOOL ::Session::ApplyKeepedObject(__int64 keepId)
Parameters
Apply attributes of keeped object to the specified object. Some command will be executed for the applying.
Lua
boolean return_value = [Session class-object]:ApplyKeepedObject(integer keepId, integer objectId)
C++
BOOL ::Session::ApplyKeepedObject(__int64 keepId, __int64 objectId)
Parameters
Commit the transaction. Redo/Undo command moves the operation transaction by transaction.
Lua
[Session class-object]:CommitTransaction()
C++
void ::Session::CommitTransaction()
Duplicate the specified object and store the copy in this session instance.
Lua
[Session class-object]:DuplicateAndKeepObject(integer keepId, integer objectId)
C++
void ::Session::DuplicateAndKeepObject(__int64 keepId, __int64 objectId)
Parameters
Get a keeped object specified with the keepId.
Lua
ObjDynabase return_value = [Session class-object]:GetKeepedObject(integer keepId)
C++
::FCObjDynabase* ::Session::GetKeepedObject(__int64 keepId)
Parameters
Get the stored double value from the session registry.
Lua
number return_value = [Session class-object]:GetRegistryDouble(string key)
C++
double ::Session::GetRegistryDouble(const std::string& key)
Parameters
Get the stored string value from the session registry.
Lua
string return_value = [Session class-object]:GetRegistryString(string key)
C++
const std::string& ::Session::GetRegistryString(const std::string& key)
Parameters
Notify application that objects will be moved at the next step.
Lua
[Session class-object]:NotifyMovingObject(array<integer> objectIdArray)
C++
void ::Session::NotifyMovingObject(const std::vector<__int64>& objectIdArray)
Parameters
Store the double value into the session registry.
Lua
[Session class-object]:SetRegistryDouble(string key, number value)
C++
void ::Session::SetRegistryDouble(const std::string& key, double value)
Parameters
Store the string value into the session registry.
Lua
[Session class-object]:SetRegistryString(string key, string value)
C++
void ::Session::SetRegistryString(const std::string& key, const std::string& value)
Parameters
Start the transaction of command execution.
Lua
[Session class-object]:StartTransaction()
C++
void ::Session::StartTransaction()
Combination of every authority.
Lua
integer LayerAccessFlag.ALL
C++
constexpr WORD ::LayerAccessFlag::ALL
Get the object without regard to the access flag. It's used with GetObjectSet function.
Lua
integer LayerAccessFlag.ANY
C++
constexpr WORD ::LayerAccessFlag::ANY
Display drawing authority.
Lua
integer LayerAccessFlag.DRAW
C++
constexpr WORD ::LayerAccessFlag::DRAW
Object editing authority.
Lua
integer LayerAccessFlag.EDIT
C++
constexpr WORD ::LayerAccessFlag::EDIT
No authority.
Lua
integer LayerAccessFlag.NONE
C++
constexpr WORD ::LayerAccessFlag::NONE
Print authority.
Lua
integer LayerAccessFlag.PRINT
C++
constexpr WORD ::LayerAccessFlag::PRINT
Object selection authority.
Lua
integer LayerAccessFlag.SELECT
C++
constexpr WORD ::LayerAccessFlag::SELECT
Environment management class.
Get the ID of the registered color nearest to the specified color.
Lua
integer return_value = [DynamicDrawEnv class-object]:GetNearestSColor(integer argb)
C++
SColorID ::FCEnv::GetNearestSColor(__int64 argb)
Parameters
Get the ID array of the registered brush that have same name with the specified name.
Lua
array<integer> regBrushIdArray = [DynamicDrawEnv class-object]:GetRegBrushByName(string name)
C++
void ::FCEnv::GetRegBrushByName(std::vector<__int32>& regBrushIdArray, const wchar_t* name)
Parameters
Get the ID array of the registered pen that have same name with the specified name.
Lua
array<integer> regPenIdArray = [DynamicDrawEnv class-object]:GetRegPenByName(string name)
C++
void ::FCEnv::GetRegPenByName(std::vector<__int32>& regPenIdArray, const wchar_t* name)
Parameters