Home
Reply
Contributor
pwang8097
Posts: 18

Emergency! Is it possible to change a body's memory address after I make chamfer on this body?

 The situation is that I get some edges  belong to a body, and I make chamfer using those edges.  Then when I save the body in .sat format,  it went wrong.

So what is the problem ?

One idea I thought out myself is that  maybe  after the chamfer done  the body need more memory so that ACIS reallocate the memory for the body.

that can explain why my older pointer to the body no longer point to the it.

      I really want to kown  whether my explaination stands up.   If not, I really want someone could give me some hint.

Spatial Moderator
ybiyani
Posts: 223

Re: Emergency! Is it possible to change a body's memory address after I make chamfer on this body?

Hello pwang8097,

 

What api's were you using for chamfer?

Did the chamfer api return a successfull outcome?

Was there any other operation performed after Chamfer and before save?

Can you provide more information on the issue you face during save? -Is the sat file corrupt? 

Can you journal the api - try the operation in scheme and see if it saves?

 

We will need more information to help you with this issue.

 

Regards,

Yogesh

Contributor
pwang8097
Posts: 18

Re: Emergency! Is it possible to change a body's memory address after I make chamfer on this body?

the API I use are api_set_const_chamfer and api_fix_blends .

And the chamfer API return success.

There are no other operation after the chamfer. 

 the sat file is indeed corrupt. And the solidworks cannot open it.

 And what I want to konw desperately  is that  whether there is a chance  the two routines(api_set_const_chamfer and api_fix_blends) will change the body's memory address during their excuting.   If so, I will find another way around.

Spatial Moderator
ybiyani
Posts: 223

Re: Emergency! Is it possible to change a body's memory address after I make chamfer on this body?

Hello  pwang8097,

 

These api's should not change the BODY address but regardless you should not be worried about it. As mentioned earlier can you journal these api's and see if those work in acis3dt.exe? There is something else going on!

 

Regards,

Yogesh

Contributor
pwang8097
Posts: 18

Re: Emergency! Is it possible to change a body's memory address after I make chamfer on this body?

hello ybiyani

 

Thank you for your help. I have the answer. I will do what you suggest me.

I am regret to my impolite and hasty.

 

best regards

pwang8097