Error using Interface.Vissim_Object_Library_8.0_64_Bit.ILinkContainer/GetMultipleAttributes Invoke Error, Dispatch Exception
3 ビュー (過去 30 日間)
古いコメントを表示
I have a problem with Matlab COM interface. I have a problem regarding GetMultipleAttributes I was using it successfully but today I have an error as you can see below:
Attributes1={'No';'VehType';'Speed';'SpeedDiff';'Acceleration';...
'Hdwy';'Pos';'Lane';'Lane\Link\No';'CoordFront';'PS';'PL';...
'LeadTargNo';'Length'}; % add more if needed
allVehAttributes = vissim.Net.Vehicles.GetMultipleAttributes(Attributes1);
Error using Interface.Vissim_Object_Library_8.0_64_Bit.ILinkContainer/GetMultipleAttributes
Invoke Error, Dispatch Exception:
Source: VISSIM.Vissim.800
Description: CComBaseContainer::GetMultipleAttributes failed
I couldn’t find a solution. I updated all windows update. And check my vissim files, yet can’t figure out what is wrong. I appreciate any help you can provide.
2 件のコメント
回答 (1 件)
pratik gautam
2020 年 7 月 23 日
aa=vis.Net.DrivingBehaviors.GetMultiAttValues("No");
a1=size(aa);
a2=aa(:,2);
a3=cell2mat(a2);
for i=1:a1(1)
if(a3(i)==106)
vis.Net.DrivingBehaviors.ItemByKey(106).AttValue('Name')
a4="false";
else
a4="true";
end
end
if (a4=="true")
aa = "Driving behaviour not found, plese try again"
end
i did this to check the Driving behaviour, hope it might help someone :)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!