how to return back to Assembly environment after my editing one componentoccurre

how to return back to Assembly environment after my editing one componentoccurre

Anonymous
Not applicable
405 Views
4 Replies
Message 1 of 5

how to return back to Assembly environment after my editing one componentoccurre

Anonymous
Not applicable
I edit one componentoccurrence of an assembly by Programming,now I want to return back to the Assembly environment by code programme but not from the button" from part to assembly " on the Inventor toolbar.Who knows the API of returning back to Assembly environment after I edit one componentoccurrence.Thanks in advance.
0 Likes
406 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Here is a relevant portion of the response from a similar query sometime
ago...

You should look into whether it's really necessary for you to enter the edit
mode of each occurrence. Unlike the UI, you should be able to perform all
edits via the API without entering into the edit mode.

If you are on R11, you can use the following workaround:

Sub ReturnToTop()
Dim oCtrlDef As ControlDefinition
Set oCtrlDef =
ThisApplication.CommandManager.ControlDefinitions.Item("AppReturnTopCmd")
oCtrlDef.Execute
End Sub

Sanjay-

wrote in message news:5432628@discussion.autodesk.com...
I edit one componentoccurrence of an assembly by Programming,now I want to
return back to the Assembly environment by code programme but not from the
button" from part to assembly " on the Inventor toolbar.Who knows the API of
returning back to Assembly environment after I edit one
componentoccurrence.Thanks in advance.
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi Sanjay!
Thank you very much! I use R10,and I solve the problem ,by using the code as follows:Call StdAddInServer2.InventorApplication.CommandManager.[_StartCommand](43312)
Really thanks for your reply!
Because I find that you always reply my post,you help me a lot.I'm appreciated you very much!
0 Likes
Message 4 of 5

Anonymous
Not applicable
Hi,Sanjay!
Can I ask another question?Do you know how to use AxInventorViewControl?
I want to view a part or an assembly by InventorViewCtrl.ocx .I make an Addin with VB.NET in Inventor 10,from Tools----> reference ,without InventorViewControlLib,but with InventorViewTreeLib .So I can't get AxInventorViewControlLib.AxInventorViewControl.Why?Do you realize the view by AxInventorViewControl?What I want to realize is like attachment.Please help me!Thanks very much!
0 Likes
Message 5 of 5

Anonymous
Not applicable
you might re-read this line

>Unlike the UI, you should be able to perform all
edits via the API without entering into the edit mode.

this is an important concept. If you are making command manager calls to manipulate occurrences it is probably going to be slower than making API calls directly.
0 Likes