Extrude polyline[s]

Extrude polyline[s]

Anonymous
Not applicable
765 Views
1 Reply
Message 1 of 2

Extrude polyline[s]

Anonymous
Not applicable

Hi there, I am having trouble extruding 4 closed polylines.  I have tried to alter the example in the dot net guide but I can only work out how to do one at a time.

 

My code is below:

 

 Dim soldBg As Solid3d = New Solid3d
                soldBg.RecordHistory = True
                soldBg.CreateExtrudedSolid(acRegion2, New Vector3d(0, 0, 2), New SweepOptions())
                soldBg.ColorIndex = 1
                soldBg.TransformBy(Matrix3d.Displacement(New Point3d(ins.X + 13.5779479, ins.Y + 8.59827139, ins.Z) - Point3d.Origin))
                OGbtr.AppendEntity(soldBg)
                acTrans.AddNewlyCreatedDBObject(soldBg, True)

 

Thanks,

 

Martin.

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

moogalm
Autodesk Support
Autodesk Support

Hi there,

 

We don't have an API yet to extrude a collection of entities, currently API takes a single entity to extrude.

0 Likes