[MStn CE U17 C++] API method, equivalent to "Solid by Extrusion Along" tool(s)?

Hi,

what is API equivalent of Solid by Extrusion Along tool?

I need to create solid with defined profile (simple rectangle), moved along common LineString in 3D.

I found this problem:

  • In code I use SolidUtil::Create::BodyFromSweep method, but quite often error is returned and solid (ISolidKernelEntity) is not created.
  • With the same input elements (profile and path) I am able to create the solid using new CONSTRUCT SOLID ALONG key-in (creating parametric solid) and also using deprecated LEGACY CONSTRUCT SOLID ALONG key-in (creating SmartSolid).

It looks like I use different method than is is used by the mentioned key-ins, but I am not aware of other "extrusion along" method, available in API (I guess I can construct SmartFeature nodes, but sounds like a bit complex operation for simple extrusion). Do I miss anything?

With regards,

  Jan

Parents Reply
  • Hi Yongan.Fu,

    I have to thank you, because when I prepare the test case, I refresh my mind and I think I identify where the real problem is Thumbsup ;-)

    When I tried to create the solid manually, I tried it with different setting, including "profile is parallel", whereas in code I set the profile should follow the path orientation.

    So what looks like functional, was not acceptable result (parallel profile means a width of the extrusion is not constant):

    When I simulate what I think is in the code (alignParallel == false), it leads to complex situation, when I understand the result is the solid not created:

    For me, the conclusion is that BodyFromSweep is method that can be used, but for the discussed scenario, different approach must be discussed with a customer.

    With regards,

      Jan

Children
No Data