Jump to content

Importing multiple CMM point files as stages (crash)


---
 Share

Recommended Posts

Hello, 

Normally I would drag and drop multiple csv files with CMM results (coordinates, point name and type) in and follow the software to import these file. In most cases this suits me well. 

But in certain cases another method is needed. I need to iterate over each file in a list of selected files and perform the import file by file. Doing that with the code as below, the program crashes. 

gom.script.sys.import_ascii (
    files=['C:/1_AC112_2025-11-22 B-D.csv'],
    import_mode='new_stage',
    template_bin=gom.Binary ('some string')
	)

Zeiss Inspect 2025 sp2 is used. 

What else has to be done when importing the csv files one by one? 

Do I need to use : 'gom.script.sys.add_new_stage()' function? 

Thanks in advance. 

Link to comment
Share on other sites

Hello Johnny,

i am not able to reproduce this crash. 
Can you give some more context. Do you have a specific project open? What template are you using?

 

Regards

Daniel Schrein

Link to comment
Share on other sites

Hello Daniel, 

Yes I have a project open. 

This project has the nominal model, measurement and actuals. The actual are imported 3D point from the CMM machine. A mesh is not used. The nominals are connected to the actuals. 

There is no specific template used. If there is a default template (from installation) this is used. 

I hope this helps. If needed I can share the project privately. 

Johnny

Link to comment
Share on other sites

Hello,

do you really have 'some string' as input to the template_bin parameter? This is what defines the ascii import template. If not, the template maybe does not fit the data you are trying to import. Did you get the import command by recording?

Regards

Daniel

Link to comment
Share on other sites

Hello, 

Now I understand. The import template came from recording the command in the script editor. The template is also used by manual 1 by 1 importing. 

 

regards

Johnny

Link to comment
Share on other sites

 Share

×
×
  • Create New...