Alignment Breaking After Copying Frame Generator

Alignment Breaking After Copying Frame Generator

HogueOne
Advocate Advocate
136 Views
1 Reply
Message 1 of 2

Alignment Breaking After Copying Frame Generator

HogueOne
Advocate
Advocate

I have a script that allows a user to make multiple copies of a drawing and all of its dependents. I've managed to get it to work as best I could with frame generator, but I've noticed that the alignment of the frame members is missing in the copies.

 

Original frame member alignment:

HogueOne_0-1748538073186.png


Copied frame member alignment broken:

HogueOne_1-1748538157912.png


My question is:
Is there a way to preserve or redefine the alignment of these members with iLogic? If that's not possible, is there a reliable method of defining the orientation of frame members using constraints instead of the alignment tool? If that's not possible, is there a better system than frame generator for controlling member length/position, while also allowing ability to hot swap the member for a different size?

 

I am aware that the Frame Generator API isn't exposed for iLogic. I'm really hoping there's some kind of workaround for this. I'd hoped I could somehow use the Face-GetReferenceKey Method to get whatever face the model was using for alignment and redefine it after copy. There just doesn't seem to be any way to access that information or apply alignment with iLogic. Any help would be greatly appreciated. I've attached my code in case you wanted to examine it.

0 Likes
Accepted solutions (1)
137 Views
1 Reply
Reply (1)
Message 2 of 2

HogueOne
Advocate
Advocate
Accepted solution

I've solved the problem. It's not possible to do this exclusively in iLogic. But if you don't want to create a plugin you can call a powershell script that can perform apprentice server operations. The FileSaveAs object is only available for apprentice server operations, and it's the only one that can preserve relationships with frame generator assemblies.

0 Likes