i-Logic: split face with surface body

i-Logic: split face with surface body

Anonymous
Not applicable
346 Views
1 Reply
Message 1 of 2

i-Logic: split face with surface body

Anonymous
Not applicable

Hi,

 

Is there a way to use i-Logic for splitting faces on a part?

 

Let say I have surface1 and solid1, surface1 needs to split the face of solid1.

surface1 beeing a surface body.

 

I tried looking in the API but cannot find a sample, just some loose syntax that i cannot link without a good example.

 

I have attached a sample-part that contains a cube with on it a surface collected via 'copy design'. This surface body is then splitted out of the part.

 

 

0 Likes
347 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Hi,

 

I'm back working on this, and come up with some code that loops through all of my surfaces, the meaning is that it use split face with "solid1" but still no succes.

 

What is wrong? If i test with "oBody.name" the rright surface bodies are selected. But it's not creating my much needed split...

 

Dim oCompDef as ComponentDefinition
oCompDef = ThisDoc.Document.ComponentDefinition

Dim oBody As SurfaceBody

Dim i As Integer
i = 1

For Each SurfaceBody In oCompDef.Worksurfaces
	
	oBody = oCompDef.Worksurfaces.Item(i).SurfaceBodies.Item(1)
	oCompDef.Features.SplitFeatures.SplitFaces(oBody,True,Nothing)
	
	i = i + 1
	
Next

 

Syntax from Programming help

SplitFeatures.SplitFaces( SplitTool As Object, [SplitAll] As Boolean, [FacesOrBody] As Variant ) As SplitFeature
0 Likes