Message 1 of 3
Delete Surface Anybody knows How?

Not applicable
10-01-2010
02:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a surface called "RevolutionSfr1" in my part and this i want to delete?
I tried the code below but it does not work.
Does anybody knows how to call and delete a surface if you know the name of the surface.
Dim oSurFaces As WorkSurfaces
oSurFaces = oPartdoc.ComponentDefinition.WorkSurfaces
Dim oSurFace As WorkSurface
oSurFace = oSurFaces.Item("RevolutionSrf1")
oSurFace.Delete
Please Help.
Regards Kent boettger