資源簡介
制作者
1,樂清*梅雷 部分內(nèi)容參考百度QQ:1821117007 一共大概花了15個小時翻譯以及制作。
2,彭輔軍,網(wǎng)名:小白鼠,QQ:3243729373 二次開發(fā)QQ群:331643674 在梅雷基礎上增加了內(nèi)容,一共大概花了20個小時翻譯以及制作。
本幫助文檔可復制,可傳播,但需要保留制作者信息,謝謝!
其中大部分內(nèi)容測試比對過,部分沒有進行測試比對效果。請以實際效果為準。本文只做參考。
注:由于BlockUI更新比較頻繁,各版本之間會存在差異,有些版本的控件的屬性名并沒有那么多,或者此幫助文件并沒有列進去,那么可以通過下面方法查看當前版本某控件的所有的屬性名和類型:
void get_block_ui_type_name(NXOpen::BlockStyler::UIBlock* BLOCK_UI_name)
{
Session*theSession=NXOpen::Session::GetSession();
ListingWindow*lw=theSession->ListingWindow();
lw->Open();
NXOpen::BlockStyler::PropertyList::ListMode mode1 = BLOCK_UI_name->GetProperties()->Mode();
if (mode1==BlockStyler::PropertyList::ListModeIndexed)
{
lw->WriteLine("ListMode:ListModeIndexed");
}
else
{
lw->WriteLine("ListMode:ListModeNamed");
}
int length = BLOCK_UI_name->GetProperties()->Length();
char info[100];
sprintf(info,"數(shù)量:%d",length);
lw->WriteLine(info);
std::vectorarray_nxstr = BLOCK_UI_name->GetProperties()->GetPropertyNames();
for (int i=0;iWriteLine();
BlockStyler::PropertyList::PropertyType type = BLOCK_UI_name->GetProperties()->GetPropertyType(array_nxstr[i]);
if(type==0)
lw->WriteLine("類型是:String 名稱:"+array_nxstr[i]);
else if(type==1)
lw->WriteLine("類型是:Double 名稱:"+array_nxstr[i]);
else if(type==2)
lw->WriteLine("類型是:Logical 名稱:"+array_nxstr[i]);
else if(type==3)
lw->WriteLine("類型是:Integer 名稱:"+array_nxstr[i]);
else if(type==4)
lw->WriteLine("類型是:Enum 名稱:"+array_nxstr[i]);
else if(type==5)
lw->WriteLine("類型是:Strings 名稱:"+array_nxstr[i]);
else if(type==6)
lw->WriteLine("類型是:UIBlock 名稱:"+array_nxstr[i]);
else if(type==7)
lw->WriteLine("類型是:Point 名稱:"+array_nxstr[i]);
else if(type==8)
lw->WriteLine("類型是:Vector 名稱:"+array_nxstr[i]);
else if(type==9)
lw->WriteLine("類型是:Bits 名稱:"+array_nxstr[i]);
else if(type==10)
lw->WriteLine("類型是:Tagged Object 名稱:"+array_nxstr[i]);
else if(type==11)
lw->WriteLine("類型是:Array 名稱:"+array_nxstr[i])
代碼片段和文件信息
評論
共有 條評論