Skip to content

Glc showcase - #391

Closed
whamm86 wants to merge 18 commits into
mainfrom
glc_showcase
Closed

whamm86 wants to merge 18 commits into
mainfrom
glc_showcase

Conversation

@whamm86

@whamm86 whamm86 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List
any dependencies that are required for this change.

Motivation and Context

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

whamm86 and others added 18 commits August 18, 2026 12:08
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… empty catch block'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@whamm86 whamm86 closed this Oct 14, 2026
Comment on lines +284 to +287
catch (Exception ex)
{
Console.WriteLine($"{ViewerRootEnvVar} invalid, {ViewerRequestPath} not mapped: {ex.Message}");
}
if (p is SubmodelElementList)
{
//for now only take first image
idShortPath = (p as ISubmodelElement).IdShort + "[0]" + idShortPath;
}
else if (p is ISubmodelElement)
{
idShortPath = (p as ISubmodelElement).IdShort + "." + idShortPath;
Comment on lines +102 to +105
catch (Exception ex)
{
Console.Error.WriteLine($"GetImageLink failed: {ex}");
}
{
if (string.IsNullOrEmpty(_input))
{
_input = "anonymous";
Comment on lines +3325 to +3353
foreach (var v in sm.SubmodelElements)
{
if (v is SubmodelElementCollection c)
{
if (c.IdShort == "GeneralInformation")
{
foreach (var sme in c.Value)
{
if (sme is AasCore.Aas3_1.File f)
{
if (f.IdShort == "ManufacturerLogo" || f.IdShort == "CompanyLogo")
glcNode.manufacturerLogo = f;
if (f.IdShort == "ProductImage")
glcNode.productImage = f;
}
if (sme.IdShort == "ProductImages" && sme is SubmodelElementList l)
{
if (l.Value != null && l.Value[0] is SubmodelElementCollection cc)
{
if (cc.Value?[0].IdShort == "ImageFile" && cc.Value[0] is AasCore.Aas3_1.File ff)
{
glcNode.productImage = ff;
}
}
}
}
}
}
}
Comment on lines +3327 to +3352
if (v is SubmodelElementCollection c)
{
if (c.IdShort == "GeneralInformation")
{
foreach (var sme in c.Value)
{
if (sme is AasCore.Aas3_1.File f)
{
if (f.IdShort == "ManufacturerLogo" || f.IdShort == "CompanyLogo")
glcNode.manufacturerLogo = f;
if (f.IdShort == "ProductImage")
glcNode.productImage = f;
}
if (sme.IdShort == "ProductImages" && sme is SubmodelElementList l)
{
if (l.Value != null && l.Value[0] is SubmodelElementCollection cc)
{
if (cc.Value?[0].IdShort == "ImageFile" && cc.Value[0] is AasCore.Aas3_1.File ff)
{
glcNode.productImage = ff;
}
}
}
}
}
}
Comment on lines +3340 to +3349
if (sme.IdShort == "ProductImages" && sme is SubmodelElementList l)
{
if (l.Value != null && l.Value[0] is SubmodelElementCollection cc)
{
if (cc.Value?[0].IdShort == "ImageFile" && cc.Value[0] is AasCore.Aas3_1.File ff)
{
glcNode.productImage = ff;
}
}
}
Comment on lines +3342 to +3348
if (l.Value != null && l.Value[0] is SubmodelElementCollection cc)
{
if (cc.Value?[0].IdShort == "ImageFile" && cc.Value[0] is AasCore.Aas3_1.File ff)
{
glcNode.productImage = ff;
}
}
Comment on lines +3375 to +3379
if (ls.Language.ToLower() == "de")
{
if (s != null)
s = ls.Text;
}
@whamm86
whamm86 deleted the glc_showcase branch October 14, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants