-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marking of Geometric tolerance #141
Comments
CAD Assistant is using OpenCascade's "PMI Visualization Technology" commercial component. |
While,use OCAF tool,I can read GD&T data from STEP file, but how to display it?For dimensions, the library supply classes under PrsDim folder to add an AIS_InteractiveObject created from selected shapes to show length,angular or other dimension types. |
|
Thank you, I just called the GetGDTPresentations function to get all TopoDS_Shape for the GD&T,the Display it out, it workd well,but can not move when drag,seems have much work to do for this. |
If you want to move the dimensions 3D objects with the mouse then yes it requires some work. |
There is a question, if I add some geometric tolerance information,how to compute the presentation manually?Dose occ support some function to do this,did not seen any information about this in the user_guide?Do you have some advise? |
Is the presentation should be draw by myself,the occ did not provide a tool to draw this except pmi visualization commercial module? |
Actually after adding some GD&T information to a document, you would like to draw the representation shape but it's not available(because it's new) ? |
Yes,for the STEP file imported in before,I can show presentations for these GD&Ts because they are part of ap242 file and maybe already drawn by other software,so the function can get TopoDS_Shape and show it.But if add a new definition,the presentation need to draw by self because occ did not provide a function to do this(maybe I didn't find it),if I save this file,only GD&T information can be stored in ap242 schema,no presentation since it has not been drawn. |
I guess SolidWorks doesn't use the GD&Ts shape representations available in the STEP file but rather create its own representation/graphics. |
Eh,I found a tool named SFA in opencascade website told that can process STEP files. 2.CAD Assistant with PMI commercial component [missing some infomation] 3.CAD Assistant without PMI commercial component [can not show ] While the SFA show the GD&T infos same with Solidworks,so I guess they are should be read from AP242 files not draw by Solidworks itself, and this indicate that when Solidworks publish a AP242 file, the GD&T representation is well saved with standard ap242 protocol and can be readout by other software like OpenCASCADE(because SFA is based on OpenCASCADE),I try to read the SFA source code to find how it draw the GD&T representation but it write with tcl language which is not my domain,and can not understant. Do you have any idea?Or the SFA use other technology to achieve this? Need your help. Attach is my test STP file. |
Where is the SFA source code ? |
Here is the source code |
@akjay Can you share your code? Using the OpenCascade for reading the GD&T and displaying it out, Thank you! |
Use this. |
Thank you. When I used PythonOCC for step 2, there was a problem. Maybe it's the version. |
I'm using C++, not know how to do this with PythonOCC. |
Hi,is there a plan to develop a feature of marking geometric tolerance,like the CAD Assistant does.Or the OCCT supply a read to use function to do this?
The text was updated successfully, but these errors were encountered: