AddForSurface Polyline

AddForSurface Polyline

Anonymous
Not applicable
325 Views
2 Replies
Message 1 of 3

AddForSurface Polyline

Anonymous
Not applicable

I wish to create an Extrusion with an open profile having connected lines (polyline).

 

oSktech.Profiles.AddForSurface(ObjectCollection) does not seem to accept, ObjectCollection having set of lines...It accepts control points for a spline. Or it accepts just one line at a time. But that will create mulitple profiles, which I dont want. I want a single profile.

0 Likes
326 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Here is the problem:

 

Dim oLineOne As SketchLine
oLineOne = oSketch.SketchLines.AddByTwoPoints( _
oTransGeom.CreatePoint2d(0, 0.75), _
oTransGeom.CreatePoint2d(5, 0.75))

Dim oLineTwo As SketchLine
oLineTwo = oSketch.SketchLines.AddByTwoPoints( _
oTransGeom.CreatePoint2d(5, 0.75), _
oTransGeom.CreatePoint2d(10, 0.75))

Dim oProfile As Profile = oSketch.Profiles.AddForSurface

 

Both are connected. If I give either of the lines to AddForSurface, Extrusion is created for the respective line. If I pass Object Collection of these two lines. Errors out. If I dont pass anything, as in case shown above, it picks first line for Extrusion and not the second one which is connected to it.

 

I wish to have multiple such connected line to be part of the same Profile. 

 

In the interactive session, it is allowed and it creates a single surfacebody.

0 Likes
Message 3 of 3

Anonymous
Not applicable

I received suggestion from Philippe.leefsam which worked fine. He suggsted to have SketchPoint at the junction points and use those to create SketchLines. 

 

With this, I am able to create end-to-end connected lines and Surface Extrusion happens fine also. 

 

One more thing that I observed is: if there is one incoming line and one outgoing line at a sketchpoint, the ExtrtusionSrf works fine, line in case of "L" likes two lines. But if more lines come together at a point, say like "T" case, AddForSurface is not able to create a path having all three. It just stops at one, and only one surface gets extruded.

 

Is there any restriction in such surface creation?

0 Likes