Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Inner Fillet Radius cannot get by SMC API

Inner Fillet Radius cannot get by SMC API

Scheduled Pinned Locked Moved General Discussion
1 Posts 1 Posters 112 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rhychou
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    Copyright © 2025 Solibri Inc. | Powered by NodeBB

    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories