[CONNECT C++] How to programatically drop a parametric cell from native C++

The Drop Element tool will drop a parametric cell into it's sub-elements if I check the Application Elements option.  Is there a native C++ API that will let me do this from code?

Parents
  • Hi John,

    at first, please follow the best practices and specify what MicroStation version do you use. There have been (I guess) 17 versions of CE released so far, so to say "CONNECT" only is just not enough.

    I see my Drop Element parameters are different (I have extra "Solids" option) in CE Update 14.2 version.

    The Drop Element tool will drop a parametric cell into it's sub-elements if I check the Application Elements option

    I think it does not. Based on testing I did, when only Application Elements option is applied, Parametric solid is converted to SmartSolid, but it's not dropped to sub elements.

    Using Drop Element again, SmartSolid can be converted to wireframe or surfaces.

    Is there a native C++ API that will let me do this from code?

    Did you try to search (at least) this forum? Different aspects of parametric solids geometry and how to drop it has been discussed several times including code snippets (see e.g. this discussion).

    I am quite sure the right way is to use ElementGraphicsProcessor and to process retrieved data in a way that suits the best your needs (e.g. to use DraftingElementSchema to create new elements).

    With regards,

      Jan

Reply
  • Hi John,

    at first, please follow the best practices and specify what MicroStation version do you use. There have been (I guess) 17 versions of CE released so far, so to say "CONNECT" only is just not enough.

    I see my Drop Element parameters are different (I have extra "Solids" option) in CE Update 14.2 version.

    The Drop Element tool will drop a parametric cell into it's sub-elements if I check the Application Elements option

    I think it does not. Based on testing I did, when only Application Elements option is applied, Parametric solid is converted to SmartSolid, but it's not dropped to sub elements.

    Using Drop Element again, SmartSolid can be converted to wireframe or surfaces.

    Is there a native C++ API that will let me do this from code?

    Did you try to search (at least) this forum? Different aspects of parametric solids geometry and how to drop it has been discussed several times including code snippets (see e.g. this discussion).

    I am quite sure the right way is to use ElementGraphicsProcessor and to process retrieved data in a way that suits the best your needs (e.g. to use DraftingElementSchema to create new elements).

    With regards,

      Jan

Children