CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 8767:

Question

CAD 
 %  platform  category 
A
If you have overwritten values of some cells in Inventor partslist, these values are "static" - they do not recalculate. When you want to change them back to recalculated cells, you can use the following VBA macro (you can also use it in iLogic):

Dim drawing As DrawingDocument  
Dim sheet As Sheet  
Dim pList As PartsList  
Dim pListRow As PartsListRow  
Dim pListCell As PartsListCell  
Dim cellIndex As Integer  
 
drawing = ThisApplication.ActiveDocument  
 
For Each sheet In drawing.Sheets  
For Each pList In sheet.PartsLists  
For Each pListRow In pList.PartsListRows  
For cellIndex = 1 To pList.PartsListColumns.count  
pListCell = pListRow.Item(cellIndex)  
pListCell.Static = False  
Next  
Next  
Next  
Next
 
Inventor
100% *CAD
21.8.2012   13453×  
   
this tip shared by ARKANCE experts applies to: Inventor ·

See also:
Tip 14527:Search/Replace texts in Inventor drawings - iLogic.
Tip 14489:Multiline header of a parts list in an Inventor drawing.
Tip 14351:How to suppress trailing zeros in Inventor parts list?
Tip 13831:ReplMTcol - recoloring parts of text in paragraph Mtext.
Tip 13611:BOM with multi-line items in Inventor.


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  





Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist