Search found 4 matches
- Tue May 24, 2022 7:19 am
- Forum: Path/CAM
- Topic: macro for finding holes
- Replies: 11
- Views: 8724
Re: macro for finding holes
we can also check a normal on the surface. here is my solution: face = Gui.Selection.getSelectionEx()[0].SubObjects[0] surface = face.Surface surfaceType = type(surface).__name__ if(surfaceType == 'Cylinder'): center = surface.Center axis = surface.Axis value = face.valueAt(0,0) normal = face.normal...
- Wed Nov 13, 2019 6:56 am
- Forum: Python scripting and macros
- Topic: Import vs ImportGui: Materials
- Replies: 9
- Views: 2738
Re: Import vs ImportGui: Materials
hey! I found the answer. Please check the return value of
If your step file has color information. the return value of the insert function should be an array object. otherwise, it returns None.
you'll found the color data in the list
Code: Select all
v = Import.insert('path_to_stp', 'doc_name')
print(v)
you'll found the color data in the list
- Sat Jul 06, 2019 2:02 am
- Forum: Part Design module development
- Topic: STEP/IGES color
- Replies: 16
- Views: 6776
Re: STEP/IGES color
Thank you !
- Fri Jul 05, 2019 2:24 pm
- Forum: Part Design module development
- Topic: STEP/IGES color
- Replies: 16
- Views: 6776
Re: STEP/IGES color
The link above is not reachable now. I met the same problems. How can I import step file in cmd mode and without color loosing. I'd notice that there is a TODO flag for this topic in ImportOCAF.cpp #if 0//TODO Gui::ViewProvider* vp = Gui::Application::Instance->getViewProvider(part); if (vp &&am...