Error using Interface.Vissim_Object_Library_8.0_64_Bit.ILinkContainer/GetMultipleAttributes Invoke Error, Dispatch Exception
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
pratik gautam
on 23 Jul 2020
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 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!