Is there any difference between moving a component via UI and creating a component via Api and transformation matrix?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Our procedure:
- Determination of the insertion point (insertPoint)
- Gets the translation component of the matrix
Ptr<Matrix3D> matrix3d = Matrix3D::create();
matrix3d->translation(Point3D::create(0, 0, 0)->vectorTo(insertPoint));
- Basing the component on the transformed matrix
Ptr<Occurrence> occ = root->occurrences()->addNewComponent(matrix3d);
- In this component I will create BRepBody and design planes. Then I select a construction plane, create a sketch on it and project the selected surface onto it, see figure
Etruding the resulting profile creates a new BRepBody, but it is displaced, see next figure.
This procedure worked correctly in our application until recently.
However, if I create a BRepBody at the origin of the document and apply the COPY/MOVE with Point to Point
and then use the same API code, everything goes fine
So the question is, what has changed? And is the fault on our side or Autodesk's?