Changing Fibre Properties of CurrentDesign
Hey everyone,
I'm working on a java based tool to update certain properties of all used Fibres in a Design.
With Design.getCurrentDesign(); I'm referencing the current design.
With the method Design.getFibres(true, true) I get an Iterator of all the used Fibes in the Design.
To use the Fibre-specific methods however, I have to cast the Iterator to a Fibre Object.
Unfortunately that is not working. (Fibre myFibre = (Fibre) Design.getFibres(true, true).next())
I get the Exception that a cast to a Fibre is not possible.
What am I missing here? How can I reference each Element of this Iterator?
I am new to Java so don't be too harsh on me 😉
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

