cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How can I regenerate a solid with instances via RegenInstructions?

JUANCARLOSBECER
1-Newbie

How can I regenerate a solid with instances via RegenInstructions?

Hi guys,

In the migration fro Pro/e to Creo, we have some problems with the code to regenerate models. At the moment ihave this code but it doesn't work. Anybody can help  me?

for (i = 0; i < solids.Count; i++)

  {

    try

     {

       var solid = solids.Item (i);

       WlWindowRepaint();

        if (solid.Genericname== void null)

            // if the model to regenerate is a generic or instance model

            {

            var I_regen = pfcRegenInstructions.SetForceRegen

            solid.regenerate(I_regen)

            }

        else

            {

           solid.pfcRegenInstructions.UpdateInstances

           //WlWindowRepaint();

            }

       solid.save();

       }

}

  

JC


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Toby Metcalf‌, could you please move this to the appropriate Creo forum.

Moving this to Creo to get the right eyes on it.

Thank you Richard Jackson

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags