Is it possible to replace a filepath in an assembly?

Is it possible to replace a filepath in an assembly?

BrennanJWilkie
Advocate Advocate
2,635 Views
7 Replies
Message 1 of 8

Is it possible to replace a filepath in an assembly?

BrennanJWilkie
Advocate
Advocate

There is a part in my library that I use which has a 3" hex standoff as part of the assembly. To match up with the rest of the library at my company, I have renamed the file to something along the lines of 1111-2222. Every time I open up the assembly file, it asks me to specify the file path to the hex standoff (which I know can be fixed by using the correct project file with a proper library, but I'll get around to that another time).

 

So my question is: is there a way to make it so that when I open the assembly file, the file that is being requested in 1111-2222 and not "3 in HEX standoff"? This will make it easier for others to find the requested file until I can get around to fixing the project file.Capture.PNG

0 Likes
Accepted solutions (1)
2,636 Views
7 Replies
Replies (7)
Message 2 of 8

todd_cannon
Advocate
Advocate

Most likely what is going on is that when you copied the 3 in hex standoff, you didn't rename the part number. Check to see what the part number for the 1111-2222 part is. I bet it still says 3 in hex standoff...

 

Hope it helps you,

Todd

0 Likes
Message 3 of 8

BrennanJWilkie
Advocate
Advocate

You mean in the Part Browser on the side when in the assembly? Because it is renamed to 1111-2222 there, but it would automatically do that since I choose the 1111-2222 file when it prompts me to resolve the link for "3 in HEX standoff". I want it to not say "3 in HEX standoff" when it is prompting me to resolve the path, but instead say 1111-2222.

0 Likes
Message 4 of 8

todd_cannon
Advocate
Advocate

No, I'm not talking about the browser node name. Right click on the 1111-2222 part file and select iproperties, go to the project tab and see what it says for part number. The part number is initially created when a new part is saved. At that time, Inventor uses the filename and creates the part number. After copying a file, as you did, renaming the filename doesn't change the part number to the new filename. You should probably rename the part number to agree with the new filename (1111-2222).

 

Cheers,

Todd

0 Likes
Message 5 of 8

mdavis22569
Mentor
Mentor
Accepted solution

Yes ...you answered it yourself:

 

(which I know can be fixed by using the correct project file with a proper library, but I'll get around to that another time).

 

Why not just fix it from the start. There are reason's for IPJ's and file workspace.  Spending more time trying to find a work around than just resolving it the right way.

If you maybe add the path to the file workspace ... you won't have to keep doing this. 

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 6 of 8

BrennanJWilkie
Advocate
Advocate

I'll accept this as an answer for the sake of having it marked off, but if anyone else knows if it's possible to do what I was asking initially, I'd appreciate that too. Thanks @mdavis22569@todd_cannon 

0 Likes
Message 7 of 8

mdavis22569
Mentor
Mentor

How did you rename it to 1111-2222

 

You can do a replace component it and save it ....repathing it. 

 

The biggest issue is that the file is outside of the workspace most likely.... 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 8 of 8

BrennanJWilkie
Advocate
Advocate

It was renamed automatically when I manually choose the filepath when I open the Assembly file. The file can't be found initially, because the first place that I had the file has since been deleted.

0 Likes