AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::ScriptElement类 参考

The script element. 更多...

#include <APIScriptElement.h>

类 AnyCAD::API::ScriptElement 继承关系图:
AnyCAD::API::Element AnyCAD::API::Object

Public 成员函数

void SetLanguage (const String &_Language)
 
String GetLanguage () const
 
void SetContent (const String &_Content)
 
String GetContent () const
 
void SetEngineName (const String &_EngineName)
 
String GetEngineName () const
 
bool IsValidScript () const
 
bool RunScript ()
 
- Public 成员函数 继承自 AnyCAD::API::Element
ElementId GetId () const
 
String GetName () const
 
void SetName (const String &strName)
 
String GetCategory () const
 
void SetCategory (const String &category)
 
virtual bool SetParameterValue (ParameterId paramId, const ParameterValue &pValue)
 
virtual ParameterValue GetParameterValue (ParameterId paramId) const
 
ParameterUISet GetSystemParameterUISet () const
 
Document GetOwnerDocument () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The script element.

成员函数说明

String AnyCAD::API::ScriptElement::GetContent ( ) const

Get Content.

返回
the Content.
String AnyCAD::API::ScriptElement::GetEngineName ( ) const

Get EngineName.

返回
the EngineName.
String AnyCAD::API::ScriptElement::GetLanguage ( ) const

Get Language.

返回
the Language.
bool AnyCAD::API::ScriptElement::IsValidScript ( ) const

Test if the content is valid.

bool AnyCAD::API::ScriptElement::RunScript ( )

Run the script

返回
false if failed.
void AnyCAD::API::ScriptElement::SetContent ( const String _Content)

Set the Content.

参数
_Contentthe Content.
void AnyCAD::API::ScriptElement::SetEngineName ( const String _EngineName)

Set the EngineName.

参数
_EngineNamethe EngineName.
void AnyCAD::API::ScriptElement::SetLanguage ( const String _Language)

Set the Language.

参数
_Languagethe Language.

该类的文档由以下文件生成: