IMPORT SHEET METAL UNFOLD RULES WITH VBA

IMPORT SHEET METAL UNFOLD RULES WITH VBA

nicolamora
Contributor Contributor
547 Views
3 Replies
Message 1 of 4

IMPORT SHEET METAL UNFOLD RULES WITH VBA

nicolamora
Contributor
Contributor

Hello,

I have many old parts with the wrong unfold sheet metal unfold rules. 

Is it possible to import an unfold .styxml file with a vba macro? 

Thanks 

 

unfold.jpg 

548 Views
3 Replies
Replies (3)
Message 2 of 4

Ralf_Krieg
Advisor
Advisor

Hello

 

"Writing in CAPITAL LETTERS or constant bold type is not only considered unsightly, but is usually interpreted as aggressive shouting and should therefore be avoided."

 

Save the actual/correct Sheet Metal Unfold to your style library. Thereafter it is available in every sheet metal part and can be used.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 4

nicolamora
Contributor
Contributor

Hello, and thanks for your reply. 

Sorry if I used capital letters, but I don't usually ask questions on forums so I don't know the "meaning" of everything...

However, I would personally pay more attention on the subject of the question instead of the useless minor details.

 

As I know, since 2021 it was not possible import .styxml file with VBA, and I was wondering if this was implemented with the new Inventor version. 

 

Now, my workaround of this is: when a file is open a VBA program check if the unfold rule is current, if not, it give you a message and a new unfold rule is created locally. 

This works great, but the only downside is if a parameter is changed in the template, also the program must be changed. 

 

Thanks, Nicola

unfold-01.jpg

 

0 Likes
Message 4 of 4

Ralf_Krieg
Advisor
Advisor

Hello

 

An import of styxml is not implemented yet.

 

Why don't you use the style library? You can insert and edit every style and unfold method at a central place. You can compare local styles with library and update if necessary. Or if unfold method don't exist in file, use ConvertToLocal method to create a local copy of library style in document.

 

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes