Personal tools
You are here: Home Forum Use TUI to delete a shape / geometry group

TUI to delete a shape / geometry group

Up to Use

TUI to delete a shape / geometry group

Posted by Nejc Jurkovic at March 24. 2019

I am adding a STEP assembly to a study via TUI:

 

 

step = geompy.ImportSTEP("test.step", False, True)

geompy.addToStudy(step, "test")

step_shapes = geompy.ExtractShapes(step, geompy.ShapeType["SOLID"], False)

 

I am also creating volume groups on them:

 

volume_group = geompy.CreateGroup(solid_shape, geompy.ShapeType["SOLID"])

geompy.UnionIDs(volume_group, list_of_indexes)

geompy.addToStudyInFather(partition, volume_group, "vol" + shape_name)

 

How do I delete the former and the latter via a script? Python dump apparently doesn't include the remove operations. I found no docs either (at least nothing useful).
 
Thanks!

Re: TUI to delete a shape / geometry group

Posted by Nabil Ghodbane at March 25. 2019

Hi,

can you check whether  this thread helps:

https://www.salome-platform.org/forum/forum_10/366900504#703986175

HTH, nabil

Re: TUI to delete a shape / geometry group

Posted by Nejc Jurkovic at March 25. 2019

It says: AttributeError: 'geomBuilder' object has no attribute 'GEOM'

I'm using salome 9.2. Obviously a lot has changed and the new documentation isn't ready yet.

Powered by Ploneboard
Document Actions