Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, kinds!
I wanna make a function for creating Extrusion easily like that:
Extrusion createExtrusionZ(CurveArrArray pProfile, double bottom, double height)
{
// mm to feet
double bottomF = mmToFeet(bottom);
double heightF = mmToFeet(height);
// create Sketch Plane
Plane pPlane = Plane.CreateByNormalAndOrigin(new XYZ(0.0,0.0,1.0),new XYZ(0.0,0.0,bottomF));
SketchPlane pSketchPlane = SketchPlane.Create(_rvtDoc, pPlane) as SketchPlane;
// return new Extrusion
bool bIsSolid = true;
return _rvtDoc.FamilyCreate.NewExtrusion(bIsSolid, pProfile, pSketchPlane, heightF);
}
I expect that extrusion from [bottom] to [bottom + height] at Z direction, but I get that from [0] to [height] always.
I suspect that the way to create SketchPlane is mistaken, but I don't have any certain idea.
Could you give me a hand, gentles?
Solved! Go to Solution.