0

I've succesfully created a Sweep using a loaded profile. Now I need to flip it along the path. I've tried this statement:

sweep.ProfileSymbol.IsFlipped = true

But, after the execution, IsFlipped is always false. What I'm doing wrong?

rene
  • 41,474
  • 78
  • 114
  • 152
Tobia Zambon
  • 7,479
  • 3
  • 37
  • 69

1 Answers1

0

Do you have any more of the code sample available? Perhaps you've moved out of the local range of the variable by the time you query the value of "sweep's" status?

prestonsmith
  • 758
  • 1
  • 9
  • 29
  • I query that value after the execution of the statement. The value of IsFlipped property is not so important to me but I need that the sweep will actually be flipped, and it's not. – Tobia Zambon Jul 18 '14 at 06:40
  • Just to check - you're doing all of this within a transaction correct? Also, the statement above will only tell you IF the element is flipped, it won't flip it for you. I think you can probably flip it using methods in the ElementTransformUtils class though. – prestonsmith Jul 18 '14 at 10:28
  • Yes this is inside a transaction (otherwise an exception will be thrown). The ElementTransformUtils class doesn't have a flip command. Mirror|Rotate are not the same as flip for non-linear paths – Tobia Zambon Jul 28 '14 at 07:23
  • have you tried just regenerating the document first? – prestonsmith Feb 07 '15 at 21:22