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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Restructure an object

rnoah
10-Marble

Restructure an object

Hi,

I would like to create an utility for restructuring parts. the utility should simple allow selection of several parts

and move it to new/existing sub assembly.

While searching through the misc documentation  i couldn't find any information about it.

Does any of you have an experience with the following ? any ideas ?

Many thanks,


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.
7 REPLIES 7
GabrielZaha
13-Aquamarine
(To:rnoah)

There are already one command that does exactly what you describe:

restructure.jpg

How this new utility will be different?

Correct. Restructure does exactly what you describe.

hn.a
4-Participant
(To:manjunathrv)

Do we still have re-organize in Creo? Not sure if I remember used to be in old versions.

Hi,

Indeed we have restructure in Creo.

However, like always in customization, this is only part of the story...

the utility i'm thinking of should select all the relevant item automatically, according to certain logic, create new

asm, add all selected items to it, create a drawing out of it etc.

So as you can understand the question is not really how to preform the restructure through the GUI.

it should be fully automated.

Many thanks,

FV
17-Peridot
17-Peridot
(To:rnoah)

Hello all,

Interesting question.

The application is entirely possible - all relevant API's are available. The most difficult portion is going to be  redefining component references due to the changes in ProAsmcomppath in the restructured assembly. The rest of code will revolve around ProSolidFeatVisit with filter set to ProType - PRO_FEAT_COMPONENT and ProElem  API as in ProAsmcomp.h header file.

HIH.

Feliks.

tmaoz
4-Participant
(To:FV)

Hi FV,

Can you tell me the way you did restructer ?

Did you use ProAsmcompAssemble function and then redefine all the references to it or there is other function to restructure ?

Thanks.

FV
17-Peridot
17-Peridot
(To:tmaoz)

Tal,

You could use ProAsmcompAssemble(...) with ProAsmcomConstraintsGet(...) and ProAsmcompConstraintsSet(...). My personal preference is to use ProElem related API's to manipulate ProElement tree of a feature (component).

HIH.

Feliks.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags