Hi,
Can someone help me with an examplecode for creating a new Wall:Architectural?
I wish to insert a radius/allow the wall to follow a curve.
Now my curves are within the CurveArray category and created as follows;
CurveArray curve1= new CurveArray();
Arc path = CreateArcByGivingPlane(plane, r, angle1, angle2);
curve1.Append(path);
Thank you.
Solved! Go to Solution.
Hi,
Can someone help me with an examplecode for creating a new Wall:Architectural?
I wish to insert a radius/allow the wall to follow a curve.
Now my curves are within the CurveArray category and created as follows;
CurveArray curve1= new CurveArray();
Arc path = CreateArcByGivingPlane(plane, r, angle1, angle2);
curve1.Append(path);
Thank you.
Solved! Go to Solution.
Solved by naveen.kumar.t. Go to Solution.
Solved by naveen.kumar.t. Go to Solution.
Solved by Moustafa_K. Go to Solution.
try reading this and let us know if you successfully able to create a wall from cuve
try reading this and let us know if you successfully able to create a wall from cuve
Hi @Anonymous ,
Here is an example code
XYZ origin = new XYZ(0, 0, 0); XYZ normal = new XYZ(0, 0,10); Plane p = Plane.CreateByNormalAndOrigin(normal,origin); SketchPlane sp = SketchPlane.Create(doc, p); IList<Curve> curvess = new List<Curve>(); Arc path = Arc.Create(p, 35, Math.PI / 2, Math.PI); curvess.Add(path); Level level1; Wall.Create(doc, path, level1.Id, false);
I hope this helps.
Hi @Anonymous ,
Here is an example code
XYZ origin = new XYZ(0, 0, 0); XYZ normal = new XYZ(0, 0,10); Plane p = Plane.CreateByNormalAndOrigin(normal,origin); SketchPlane sp = SketchPlane.Create(doc, p); IList<Curve> curvess = new List<Curve>(); Arc path = Arc.Create(p, 35, Math.PI / 2, Math.PI); curvess.Add(path); Level level1; Wall.Create(doc, path, level1.Id, false);
I hope this helps.
Hi,
I have tried this earlier, but I guess I defined something wrong, cause now it worked.
Thank you!
How do I set the height of the wall?
Hi,
I have tried this earlier, but I guess I defined something wrong, cause now it worked.
Thank you!
How do I set the height of the wall?
Hi @Anonymous ,
To set the height of the wall
Wall w;
int heightofWall; if(w!=null) { Parameter P1 = w.get_Parameter(BuiltInParameter.WALL_USER_HEIGHT_PARAM); if(P1!=null) { P1.Set(heightofWall); } }
Hi @Anonymous ,
To set the height of the wall
Wall w;
int heightofWall; if(w!=null) { Parameter P1 = w.get_Parameter(BuiltInParameter.WALL_USER_HEIGHT_PARAM); if(P1!=null) { P1.Set(heightofWall); } }
Thank you, that worked perfectly 😄
Thank you, that worked perfectly 😄
Can't find what you're looking for? Ask the community or share your knowledge.