Inner Fillet Radius cannot get by SMC API
-
Hi everyone,
This is my code. I want to get inner fillet value of component that have RectangleHollowProfile
final ComponentFilter columnFilter = ComponentFilter.componentTypeIs(ComponentType.COLUMN);
final Set<Component> columns = model.getComponents(columnFilter);
Component target = null;for (final Component col : columns) { if (TEST_COLUMN_GUID.equals(col.getGUID())) { target = col; break; } }final var profileOpt = target.getProfile();
if (profileOpt.isPresent()) {
final Profile profile = profileOpt.get();RectangleHollowProfile p = (RectangleHollowProfile) profile; LOG.info("[DumpPSets] → RectangleHollowProfile: innerRadius={} m | OuterRadius={} m | wallThickness={} m", p.getInnerFilletRadius(), p.getOuterFilletRadius(), p.getWallThickness());} else {
LOG.info(“[DumpPSets] Profile: NONE (component has no profile)”);
}The result log i got RectangleHollowProfile: innerRadius=Optional.empty m | OuterRadius=Optional[0.112] m | wallThickness=0.032 m . But in my Solibri Office have the value Inner Fillet Radius of this component. How can I get this?
Copyright © 2025 Solibri Inc. | Powered by NodeBB