In Part 1 of my problem i get some infos about components via “USER OPTIONS”.
Link: https://forum.techsoft3d.com/t/getting-component-list/923
Now we have another problem.
I expect the User Options" as in the picture / assempart67, including the wanted infos “refname=…” and “config=…”.
But there are different ways. In other parts (73, 75) there additional “UNICODE OPTIONS” and refname/config in other syntax, see Secreenshot.
I don’t found a way to get this “UNICODE OPTIONS”. Do you have a hint for me?
In the moment we get the USER OPTIONS via:
HCS_KEY geometry_key;
StringBuilder geometry_type = new StringBuilder(1024);
HCS.Open_Segment(path);
HCS.Begin_Contents_Search("...", "USER OPTIONS");
while (HCS.Find_Contents(geometry_type, out geometry_key))
{
try
{
int laengeUserOptions;
HCS.Show_User_Options_Length(out laengeUserOptions);
StringBuilder textUserOptions = new StringBuilder(laengeUserOptions + 1);
HCS.Show_User_Options(textUserOptions);
string xml = Convert.ToString(textUserOptions);
if (!(xml.IndexOf("refname=") > 0 && xml.IndexOf("configname=") > 0))
continue;
Thanks again for your help!