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:
SolidUtil::Create::BodyFromSweep
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
Can you upload your test dgn file here? I always use SolidUtil::Create::BodyFromSweep to implement Solid by Extrusion Along feature.
Answer Verified By: Jan Šlegr
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 ;-)
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.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point