ftkalcevic
Member
Has anyone successfully built an assembly using an API?
I've written a program that creates boxes. It creates a new assembly, then creates new parts within the assembly. It does the sketches and extrusions to create the features of the parts. Then, to arrange the parts in the assembly, I use IADOccurrence.ApplyTransformation to rotate and translate the parts into the correct position. At this point everything looks ok, but if I then manually edit a part, it is completely messed up - it looks like the transformation has moved the sketches off their faces and then the features can't be recreated.
Is there another way to build an assembly and place the parts?
I've written a program that creates boxes. It creates a new assembly, then creates new parts within the assembly. It does the sketches and extrusions to create the features of the parts. Then, to arrange the parts in the assembly, I use IADOccurrence.ApplyTransformation to rotate and translate the parts into the correct position. At this point everything looks ok, but if I then manually edit a part, it is completely messed up - it looks like the transformation has moved the sketches off their faces and then the features can't be recreated.
Is there another way to build an assembly and place the parts?