Move brepFace in parametric design

Move brepFace in parametric design

PinRudolf
Advocate Advocate
621 Views
2 Replies
Message 1 of 3

Move brepFace in parametric design

PinRudolf
Advocate
Advocate

Hello,

 

I'm trying to move a brepFace but I'm having some trouble understanding how to do this. I would like to move a face but keep the body as a whole, I would also like to be able to rotate the face. Basically I want the option Move from the Modify menu.

 

Using the API-documentation I've looked into different methods but they all do not seem be suited for one reason or another.

  • MoveFeatures gives me exactly what I want, except that it only works for faces in non-parametric modeling.
  • Using OffsetFeatures I could create a new face but will then have to connect that new face to the previous face, creating at least 2 more features. Also it won't help me do a rotation. (Not similar to the menu OffsetFaces in the way I expected it to be.)
  • The brepFace object has the property Geometry which will return a Surface, which then has a method transformBy. Which is great except that the Geometry property is read only and nothing happens. The same counts for moving vertices.

Now I am wondering if I am going about this all wrong or if this option is just not available?
I've come across this exact same requirement before and just found a way to work around it, but now I'm running into it again I start to feel like I'm missing something obvious.

Thanks!

0 Likes
Accepted solutions (1)
622 Views
2 Replies
Replies (2)
Message 2 of 3

Ruud1
Contributor
Contributor
Accepted solution

Extrude to object will move and rotate the face 🙂

0 Likes
Message 3 of 3

PinRudolf
Advocate
Advocate

I have overlooked the simplest solution of all! 😄 This will suit my current project nicely.

 

(Yet it is only a coincidence that I actually have a face to extrude to.)

 

0 Likes