How to SetLocalTransformation for my STEP model

Hey guys,
At first, I read my STEP file using STEPControl_Reader , thus getting a TopoDS_Shape. Then I transferred the TopoDS_Shape into an AIS_Shape to show the model in my context. I used SetLocalTransformation to rotate my model so I can move/rotate my robot joints.
However due to the model not being colorful, I decided to read the STEP file using STEPCAFControl_Reader and used TPrsStd_AISPresentation to show my STEP model in its original color.
But now I found difficulty in 'rotating' my model. I did not know how to "rotate" my model...At first, I tried to transfer the TPrsStd_AISPresentation into an AIS_Shape so I could still use SetLocalTransformation to rotate my model. But I failed......Then I found that I can use GetAIS() to return the context in the TPrsStd_AISPresentation, and I got a AIS_InteravtiveObject......
So...could anybody tell me Whether I could use some functions to "rotate" my TPrsStd_AISPresentation Or I could transfer the AIS_InteractiveObject I got into AIS_Shape so I could "rotate" my model in my old way......
My whole model consists of 7 STEP files, and I have 6 axies to rotate which is displayed in my attached picture.
Thanks in advance!!!
Best regards.

Attachments: 
华裔 程's picture

Well, at the sametime, my DRAWEXE.exe throw an error when I open it.
It says: couldn't read file "D:/OpenCASCADE-7.4.0-vc14-64/src/DrawResources/DrawDefault": no such file or directory
I check my files and find that I actually HAVE the "DrawDefault" file but in another file path.
So if anyone could tell me how to change the file path, I would be grateful toooooooooooooo. : )

Dmitrii Pasukhin's picture

Hello, this problem is only for user who installed OCCT by myself.
You can fix it, if check all files in the root build/install directory.
As for a main case, please check the existing of the next files:
custom.bat, custom_vc14_64.bat, env.bat. Note, custom.bat like to be removed.

Best regards, Dmitrii

Dmitrii Pasukhin's picture

Hello,

You can't move a STEP file content. But you can move (not dynamic) a result XBF document or shape (not AIS), that created via transfer process. To set a location to the document's label you can use a special XCAF tool. If you want do this, please inform me.
If you want to move AIS objects, please create a ticket to Visualization group. Data exchange topic work with CAD formats, ISO and other things about keeping, reading and writing.

Best regards, Dmitrii.