angle Parameter in sweep

angle Parameter in sweep

Anonymous
Not applicable
756 Views
1 Reply
Message 1 of 2

angle Parameter in sweep

Anonymous
Not applicable

Hi there,

 

there is a little question in case of creation sweeps by method.

loading and placing the sweep is not a problem, but i have to rotate the used profile by 90°. I thought using the profilsymbol.angle parameter, but i can't change it by codeside. Is this the wrong way solving this issue?

 

 

sweep1 = tmpFamily.NewSweep(true, curves, SP_3, profile, 0, ProfilePlaneLocation.Start);

sweep1.ProfilSymbol.Angle = angle * Mathi.Pi / 180;

 

 

Mark

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

Joe.Ye
Alumni
Alumni
Hello, sweep1.ProfilSymbol is read-only property, so you could not change the angle. You can just rotate the Sweep by ElementTransformUtils.Rotate() method. Hope this helps,


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes