Search found 4 matches

by iamnotstone
Tue May 24, 2022 7:19 am
Forum: Path/CAM
Topic: macro for finding holes
Replies: 11
Views: 8669

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...
by iamnotstone
Wed Nov 13, 2019 6:56 am
Forum: Python scripting and macros
Topic: Import vs ImportGui: Materials
Replies: 9
Views: 2728

Re: Import vs ImportGui: Materials

hey! I found the answer. Please check the return value of

Code: Select all

v =  Import.insert('path_to_stp', 'doc_name')
print(v)
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
by iamnotstone
Sat Jul 06, 2019 2:02 am
Forum: Part Design module development
Topic: STEP/IGES color
Replies: 16
Views: 6730

Re: STEP/IGES color

easyw-fc wrote: Fri Jul 05, 2019 3:19 pm
iamnotstone wrote: Fri Jul 05, 2019 2:24 pm The link above is not reachable now.
https://www.meusburger.com/FR/FR/media/ ... rds_IN.pdf
Thank you !
by iamnotstone
Fri Jul 05, 2019 2:24 pm
Forum: Part Design module development
Topic: STEP/IGES color
Replies: 16
Views: 6730

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...