Extrude

Arguments

Note that some combinations of arguments may not be valid. The restrictions are the same as when creating an Extrude interactively.

Properties

Note that the acceptable values for these properties are shown above. The same restrictions and argument types apply here as when creating the Extrude.

Functions
Example
//Create Extrude of Sketch1, 35 units in the +Z direction
var ext1 = agb.Extrude(agc.Add, ps1.Sk1, agc.DirNormal, agc.ExtentFixed, 35.0,
agc.ExtentFixed, 0.0, agc.No, 0.0, 0.0);
agb.Regen(); //To insure model validity

//Now, make some changes to the Extrude
//Change to Sketch2 as the base object, extrude 20 units in both directions and name it
ext1.PutBaseObject(ps1.Sketch2);
ext1.Name = "OvalExtrude";
ext1.depth = 20;
ext1.Direction = agc.DirSymmetric;
agb.Regen(); //To process the changes and insure model validity

Release 18.2 - © ANSYS, Inc. All rights reserved.