Replace style with library style

Replace style with library style

Anonymous
Not applicable
409 Views
4 Replies
Message 1 of 5

Replace style with library style

Anonymous
Not applicable
I am trying to find a way to replace a used style with an existing library style. For drawing documents I saw that a function name "Replace style" exists in "Style and Standard Editor" window. Is this functionality allowed in API? If not how can I replace a style with another style using API.

Thanks
0 Likes
410 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Sorry, there isn't an API equivalent for the
'Replace style" command. You will need to do the replacement on a per object
basis. For instance, use the GeneralNote.TextStyle property to change
the style used by a drawing note.However, the API doesn't provide this support
for all objects yet.

 

Sanjay-
0 Likes
Message 3 of 5

Anonymous
Not applicable
This is a really bad news. Isn't there a way to do this easier and better - like calling the Inventor "Replace style" method?
0 Likes
Message 4 of 5

Anonymous
Not applicable
Hello,

Do you know if the "Replace Style" function will be available in the 2010 Inventor API?
0 Likes
Message 5 of 5

Anonymous
Not applicable

Sorry, but no, this is not available in Inventor
2010 either.

 

Sanjay-
0 Likes