Home
Reply
Contributor
wangpai7776
Posts: 9

A problem of modefiy Boolean body:modify old body ,the new body changed.

First,create tow blocks(block1 and block2).Then,call function api_boolean.  Block2 is tool body, as flowered:

 

Then,I modify the length of old body(block2),I hope the new body is changed as flowered:

 

The problem is I don’t know how to do? And which method is a good way?

 

Thanks.

 

Boolean1.jpg
Boolean2.jpg
Spatial Moderator
ybiyani
Posts: 223

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

After the first boolean use api_move_faces to update the result.See an example here  http://doc.spatial.com/index.php/Move_Local_Operations_Functionality .

Contributor
wangpai7776
Posts: 9

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

Thanks, ybiyani!

I've got it.

 

Anther question:

When I use api_move_faces, I have to know which face to move.

As mentioned above, when I changed the tool-body's(block2) height, how to know which face should move???

Spatial Moderator
rbagley
Posts: 120

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

Hi,

 

It seems you want to amke a feature modeler that can regenerate a series of operations after changing some inputs.  ACIS can not do this for you directly; you are required to store the "recipe" for each feature (sweep, boolean, blend, etc.) and execute them in order.  ACIS can only execute the individual operations and provide you information on the result (through Annotations).

 

If I misunderstand your question, and you just want to know how to track the faces created from the operations, then please read up on Annotations (http://doc.spatial.com/index.php/Annotations).

 

Best regards,

Ray

Contributor
wangpai7776
Posts: 9

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

Hi Ray,

 

Thank you for taking time to help me.

 

After thinking over your suggestions, I still have some confusions. That might be because I did not do a good job to describe the situations clearly. Let me give another try here.

 

If I had a complex model built by some basic parts like bricks and spheres, using Boolean operations. Now I

want to modify the dimensions of one or more basic parts in the complex model. According to the early replies I got, it seemed possible to do that,  if I knew which faces to move, by moving the faces instead of regenating the entire complex model.

 

Here are my questions:

 

1) are there ACIS functions that help me to automatically identify which faces to move? For example, if I modify the height of a brick, graphically I know to pick its top face with a mouse. However, are there functions to give me that face's ID without using the mouse?

 

2) does the function to move local operations http://doc.spatial.com/index.php/Move_Local_Operations_Functionality still work when the targeted face belongs to a part buried deeply into the complex model resulted from multiple Boolean operations?

 

In addition, we have tried the regeneration approach just as you suggested, with stored "recipe". The issue we ran into was that the parts used during Boolean operations no longer existed after the operations. So when you said to store the "recipe", did you mean to store BOTH the operations (sweep, boolean, etc) and the basic parts (spheres, bricks, etc) so that the complex model can be regenerated faithfully?

 

Really appreciate your help.

 

Pai

Spatial Moderator
rbagley
Posts: 120

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

Hello Pai,

 

I'm afraid you're asking for more help than I am able to give you.

 

The algorithms to write a full modeling system like you propose - either feature-based or purely direct editing - are significant.  ACIS certainly has the functionality to support both implementations (there are many customer applications that demonstrate such).  I recommend you contact your Spatial Account Manager to discuss how we could help you through Professional Services.

 

Best regrads,

Ray

Contributor
GavinMartin
Posts: 6

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

Thanks for the informative post. Can i get some more detail on this subject? Thanks...

Spatial Moderator
rbagley
Posts: 120

Re: A problem of modefiy Boolean body:modify old body ,the new body changed.

 


GavinMartin wrote:

Thanks for the informative post. Can i get some more detail on this subject? Thanks...


Not sure which subject you mean...