Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Renaming Skeleton

abarbero007
Explorer

Renaming Skeleton

abarbero007
Explorer
Explorer

Hello,

 

I'm trying to rename a skeleton, so after copying "skeleton.ipt" to a new file with a new name, i'm changing the reference of "frame.iam" using FileDescriptor.ReplaceReference. Internally it's working and the reference is changed, but then when opening the assembly on Inventor, the skeleton is not found. Any way to solve this?

abarbero007_0-1649343476769.png

 

 

Thanks!

0 Likes
Reply
818 Views
8 Replies
Replies (8)

basautomationservices
Advocate
Advocate

I think this has to do with the frame generator attributes assigned to the frame assemblies component definition. 

Probably you are better off copying the entire assembly and then replace the beams  (if you have vault).

Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro


0 Likes

Curtis_Waguespack
Consultant
Consultant

Hi @abarbero007 ,

 

I might have an example for doing this programmatically, if you need to do this via code. But I wanted to make sure that you are aware that you can copy Frame Generator assemblies with the iLogic Copy Design tool, and it will update all the references correctly.

 

Note that you don't need to be using iLogic in the assembly for it to work. 

 

 

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2015...

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes

abarbero007
Explorer
Explorer

I didn't know about such 'copy design' tool.

Anyway, I need to rename programmatically, it's part of a custom tool that we use to manage documents, a kind of a custom document manager.

 

I thought that copying file and replacing references was enough.

 

Thanks for the reply.

Regards.

0 Likes

Curtis_Waguespack
Consultant
Consultant

Hi @abarbero007 

 

I didn't have an example to post (I sent you a PM), but here are the basic steps:

 

First you need to recursively traverse the subassemblies, there are a couple example here. You might search and find others that might be more clear, but this is the first example I found with a quick search:

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/traverse-assembly-and-count-subassem...

 

Secondly, you need to copy  each component as you traverse the assembly. And then you need to replace the references of each component with the new copy of each. Again here's an example, but there might be others, to look at, if you search around a bit:

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/modify-referenced-model-by-ilogic/m-...

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes

abarbero007
Explorer
Explorer

 Hi again,

 

More or less that's what I'm doing actually. Traverse the complete assembly and replace references using FileDescriptor's method.

I can see that they are updated; I use the API to read new references and it's ok. But when I open the assembly on Inventor, it shows the skeleton as not resolved (strikethrough).

 

I wonder if I need to do something in addition.

 

Thank you!

0 Likes

Curtis_Waguespack
Consultant
Consultant

Hi @abarbero007 

 

If you can "pack and go" a simple example file set of the assembly and all the required files, and attach it here as a zip file with the code you have so far, then someone might be able to look at it and see where the problem is.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes

tobias_nordberg
Observer
Observer

Hi,
I am actually looking for the same kind of answer. Did you ever solve this issue?

0 Likes

tobias_nordberg
Observer
Observer
Hi,
I am actually looking for the same kind of answer. Did you ever solve this issue?
0 Likes