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?
Thanks!
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?
Thanks!
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).
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).
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.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
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.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
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.
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.
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:
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:
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
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:
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:
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
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!
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!
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
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
Hi,
I am actually looking for the same kind of answer. Did you ever solve this issue?
Hi,
I am actually looking for the same kind of answer. Did you ever solve this issue?
Can't find what you're looking for? Ask the community or share your knowledge.