I manually operate it to create a reference plane with rotation and translation at the same time but failed.
is it impossible?
Or we can use API to create it with rotation and translation at the same time?
SolidworksApi macros
I manually operate it to create a reference plane with rotation and translation at the same time but failed.
is it impossible?
Or we can use API to create it with rotation and translation at the same time?
SolidworksApi macros
Hey Jin,
I'm afraid you should split this operation in two pieces:
1) Make an translated plane (IModelDoc2::ICreatePlaneAtOffset3)
2) Make the rotated plane from previously created plane (ModelDoc2::CreatePlaneAtAngle3). Note in this case two planes will be created. Use the last one.
If you can calculate three point which lies of the Plane you would like to achive (for example using some math functions). You can create a plane in one try using the ModelDoc2::CreatePlaneFixed2 method.
If you need some more assistance please do not hesitate to ask.
Thanks,Artem,
U are right. I try to use modeldoc2::createplanefixed2 just in one try.