Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Save Copy and Replace tool now available

12 REPLIES 12
Reply
Message 1 of 13
Anonymous
407 Views, 12 Replies

Save Copy and Replace tool now available

In response to popular demand, I have posted a "Save Copy As and
Replace" tool to:
http://www.cbliss.com/inventor/iCode
It is a macro so you can load and run with Mr.Macro (on the same page).
This tool is pretty basic but it does seem to do the job. Basically, you
pick a part/subassembly in the browser or graphic window, provide a new
name and it creates the copy then replaces the selected one in the
assembly. Optionally, it will replace all instances in that assembly.

If there is enough interest, I will expand its capability and make it
into an add-in.

Credit where credit is due, the foundation came from Kevin Schneider
from a little program posted on mymcad.com
12 REPLIES 12
Message 2 of 13
Anonymous
in reply to: Anonymous

Works fine, Charles! Thanks!
--
Alpo
Message 3 of 13
Anonymous
in reply to: Anonymous

Hmmm.

I cannot seem to get it to work properly.

When I "select component to replace", I get "Runtime error 91". The error
points to :
sFullFileName = oOccurrence.Definition.Document.FullFileName
mail me if you want me to test further.

But it will be great to finally get this functionality. If you decide to
expand it, could you think about include a proper saveas-feature:

SaveCopyAs-CloseDocument-OpenSavedCopy



--
Jorgen Bjornes
----------------------------------------------
Visit the Scandinavian Discussion-forum
For Inventor at www.bjornes.org
----------------------------------------------
Message 4 of 13
Anonymous
in reply to: Anonymous

I seem to be having the same "Runtime error 91" as Jorgen.

Regards

Matt Hutchinson
Message 5 of 13
Anonymous
in reply to: Anonymous

Hi Charles,

Could you please read the post "Demote - Wish" I created at 22-9-2003,
13:54.
Is there any way you can keep all the constraints when you turn a (single)
part into a (single) assembly.

Dennis Jeffrey says he can do it without losing constraints, but I can't 😞

The "Save-Copy-As, Close-Document, Open-Just-Saved-Copy" option also sounds
good...

Keep up the good work!

"Charles Bliss" wrote in message
news:3F6E5C7F.9040608@cbliss.com...
> In response to popular demand, I have posted a "Save Copy As and
> Replace" tool to:
> http://www.cbliss.com/inventor/iCode
> It is a macro so you can load and run with Mr.Macro (on the same page).
> This tool is pretty basic but it does seem to do the job. Basically, you
> pick a part/subassembly in the browser or graphic window, provide a new
> name and it creates the copy then replaces the selected one in the
> assembly. Optionally, it will replace all instances in that assembly.
>
> If there is enough interest, I will expand its capability and make it
> into an add-in.
>
> Credit where credit is due, the foundation came from Kevin Schneider
> from a little program posted on mymcad.com
>
Message 6 of 13
Anonymous
in reply to: Anonymous

What type of entity are you picking? I would expect the filter to only
allow a properly selected part/assembly file.

Jorgen Bjornes wrote:

> Hmmm.
>
> I cannot seem to get it to work properly.
>
> When I "select component to replace", I get "Runtime error 91". The
> error points to :
> sFullFileName = oOccurrence.Definition.Document.FullFileName
> mail me if you want me to test further.
>
> But it will be great to finally get this functionality. If you decide
> to expand it, could you think about include a proper saveas-feature:
>
> SaveCopyAs-CloseDocument-OpenSavedCopy
>
>
>
Message 7 of 13
Anonymous
in reply to: Anonymous

A while back I posted some code that does this with template files, I doubt it would take
much to make it work with other files.

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"Teun Ham" wrote in message
news:CB826A175E606647252D8F238019F82B@in.WebX.maYIadrTaRb...
> Hi Charles,
>
> Could you please read the post "Demote - Wish" I created at 22-9-2003,
> 13:54.
> Is there any way you can keep all the constraints when you turn a (single)
> part into a (single) assembly.
>
> Dennis Jeffrey says he can do it without losing constraints, but I can't 😞
>
> The "Save-Copy-As, Close-Document, Open-Just-Saved-Copy" option also sounds
> good...
>
Message 8 of 13
Anonymous
in reply to: Anonymous

Please make it an add-in. I think many people have requested this functionality
from autodesk for awhile now.

--
Dave Jacquemotte
Automation Designer
www.autoconcorp.com



"Charles Bliss" wrote in message
news:3F6E5C7F.9040608@cbliss.com...
> In response to popular demand, I have posted a "Save Copy As and
> Replace" tool to:
> http://www.cbliss.com/inventor/iCode
> It is a macro so you can load and run with Mr.Macro (on the same page).
> This tool is pretty basic but it does seem to do the job. Basically, you
> pick a part/subassembly in the browser or graphic window, provide a new
> name and it creates the copy then replaces the selected one in the
> assembly. Optionally, it will replace all instances in that assembly.
>
> If there is enough interest, I will expand its capability and make it
> into an add-in.
>
> Credit where credit is due, the foundation came from Kevin Schneider
> from a little program posted on mymcad.com
>
Message 9 of 13
Anonymous
in reply to: Anonymous

On Mon, 22 Sep 2003 08:15:34 -0700, Charles Bliss
wrote:
> What type of entity are you picking? I would expect the filter to only
> allow a properly selected part/assembly file.

I was picking a part in an assembly document.


--
Jorgen Bjornes
----------------------------------------------
Visit the Scandinavian Discussion-forum
For Inventor at www.bjornes.org
----------------------------------------------
Message 10 of 13
Anonymous
in reply to: Anonymous

I will work some more on it. I saw that happen once yesterday but was
unable to trap it.

Jorgen Bjornes wrote:

> On Mon, 22 Sep 2003 08:15:34 -0700, Charles Bliss
> wrote:
>
>> What type of entity are you picking? I would expect the filter to
>> only allow a properly selected part/assembly file.
>
>
> I was picking a part in an assembly document.
>
>
Message 11 of 13
Anonymous
in reply to: Anonymous

On Tue, 23 Sep 2003 07:52:44 -0700, Charles Bliss
wrote:

> I will work some more on it. I saw that happen once yesterday but was
> unable to trap it.

Please let me know if I can help you locate the problem.
It's quite consistent here! (although I have not tried in many assys).
If I find some pattern, I'll tell you.



--
Jorgen Bjornes
----------------------------------------------
Visit the Scandinavian Discussion-forum
For Inventor at www.bjornes.org
----------------------------------------------
Message 12 of 13
Anonymous
in reply to: Anonymous

Hi Charles!

When I removed these three lines from Form "frmSaveAsReplace", it started
to work OK:
Private Sub UserForm_Activate()
cmdSelect_Click
End Sub

--
Alpo
Message 13 of 13
Anonymous
in reply to: Anonymous

Hmm, a timing issue. I put those lines in at the last minute thinking
that it would be more user friendly if it started out by selecting. It
is safe to remove them except you will have to hit the select button to
select the part before proceeding. Thanks for the heads up.

Pelus wrote:

> Hi Charles!
>
> When I removed these three lines from Form "frmSaveAsReplace", it
> started to work OK:
> Private Sub UserForm_Activate()
> cmdSelect_Click
> End Sub
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report