Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Renaming Skeleton

8 REPLIES 8
Reply
Message 1 of 9
abarbero007
681 Views, 8 Replies

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

Renaming Skeleton

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!

Labels (4)
8 REPLIES 8
Message 2 of 9

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 | Property Editor | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle


0 Likes

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 | Property Editor | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle


Message 3 of 9

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

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

Message 4 of 9

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

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.

Message 5 of 9

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

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

Message 6 of 9

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

 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!

Message 7 of 9

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

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

Message 8 of 9

tobias_nordberg
Observer
Observer

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

0 Likes

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

Message 9 of 9

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

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.

Post to forums  

Autodesk Design & Make Report