Create solid : SweepProfileAlongPath

Hi,

I just started using GC and making some good progress until i encountered this error whenever i tried to sweep a closed curve profile along the bsplinecurve i created, the error shows when i try to pick the bspline curve as the path. I tried browsing the forum but i haven't got a similar case, also when i try to do the Bspline Surface : SweepCrossSectionAlongPath, it works fine but i need a solid element rather than a bspline surface. 

I attached the file here : 

 Walkway.dgn

Cheers,

Cris

  • Hi Crisanto,
    Unfortunately the solid sweep tool in GC is pretty temperamental; it usually only works if you place a vertex of the shape you want to extrude exactly on the start point of your line (in the above image it looks like you have it at the midpoint of the shapes edge). The work-around I use is to use the surface tool (as you discovered) which seems to work a lot better. You can then turn that surface into a solid by using the solid.BySurfaceCapping method.

    Hopefully in future releases Bentley might improve the solid tool further so that it matches the capabilities of the generic Microstation sweep command.
    Cheers,

    Ed

    Answer Verified By: Crisanto Aquino 

  • Worked like a treat. Thanks alot, Ed! 

    ...

    I've got another question if you don't mind, is there a way to attach an Element Template on the solid i Created? I would like to attach a Steel material so it doesn't look like a generic object when i change my display style (for example Smooth : Modeling) I'm using generative components in OpenBridge Modeler.

    Btw, did you worked at Melbourne Metro? I went there last 2018 and I think i was seated beside you for some time. I was thinking cause your name sounds familiar and then i remembered! You even created some script for my drawings back then. 

    Cheers,

    Cris

  • Hey mate,
    Yes that's me I remember you from MM as well, it's a small world!
    I haven't used GC within OBM but AFAIK they haven't developed any OBM specific tools yet, and there is currently no way to apply element templates with GC that I know of in the OBD version either. However in saying that you can the Catalog and Part tools in OpenBuildings to apply element data:

    Unfortunately this data catalog in OBD is a bespoke (legacy) technology that is not compatible with other CE products so that data will not be visible outside of OBD, unless you export as IFC. Hopefully one day they will update this to use the Microstation platform item types so that the schema is still accessible.

    With regards to the element templates, you should put in an enhancement request as I think that is a really good idea and should be made available in GC. I do already have a custom node for attaching Items to features in GC though, so you should be able to use that to achieve 90% of what you want. You can download my repo on GitHub here: https://github.com/edashbolt/generative-components - unfortunately it is still built for Update 6 (OBD) however I believe Alifur from Bentley has created an updated version which will work for OBM so get in contact with him and he can likely provide a copy of his code for you.

    Good luck!

    Ed

  • Thanks for your input Ed, I'll definitely try those you mentioned.

    Cheers,

    Cris

  • Hello Cris, 

    This is definitely interesting. When i am trying to use the solid.SweepProfileAlongPath with Bspline curve & polygon or line & polygon. It is working pretty good. now we need to check whether the issue is with using the cell or not. See the below image.



    It will be helpful if you can share the Cel file & the reference design model so that we can do the further testing

    Regards,
    Alifur.