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: 

filtering partlist use filter View

6 REPLIES 6
Reply
Message 1 of 7
d_great_ice
1290 Views, 6 Replies

filtering partlist use filter View

Dear Someone,

 

 

Can help me, how to filtering a part list use view by assembly drawing, with VBA editor or iLOGic code.

there is no class system in API for filter in partlist class use views filter.

 

 

i use autodesk inventor 2010, and get install use ilogic add-ons 2010

 

i want to get automation system for my inventor design.

 

Thx.

 

Ihsan Surahman,

 

6 REPLIES 6
Message 2 of 7

You may want to look into the blog article in the below link for sample ilogic codes,

 

http://forums.autodesk.com/t5/Autodesk-Inventor/iLogic-to-Sort-BOM-Renumber-and-sort-Parts-list/td-p...

 

Hope it helps.



Vinod Balasubramanian
AutoCAD Industry Support & Escalation Lead

Message 3 of 7

link does not exist.

 

😞


Please help.

Message 4 of 7
karthur1
in reply to: d_great_ice

The URL that he posted was cut off.  I think this might be where he was trying to get you.

 

Try this....

Message 5 of 7

Hi d_great_ice,

 

I'm not aware of a way to set the parts list filter programatically, but what I've done in the past is to set up a parts list style that has the filter pre-set in that style, and then change the parts list to use that specific style.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

'assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
'Set a reference to the active sheet.
Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet
'set a reference to the first drawing view on the sheet. Assumes it's not a draft view.
Dim oDrawingView As DrawingView
oDrawingView = oSheet.DrawingViews(1)
'define the insert point
Dim oPlacementPoint As Point2d
oPlacementPoint = ThisApplication.TransientGeometry.CreatePoint2d (27#, 20.625#)
'create the parts list
Dim oPartsList As PartsList     
oPartsList = oSheet.PartsLists.Add(oDrawingView, oPlacementPoint)
'set parts list to a specific layer
oPartsList.Layer = oDrawDoc.StylesManager.Layers.Item("Visible (ANSI)")
'set parts list to a specific style
oPartsList.Style = oDrawDoc.StylesManager.PartsListStyles.Item("Material List (ANSI) with Filter")

 

Message 6 of 7


@Curtis_Waguespack wrote:

I'm not aware of a way to set the parts list filter programatically,  


If I may add to an old post, I have a question.  Can the visibility of items in a parts list be controlled through iLogic?  It's a poor substitute for filtering, but it might work for me if filtering isn't possible.

Message 7 of 7
Jefkee
in reply to: JamesVSA

Hi,

 

I'm also looing into this, filter would be awesome..

 

I could use this for following reason. I'm currently managing our materiallist external to inventor (so more people can access it). When i creat a first export there is no problem, but what i want is to make have a tool that can append to the already existing list.

 

So i want to export item x to y into my existing partslist.

Or if a revision is needed export item x and paste it over the old item x

 

Having a filter that limits my list would make this a more easy to make tool ( i think ).

Inventor 2013

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

Post to forums  

Autodesk Design & Make Report