Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create iRule to count Sketched Sybols in .DWG Drawing

0 REPLIES 0
Reply
Message 1 of 1
joao.pinto
207 Views, 0 Replies

Create iRule to count Sketched Sybols in .DWG Drawing

Hi all,

 

 

I´m trying to create an iRule to count all Sketched Symbols alike in a drawing and per sheet. 

 

My idea is to create custom iPropertie per sheet to print the total of sketched symbols in each sheet.

 

So far, I reach this code for this counting, but unsuccessfully:

 

SyntaxEditor Code Snippet

Dim oDWG As DrawingDocument = ThisDoc.Document
Dim oSheet As Sheet = ActiveSheet.Sheet
Dim oSymDef = oDWG.oSheet.SketchedSymbolDefinitions.Item("ITEM1")
Dim i As Integer
For i=1 To oSymDef.count
Next
iProperties.Value("Custom","ITEM1") = i

This is for one sheet, of course, but my idea is to had this code for multiple sheets....

 

Thank you, in advance, for your help!

 

João Pinto

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report