Variable Number of Features According to Dimensions in CATIA












0















I have worked with CATIA vba coding, and I know that it is possible to generate geometrical features (like planes, points, intersections, ...) using a vba code. And also I know that you can repeat an operation (for example creating a planes) as many number as required in the vba. But the problem is that the vba is actually offline, I mean you should execute the code to generate the features every time.



In my case, I am creating a part template in which not only the dimensions are parametric, but also the number of geometrical features are also related to the input parameters. For example, when I set a length parameter to 100mm, 2 planes should be created; and when I change it to 200mm, 2 additional planes should be defined. And if I change it back to 100mm, 2 planes only should be remained. This means the number of planes in addition to their locations are related to the input parameter.



Is there any feature in CATIA that can do such thing? I guess there should be something related in the "knowledgeware" workbench, but I couldn't find the right thing.










share|improve this question




















  • 1





    The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part.

    – C R Johnson
    Jan 2 at 12:12











  • @CRJohnson Thank you for your answer. It seems that the "Knowledge Pattern" is exactly what I need. I would like to mark your answer as accepted, please post it as an answer.

    – Sd Hosseini
    Jan 3 at 14:49
















0















I have worked with CATIA vba coding, and I know that it is possible to generate geometrical features (like planes, points, intersections, ...) using a vba code. And also I know that you can repeat an operation (for example creating a planes) as many number as required in the vba. But the problem is that the vba is actually offline, I mean you should execute the code to generate the features every time.



In my case, I am creating a part template in which not only the dimensions are parametric, but also the number of geometrical features are also related to the input parameters. For example, when I set a length parameter to 100mm, 2 planes should be created; and when I change it to 200mm, 2 additional planes should be defined. And if I change it back to 100mm, 2 planes only should be remained. This means the number of planes in addition to their locations are related to the input parameter.



Is there any feature in CATIA that can do such thing? I guess there should be something related in the "knowledgeware" workbench, but I couldn't find the right thing.










share|improve this question




















  • 1





    The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part.

    – C R Johnson
    Jan 2 at 12:12











  • @CRJohnson Thank you for your answer. It seems that the "Knowledge Pattern" is exactly what I need. I would like to mark your answer as accepted, please post it as an answer.

    – Sd Hosseini
    Jan 3 at 14:49














0












0








0








I have worked with CATIA vba coding, and I know that it is possible to generate geometrical features (like planes, points, intersections, ...) using a vba code. And also I know that you can repeat an operation (for example creating a planes) as many number as required in the vba. But the problem is that the vba is actually offline, I mean you should execute the code to generate the features every time.



In my case, I am creating a part template in which not only the dimensions are parametric, but also the number of geometrical features are also related to the input parameters. For example, when I set a length parameter to 100mm, 2 planes should be created; and when I change it to 200mm, 2 additional planes should be defined. And if I change it back to 100mm, 2 planes only should be remained. This means the number of planes in addition to their locations are related to the input parameter.



Is there any feature in CATIA that can do such thing? I guess there should be something related in the "knowledgeware" workbench, but I couldn't find the right thing.










share|improve this question
















I have worked with CATIA vba coding, and I know that it is possible to generate geometrical features (like planes, points, intersections, ...) using a vba code. And also I know that you can repeat an operation (for example creating a planes) as many number as required in the vba. But the problem is that the vba is actually offline, I mean you should execute the code to generate the features every time.



In my case, I am creating a part template in which not only the dimensions are parametric, but also the number of geometrical features are also related to the input parameters. For example, when I set a length parameter to 100mm, 2 planes should be created; and when I change it to 200mm, 2 additional planes should be defined. And if I change it back to 100mm, 2 planes only should be remained. This means the number of planes in addition to their locations are related to the input parameter.



Is there any feature in CATIA that can do such thing? I guess there should be something related in the "knowledgeware" workbench, but I couldn't find the right thing.







catia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 22:25







Sd Hosseini

















asked Jan 2 at 11:54









Sd HosseiniSd Hosseini

1037




1037








  • 1





    The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part.

    – C R Johnson
    Jan 2 at 12:12











  • @CRJohnson Thank you for your answer. It seems that the "Knowledge Pattern" is exactly what I need. I would like to mark your answer as accepted, please post it as an answer.

    – Sd Hosseini
    Jan 3 at 14:49














  • 1





    The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part.

    – C R Johnson
    Jan 2 at 12:12











  • @CRJohnson Thank you for your answer. It seems that the "Knowledge Pattern" is exactly what I need. I would like to mark your answer as accepted, please post it as an answer.

    – Sd Hosseini
    Jan 3 at 14:49








1




1





The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part.

– C R Johnson
Jan 2 at 12:12





The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part.

– C R Johnson
Jan 2 at 12:12













@CRJohnson Thank you for your answer. It seems that the "Knowledge Pattern" is exactly what I need. I would like to mark your answer as accepted, please post it as an answer.

– Sd Hosseini
Jan 3 at 14:49





@CRJohnson Thank you for your answer. It seems that the "Knowledge Pattern" is exactly what I need. I would like to mark your answer as accepted, please post it as an answer.

– Sd Hosseini
Jan 3 at 14:49












1 Answer
1






active

oldest

votes


















1














The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54005898%2fvariable-number-of-features-according-to-dimensions-in-catia%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part






    share|improve this answer




























      1














      The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part






      share|improve this answer


























        1












        1








        1







        The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part






        share|improve this answer













        The "Knowledge Pattern" is a special kind of Rule which will do what you ask in a part. It is available in the PKT workbench when working in a part







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 4 at 13:12









        C R JohnsonC R Johnson

        506139




        506139
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54005898%2fvariable-number-of-features-according-to-dimensions-in-catia%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            SQL update select statement

            'app-layout' is not a known element: how to share Component with different Modules