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: 

Add shortcut to Panel for iParts??

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
409 Views, 10 Replies

Add shortcut to Panel for iParts??

I was wondering if it was possible to add a shortcut to the panel for my frequently used iParts. Instead of having to hit the "Insert Components" button, browse down to the bottom, sift through my iParts until I find the one I want. I could just hit a button in the Panel that would say insert a Hex Nut

Any Idea's?
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

Not exactly a elegant solution but you could use a macro...

Change the filename and path to the iPart of choice. The "1" indicates
which iPart member to insert.

A while back I had a macro to show a folder in the panelbar (your iPart
folder for example) so you could easily get to the iparts but it did not
remember the view type (icons, details etc..) for the folder.

Public Sub InsertiPart()
Dim oAsmCompDef As AssemblyComponentDefinition
Set oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

Dim oTG As TransientGeometry
Set oTG = ThisApplication.TransientGeometry

Dim oMatrix As Matrix
Set oMatrix = oTG.CreateMatrix

Call oMatrix.SetToRotation(3.14159265358979 / 1, _
oTG.CreateVector(0, 0, 1), oTG.CreatePoint(0, 0,
0))

Call oMatrix.SetTranslation(oTG.CreateVector(3, 2, 1))

Dim oOcc As ComponentOccurrence
Dim FileName As String
FileName = "K:\Inventor Iparts\Oring.ipt"
Set oOcc = oAsmCompDef.Occurrences.AddiPartMember(FileName, oMatrix, 1)

End Sub

--
Sean Dotson, PE
RND Automation & Engineering
www.RNDautomation.com
www.mcadforums.com


wrote in message news:4989111@discussion.autodesk.com...
I was wondering if it was possible to add a shortcut to the panel for my
frequently used iParts. Instead of having to hit the "Insert Components"
button, browse down to the bottom, sift through my iParts until I find the
one I want. I could just hit a button in the Panel that would say insert a
Hex Nut

Any Idea's?
Message 3 of 11
Anonymous
in reply to: Anonymous

Ok now how do I get it to not insert the iPart, but stop at the dialogue box so I can choose what size I want?
Message 4 of 11
Anonymous
in reply to: Anonymous

Not sure... Not sure it's even possible. If you just insert the iPart it
inserts the whole factory.

--
Sean Dotson, PE
RND Automation & Engineering
www.RNDautomation.com
www.mcadforums.com


wrote in message news:4989186@discussion.autodesk.com...
Ok now how do I get it to not insert the iPart, but stop at the dialogue box
so I can choose what size I want?
Message 5 of 11
Anonymous
in reply to: Anonymous

Well then, I guess that's all folks
Message 6 of 11
Anonymous
in reply to: Anonymous

in the iPart samples directory of you Inventor install are some sample
HTML pages that show how you can create a web page catalog for your
content. You could then change the application option which defines a
web page for a team web site to point to this HTML page. then your work
flow would be: press team web button, drag iPart from web page to window...

-Kevin Schneider
Message 7 of 11
Anonymous
in reply to: Anonymous

Kevin, I seem to be having some trouble locating this file, could you be more specific where it's located??
Message 8 of 11
Anonymous
in reply to: Anonymous

C:\Program Files\Autodesk\Inventor 10\Web\SampleWeb.htm

-Kevin Schneider
Message 9 of 11
Anonymous
in reply to: Anonymous

Well Kevin this seems to be more complicated than I thought.

I went to the help page on "Team Web" and it listed a set of instructions on how to set one up. But right from the get go it says I need to have Active X installed. So I click on the link provided, and it downloads a non-executable file, a ocx file. What am I supposed to do with it?? Well I skipped that part and when on. I get to #4 and it tells me to "Open to edit c:\Program Files\Autodesk\Inventor\Web\my_template.xml"
Well how do I open that?? After this point nothing seems to work according to the help. Am I missing something?
Message 10 of 11
Anonymous
in reply to: Anonymous

Maybe this is too complicated a path. I'll see if I can get someone to
write up a better tutorial to make this work.

-Kevin
Message 11 of 11
Anonymous
in reply to: Anonymous

Kevin I am just wondering how long it will be before I can get some help on
this??

--
Troy Grose

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

Post to forums  

Autodesk Design & Make Report