[Se...] Posted yesterday at 12:15 PM Share Posted yesterday at 12:15 PM (edited) I have a part assembled with 4 pins that are embedded in the part, as shown in the picture. How can I make the script or program detect and remove them? the pins are not in one and the same place, they may differ slightly in distance from subsequent scans Edited yesterday at 12:16 PM Link to comment Share on other sites More sharing options...
[Na...] Posted 23 hours ago Share Posted 23 hours ago Hi Sebastian, is the part aligned to a CAD? You could select the mesh belonging to the part with select by mesh, invert the selection and delete. There are many other selection tools to fine tune the selection. During measuring there is cut out points outside CAD available, so the measuring data is filtered during acquisition with supported sensors. Nanno Link to comment Share on other sites More sharing options...
[Se...] Posted 7 hours ago Author Share Posted 7 hours ago The program does not have a built-in CAD system. If I upload a CAD file and perform local alignment, is that sufficient, or should I do it differently? Since I scan parts, then perform polygonization, and afterwards remove the 4 pins attached to the part (as shown in the images in the previous correspondence), how can I make these pins be removed automatically? Or do you perhaps have any presentation I could use to set this up? The pins will be located in different places. The goal is that after polygonization and obtaining the G3D file, the pins are automatically removed so that I do not have to remove them manually. Can you help me with this Link to comment Share on other sites More sharing options...
[Ma...] Posted 7 hours ago Share Posted 7 hours ago If you are scanning that, then you can remove background points with help of CAD model. Otherwise a small python script can help to do that, if you can replicate steps to obtain your desired result. Link to comment Share on other sites More sharing options...
[Jo...] Posted 6 hours ago Share Posted 6 hours ago Are those pins from a fixture / target frame? There are also possibilities to remove fixtures and the pins will propably not be at the exact same spots on the part, but on the exact same spots relativ to the rest of the fixture. Link to comment Share on other sites More sharing options...
[Se...] Posted 6 hours ago Author Share Posted 6 hours ago The mounting pins, as in the picture, are attached in a very similar manner. My Python knowledge is limited. I can insert CAD into the program and base the parts against CAD using Local BestFit, but I would like it to be automatic and remove the pins automatically. But I don't know how do this. Can someone tell me step by step Link to comment Share on other sites More sharing options...
[Ma...] Posted 5 hours ago Share Posted 5 hours ago (edited) Then while they are mounting pins, then you can put fixture model and have automatic remove of the fixture by this model. I've not used that before, so you would need to experiment or wait for someone with experience with this. PYTHON: What was mentioned can be recorded into script, so you would only need correction in names of the part and mesh, which can usually be changed into number 0 and it will always pick first element. After record we can help with making it usable for any project. Edited 5 hours ago python Link to comment Share on other sites More sharing options...
[Jo...] Posted 5 hours ago Share Posted 5 hours ago Have had a look at the links Nanno provided? You can record scripts: Link to comment Share on other sites More sharing options...
[Se...] Posted 5 hours ago Author Share Posted 5 hours ago Please sign in to view this quote. I've already recorded the script, and unfortunately, I can't place the pins on the part in the exact same place every time, and I have 36 parts parts. The script deleted them in a different place each time. Link to comment Share on other sites More sharing options...
[Ma...] Posted 4 hours ago Share Posted 4 hours ago I've tested a removal by fixture - it seems you have to have a license for VMR version, so this is not helping and seems like dead end. What i've tested on ATOS so far: creating adapters by placing ref. points on frame and fixture - i've used transparent clear matte varnish ( or how it's correctly written ) for dirt protection Adapters can be used as helping aid. You can make alignment from them to have 3d selection on mesh or you can have it as ref. frame. So that script is working or those pins are still there and removed mesh was from a part? Link to comment Share on other sites More sharing options...
[Se...] Posted 4 hours ago Author Share Posted 4 hours ago If I record and have a script, when I install another part and the pin moves to the right or left, the pin isn't removed. Unfortunately, I don't know how to do this by uploading CAD and comparing it with the mesh. The pins are incorporated into the part's structure. Link to comment Share on other sites More sharing options...
[Na...] Posted 4 hours ago Share Posted 4 hours ago This code worked for me in a sample project. Make sure the mesh is aligned (eg prealignment) to the CAD and only the mesh is the only element visible in the explorer. If the part structure is more complicated you can reach out to your local support and show them the project. # -*- coding: utf-8 -*- import gom #re-record select by mesh with parameters that work well for your project if needed gom.script.selection3d.select_by_mesh ( max_distance=1.001, max_normal_angle=0.436332313, mesh=gom.app.project.parts[0].nominal, respect_normals=False, restrict_actual_selection_to_nominal=False) #inverts selection -> pin mesh selected gom.script.selection3d.invert_selection () #selected mesh is deleted gom.script.cad.delete_selected_3d_area (reset_deviation_values=True) Link to comment Share on other sites More sharing options...
[Se...] Posted 3 hours ago Author Share Posted 3 hours ago Please sign in to view this quote. 1.I must copy in project CAD 2. Scaning parts ( polygonize ) 3. localbestfit on cad and mesh 4. then run scrypt?? Link to comment Share on other sites More sharing options...
[Ma...] Posted 3 hours ago Share Posted 3 hours ago (edited) I would later on make a project template to have the most of it automated, but yes. That script should run after alignment. What i tested right now: i have close enough CAD model of fixture ( pins can be longer +/- ) i've placed ref. points on fixture and scanned made an alignment on that CAD and scanned exported refpoints deleted unwanted refpoints from that stored document and saved went to Preferences/Templates/Ref. frames clicked add - selected that file and filled temp and coeficient now in project go to Aquisition/Use ref. frame - select this new one import CAD model of that fixture and use it as fixture - it will place it exactly on that place now go to 3d selection by mesh - select this fixture mesh and it's done - you have selected only fixture + something from part - this you can delete Disclaimer: Those are really advanced steps, which you have to tryout, learn and test before hot project Edited 3 hours ago Link to comment Share on other sites More sharing options...
[Na...] Posted 2 hours ago Share Posted 2 hours ago Please sign in to view this quote. The script is for a project with a CAD and an aligned mesh. CAD Mesh Prealignment (or another good alignment between CAD and mesh) In a measuring project, you can also work with a CAD and an alignment and use cut out points outside CAD. The measuring data is filtered directly during the scanning process, so the pins are not included in the polygonized mesh in the first place. I think it is easiest if you contact your local support with the project and they will set up the project with you: Get in touch with our team | ZEISS Industrial Quality Solutions Nanno Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in